Eclipse SUMO - Simulation of Urban MObility
NBVehicle Class Reference

A vehicle as used by router. More...

#include <NBVehicle.h>

Collaboration diagram for NBVehicle:

Public Member Functions

const std::string & getID () const
 
SUMOVehicleClass getVClass () const
 
 NBVehicle (const std::string &id, SUMOVehicleClass vClass)
 Constructor. More...
 
virtual ~NBVehicle ()
 Destructor. More...
 

Private Member Functions

 NBVehicle (const NBVehicle &src)
 Invalidated copy constructor. More...
 
NBVehicleoperator= (const NBVehicle &src)
 Invalidated assignment operator. More...
 

Private Attributes

std::string myID
 vehicle ID for error reporting More...
 
SUMOVehicleClass myVClass
 The vehicle class of the. More...
 

Detailed Description

A vehicle as used by router.

Definition at line 44 of file NBVehicle.h.

Constructor & Destructor Documentation

◆ NBVehicle() [1/2]

NBVehicle::NBVehicle ( const std::string &  id,
SUMOVehicleClass  vClass 
)
inline

Constructor.

Parameters
[in]parsParameter of this vehicle
[in]routeThe definition of the route the vehicle shall use
[in]typeThe type of the vehicle

Definition at line 52 of file NBVehicle.h.

◆ ~NBVehicle()

virtual NBVehicle::~NBVehicle ( )
inlinevirtual

Destructor.

Definition at line 65 of file NBVehicle.h.

◆ NBVehicle() [2/2]

NBVehicle::NBVehicle ( const NBVehicle src)
private

Invalidated copy constructor.

Member Function Documentation

◆ getID()

const std::string& NBVehicle::getID ( ) const
inline

Definition at line 55 of file NBVehicle.h.

References myID.

◆ getVClass()

SUMOVehicleClass NBVehicle::getVClass ( ) const
inline

Definition at line 59 of file NBVehicle.h.

References myVClass.

◆ operator=()

NBVehicle& NBVehicle::operator= ( const NBVehicle src)
private

Invalidated assignment operator.

Field Documentation

◆ myID

std::string NBVehicle::myID
private

vehicle ID for error reporting

Definition at line 70 of file NBVehicle.h.

Referenced by getID().

◆ myVClass

SUMOVehicleClass NBVehicle::myVClass
private

The vehicle class of the.

Definition at line 73 of file NBVehicle.h.

Referenced by getVClass().


The documentation for this class was generated from the following file: