SUMO - Simulation of Urban MObility
NBTypeCont::TypeDefinition Struct Reference
Collaboration diagram for NBTypeCont::TypeDefinition:
Collaboration graph

Public Member Functions

 TypeDefinition ()
 Constructor. More...
 
 TypeDefinition (int _numLanes, double _speed, int _priority, double _width, SVCPermissions _permissions, bool _oneWay, double _sideWalkWidth, double _bikeLaneWidth)
 Constructor. More...
 

Data Fields

std::set< SumoXMLAttrattrs
 The attributes which have been set. More...
 
double bikeLaneWidth
 
bool discard
 Whether edges of this type shall be discarded. More...
 
int numLanes
 The number of lanes of an edge. More...
 
bool oneWay
 Whether one-way traffic is mostly common for this type (mostly unused) More...
 
SVCPermissions permissions
 List of vehicle types that are allowed on this edge. More...
 
int priority
 The priority of an edge. More...
 
std::map< SUMOVehicleClass, double > restrictions
 The vehicle class specific speed restrictions. More...
 
double sidewalkWidth
 
double speed
 The maximal velocity on an edge in m/s. More...
 
double width
 The width of lanes of edges of this type [m]. More...
 

Detailed Description

Definition at line 230 of file NBTypeCont.h.

Constructor & Destructor Documentation

◆ TypeDefinition() [1/2]

NBTypeCont::TypeDefinition::TypeDefinition ( )
inline

Constructor.

Definition at line 232 of file NBTypeCont.h.

◆ TypeDefinition() [2/2]

NBTypeCont::TypeDefinition::TypeDefinition ( int  _numLanes,
double  _speed,
int  _priority,
double  _width,
SVCPermissions  _permissions,
bool  _oneWay,
double  _sideWalkWidth,
double  _bikeLaneWidth 
)
inline

Constructor.

Definition at line 242 of file NBTypeCont.h.

Field Documentation

◆ attrs

std::set<SumoXMLAttr> NBTypeCont::TypeDefinition::attrs

The attributes which have been set.

Definition at line 276 of file NBTypeCont.h.

Referenced by NBTypeCont::insert(), NBTypeCont::wasSet(), and NBTypeCont::writeTypes().

◆ bikeLaneWidth

double NBTypeCont::TypeDefinition::bikeLaneWidth

Definition at line 272 of file NBTypeCont.h.

Referenced by NBTypeCont::getBikeLaneWidth(), and NBTypeCont::writeTypes().

◆ discard

bool NBTypeCont::TypeDefinition::discard

Whether edges of this type shall be discarded.

Definition at line 264 of file NBTypeCont.h.

Referenced by NBTypeCont::getShallBeDiscarded(), and NBTypeCont::writeTypes().

◆ numLanes

int NBTypeCont::TypeDefinition::numLanes

The number of lanes of an edge.

Definition at line 254 of file NBTypeCont.h.

Referenced by NBTypeCont::getNumLanes(), NBTypeCont::setDefaults(), and NBTypeCont::writeTypes().

◆ oneWay

bool NBTypeCont::TypeDefinition::oneWay

Whether one-way traffic is mostly common for this type (mostly unused)

Definition at line 262 of file NBTypeCont.h.

Referenced by NBTypeCont::getIsOneWay(), and NBTypeCont::writeTypes().

◆ permissions

SVCPermissions NBTypeCont::TypeDefinition::permissions

List of vehicle types that are allowed on this edge.

Definition at line 260 of file NBTypeCont.h.

Referenced by NBTypeCont::getPermissions(), NBTypeCont::setDefaults(), and NBTypeCont::writeTypes().

◆ priority

int NBTypeCont::TypeDefinition::priority

The priority of an edge.

Definition at line 258 of file NBTypeCont.h.

Referenced by NBTypeCont::getPriority(), NBTypeCont::setDefaults(), and NBTypeCont::writeTypes().

◆ restrictions

std::map<SUMOVehicleClass, double> NBTypeCont::TypeDefinition::restrictions

The vehicle class specific speed restrictions.

Definition at line 274 of file NBTypeCont.h.

Referenced by NBTypeCont::insert(), and NBTypeCont::writeTypes().

◆ sidewalkWidth

double NBTypeCont::TypeDefinition::sidewalkWidth

Definition at line 269 of file NBTypeCont.h.

Referenced by NBTypeCont::getSidewalkWidth(), and NBTypeCont::writeTypes().

◆ speed

double NBTypeCont::TypeDefinition::speed

The maximal velocity on an edge in m/s.

Definition at line 256 of file NBTypeCont.h.

Referenced by NBTypeCont::getSpeed(), NBTypeCont::setDefaults(), and NBTypeCont::writeTypes().

◆ width

double NBTypeCont::TypeDefinition::width

The width of lanes of edges of this type [m].

Definition at line 266 of file NBTypeCont.h.

Referenced by NBTypeCont::getWidth(), NBTypeCont::setDefaults(), and NBTypeCont::writeTypes().


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