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, double friction, int priority, double width, SVCPermissions permissions, LaneSpreadFunction spreadType, 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...
 
double friction
 The default friction on an edge. 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...
 
LaneSpreadFunction spreadType
 lane spread type 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 93 of file NBTypeCont.h.

Constructor & Destructor Documentation

◆ EdgeTypeDefinition() [1/3]

NBTypeCont::EdgeTypeDefinition::EdgeTypeDefinition ( )

Constructor.

Definition at line 81 of file NBTypeCont.cpp.

References laneTypeDefinitions.

◆ EdgeTypeDefinition() [2/3]

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

copy constructor

Definition at line 97 of file NBTypeCont.cpp.

◆ EdgeTypeDefinition() [3/3]

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

parameter Constructor

Definition at line 117 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 137 of file NBTypeCont.cpp.

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

Referenced by NIXMLEdgesHandler::addEdge().

Here is the caller graph for this function:

Field Documentation

◆ attrs

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

The attributes which have been set.

Definition at line 155 of file NBTypeCont.h.

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

◆ bikeLaneWidth

double NBTypeCont::EdgeTypeDefinition::bikeLaneWidth

◆ discard

bool NBTypeCont::EdgeTypeDefinition::discard

Whether edges of this edgeType shall be discarded.

Definition at line 129 of file NBTypeCont.h.

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

◆ friction

double NBTypeCont::EdgeTypeDefinition::friction

The default friction on an edge.

Definition at line 114 of file NBTypeCont.h.

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

◆ laneTypeDefinitions

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

◆ maxWidth

double NBTypeCont::EdgeTypeDefinition::maxWidth

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

Definition at line 138 of file NBTypeCont.h.

Referenced by GNEEdgeType::getAttribute(), and NBTypeCont::getEdgeTypeMaxWidth().

◆ minWidth

double NBTypeCont::EdgeTypeDefinition::minWidth

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

Definition at line 141 of file NBTypeCont.h.

Referenced by GNEEdgeType::getAttribute(), and NBTypeCont::getEdgeTypeMinWidth().

◆ oneWay

bool NBTypeCont::EdgeTypeDefinition::oneWay

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

Definition at line 126 of file NBTypeCont.h.

Referenced by GNEEdgeType::getAttribute(), and NBTypeCont::getEdgeTypeIsOneWay().

◆ permissions

SVCPermissions NBTypeCont::EdgeTypeDefinition::permissions

List of vehicle edgeTypes that are allowed on this edge.

Definition at line 120 of file NBTypeCont.h.

Referenced by GNEEdgeType::getAttribute(), NBTypeCont::getEdgeTypePermissions(), 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 152 of file NBTypeCont.h.

Referenced by NBTypeCont::insertEdgeType().

◆ sidewalkWidth

double NBTypeCont::EdgeTypeDefinition::sidewalkWidth

◆ speed

double NBTypeCont::EdgeTypeDefinition::speed

The maximal velocity on an edge in m/s.

Definition at line 111 of file NBTypeCont.h.

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

◆ spreadType

LaneSpreadFunction NBTypeCont::EdgeTypeDefinition::spreadType

◆ width

double NBTypeCont::EdgeTypeDefinition::width

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

Definition at line 132 of file NBTypeCont.h.

Referenced by GNEEdgeType::getAttribute(), NBTypeCont::getEdgeTypeWidth(), 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 135 of file NBTypeCont.h.

Referenced by GNEEdgeType::getAttribute(), and NBTypeCont::getEdgeTypeWidthResolution().


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