Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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)
 
 NBVehicle (const std::string &id, SUMOVehicleClass vClass)
 Constructor.
 
virtual ~NBVehicle ()
 Destructor.
 

Private Member Functions

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

Private Attributes

std::string myID
 vehicle ID for error reporting
 
double myLength
 The length of the vehicle (for rail-routing)
 
SUMOVehicleClass myVClass
 The vehicle class of the vehicle.
 

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: