Eclipse SUMO - Simulation of Urban MObility
NBTypeCont::EdgeTypeDefinition Struct Reference

edgeType definition More...

#include <NBTypeCont.h>

Inheritance diagram for NBTypeCont::EdgeTypeDefinition:
[legend]

Public Member Functions

 EdgeTypeDefinition ()
 Constructor. More...
 
 EdgeTypeDefinition (const EdgeTypeDefinition *edgeType)
 copy constructor More...
 
 EdgeTypeDefinition (int numLanes, double speed, int priority, double width, SVCPermissions permissions, bool oneWay, double sideWalkWidth, double bikeLaneWidth, double widthResolution, double maxWidth, double minWidth)
 parameter Constructor More...
 
bool needsLaneType () const
 whether any lane attributes deviate from the edge attributes More...
 

Data Fields

std::set< SumoXMLAttrattrs
 The attributes which have been set. More...
 
double bikeLaneWidth
 
bool discard
 Whether edges of this edgeType shall be discarded. More...
 
std::vector< LaneTypeDefinitionlaneTypeDefinitions
 vector with LaneTypeDefinitions More...
 
double maxWidth
 The maximum width for lanes of this edgeType [m]. More...
 
double minWidth
 The minimum width for lanes of this edgeType [m]. More...
 
bool oneWay
 Whether one-way traffic is mostly common for this edgeType (mostly unused) More...
 
SVCPermissions permissions
 List of vehicle edgeTypes 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 edgeType [m]. More...
 
double widthResolution
 The resolution for interpreting custom (noisy) lane widths of this edgeType [m]. More...
 

Detailed Description

edgeType definition

Definition at line 80 of file NBTypeCont.h.

Constructor & Destructor Documentation

◆ EdgeTypeDefinition() [1/3]

NBTypeCont::EdgeTypeDefinition::EdgeTypeDefinition ( )

Constructor.

Definition at line 60 of file NBTypeCont.cpp.

References laneTypeDefinitions.

◆ EdgeTypeDefinition() [2/3]

NBTypeCont::EdgeTypeDefinition::EdgeTypeDefinition ( const EdgeTypeDefinition edgeType)

copy constructor

Definition at line 75 of file NBTypeCont.cpp.

◆ EdgeTypeDefinition() [3/3]

NBTypeCont::EdgeTypeDefinition::EdgeTypeDefinition ( int  numLanes,
double  speed,
int  priority,
double  width,
SVCPermissions  permissions,
bool  oneWay,
double  sideWalkWidth,
double  bikeLaneWidth,
double  widthResolution,
double  maxWidth,
double  minWidth 
)

parameter Constructor

Definition at line 91 of file NBTypeCont.cpp.

References laneTypeDefinitions.

Member Function Documentation

◆ needsLaneType()

bool NBTypeCont::EdgeTypeDefinition::needsLaneType ( ) const

whether any lane attributes deviate from the edge attributes

Definition at line 109 of file NBTypeCont.cpp.

References SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_SPEED, SUMO_ATTR_WIDTH, NBEdge::UNSPECIFIED_SPEED, and NBEdge::UNSPECIFIED_WIDTH.

Field Documentation

◆ attrs

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

The attributes which have been set.

Definition at line 136 of file NBTypeCont.h.

Referenced by GNEEdgeType::getAttribute(), NBTypeCont::insertEdgeType(), GNEEdgeType::setAttribute(), and NBTypeCont::wasSetEdgeTypeAttribute().

◆ bikeLaneWidth

double NBTypeCont::EdgeTypeDefinition::bikeLaneWidth

Definition at line 130 of file NBTypeCont.h.

Referenced by NBTypeCont::getEdgeTypeBikeLaneWidth().

◆ discard

bool NBTypeCont::EdgeTypeDefinition::discard

Whether edges of this edgeType shall be discarded.

Definition at line 110 of file NBTypeCont.h.

Referenced by NBTypeCont::getEdgeTypeShallBeDiscarded(), and GNEEdgeType::setAttribute().

◆ laneTypeDefinitions

std::vector<LaneTypeDefinition> NBTypeCont::EdgeTypeDefinition::laneTypeDefinitions

vector with LaneTypeDefinitions

Definition at line 139 of file NBTypeCont.h.

Referenced by EdgeTypeDefinition(), NBTypeCont::getEdgeTypeNumLanes(), NBTypeCont::insertLaneType(), and NBTypeCont::setEdgeTypeDefaults().

◆ maxWidth

double NBTypeCont::EdgeTypeDefinition::maxWidth

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

Definition at line 119 of file NBTypeCont.h.

Referenced by NBTypeCont::getEdgeTypeMaxWidth().

◆ minWidth

double NBTypeCont::EdgeTypeDefinition::minWidth

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

Definition at line 122 of file NBTypeCont.h.

Referenced by NBTypeCont::getEdgeTypeMinWidth().

◆ oneWay

bool NBTypeCont::EdgeTypeDefinition::oneWay

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

Definition at line 107 of file NBTypeCont.h.

Referenced by NBTypeCont::getEdgeTypeIsOneWay().

◆ permissions

SVCPermissions NBTypeCont::EdgeTypeDefinition::permissions

List of vehicle edgeTypes that are allowed on this edge.

Definition at line 104 of file NBTypeCont.h.

Referenced by GNEEdgeType::getAttribute(), NBTypeCont::getEdgeTypePermissions(), NBTypeCont::insertLaneType(), GNEEdgeType::setAttribute(), and NBTypeCont::setEdgeTypeDefaults().

◆ priority

int NBTypeCont::EdgeTypeDefinition::priority

◆ restrictions

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

The vehicle class specific speed restrictions.

Definition at line 133 of file NBTypeCont.h.

Referenced by NBTypeCont::insertEdgeType().

◆ sidewalkWidth

double NBTypeCont::EdgeTypeDefinition::sidewalkWidth

Definition at line 126 of file NBTypeCont.h.

Referenced by NBTypeCont::getEdgeTypeSidewalkWidth().

◆ speed

double NBTypeCont::EdgeTypeDefinition::speed

◆ width

double NBTypeCont::EdgeTypeDefinition::width

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

Definition at line 113 of file NBTypeCont.h.

Referenced by GNEEdgeType::getAttribute(), NBTypeCont::getEdgeTypeWidth(), NBTypeCont::insertLaneType(), GNEEdgeType::setAttribute(), and NBTypeCont::setEdgeTypeDefaults().

◆ widthResolution

double NBTypeCont::EdgeTypeDefinition::widthResolution

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

Definition at line 116 of file NBTypeCont.h.

Referenced by NBTypeCont::getEdgeTypeWidthResolution().


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