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

Public Member Functions

 TypeDefinition ()
 Constructor. More...
 
 TypeDefinition (int _numLanes, double _speed, int _priority, double _width, SVCPermissions _permissions, bool _oneWay, double _sideWalkWidth, double _bikeLaneWidth, double _widthResolution, double _maxWidth, double _minWidth)
 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...
 
double maxWidth
 The maximum width for lanes of this type [m]. More...
 
double minWidth
 The minimum width for lanes of this type [m]. 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...
 
double widthResolution
 The resolution for interpreting custom (noisy) lane widths of this type [m]. More...
 

Detailed Description

Definition at line 259 of file NBTypeCont.h.

Constructor & Destructor Documentation

◆ TypeDefinition() [1/2]

NBTypeCont::TypeDefinition::TypeDefinition ( )
inline

Constructor.

Definition at line 261 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,
double  _widthResolution,
double  _maxWidth,
double  _minWidth 
)
inline

Constructor.

Definition at line 274 of file NBTypeCont.h.

Field Documentation

◆ attrs

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

The attributes which have been set.

Definition at line 321 of file NBTypeCont.h.

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

◆ bikeLaneWidth

double NBTypeCont::TypeDefinition::bikeLaneWidth

Definition at line 317 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 303 of file NBTypeCont.h.

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

◆ maxWidth

double NBTypeCont::TypeDefinition::maxWidth

The maximum width for lanes of this type [m].

Definition at line 309 of file NBTypeCont.h.

Referenced by NBTypeCont::getMaxWidth().

◆ minWidth

double NBTypeCont::TypeDefinition::minWidth

The minimum width for lanes of this type [m].

Definition at line 311 of file NBTypeCont.h.

Referenced by NBTypeCont::getMinWidth().

◆ numLanes

int NBTypeCont::TypeDefinition::numLanes

The number of lanes of an edge.

Definition at line 293 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 301 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 299 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 297 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 319 of file NBTypeCont.h.

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

◆ sidewalkWidth

double NBTypeCont::TypeDefinition::sidewalkWidth

Definition at line 314 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 295 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 305 of file NBTypeCont.h.

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

◆ widthResolution

double NBTypeCont::TypeDefinition::widthResolution

The resolution for interpreting custom (noisy) lane widths of this type [m].

Definition at line 307 of file NBTypeCont.h.

Referenced by NBTypeCont::getWidthResolution().


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