Eclipse SUMO - Simulation of Urban MObility
NBVehicle Class Reference

A vehicle as used by router. More...

#include <NBVehicle.h>

Public Member Functions

const std::string & getID () const
 
double getLength () const
 
SUMOVehicleClass getVClass () const
 
bool ignoreTransientPermissions () const
 Returns whether this object is ignoring transient permission changes (during routing) More...
 
 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...
 
double myLength
 The length of the vehicle (for rail-routing) More...
 
SUMOVehicleClass myVClass
 The vehicle class of the vehicle. More...
 

Detailed Description

A vehicle as used by router.

Definition at line 42 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 50 of file NBVehicle.h.

◆ ~NBVehicle()

virtual NBVehicle::~NBVehicle ( )
inlinevirtual

Destructor.

Definition at line 73 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 53 of file NBVehicle.h.

References myID.

◆ getLength()

double NBVehicle::getLength ( ) const
inline

Definition at line 68 of file NBVehicle.h.

References myLength.

◆ getVClass()

SUMOVehicleClass NBVehicle::getVClass ( ) const
inline

Definition at line 57 of file NBVehicle.h.

References myVClass.

◆ ignoreTransientPermissions()

bool NBVehicle::ignoreTransientPermissions ( ) const
inline

Returns whether this object is ignoring transient permission changes (during routing)

Definition at line 64 of file NBVehicle.h.

◆ 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 78 of file NBVehicle.h.

Referenced by getID().

◆ myLength

double NBVehicle::myLength
private

The length of the vehicle (for rail-routing)

Definition at line 84 of file NBVehicle.h.

Referenced by getLength().

◆ myVClass

SUMOVehicleClass NBVehicle::myVClass
private

The vehicle class of the vehicle.

Definition at line 81 of file NBVehicle.h.

Referenced by getVClass().


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