Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NBTypeCont::EdgeTypeDefinition Struct Reference

edgeType definition More...

#include <NBTypeCont.h>

Inheritance diagram for NBTypeCont::EdgeTypeDefinition:
[legend]

Public Member Functions

 EdgeTypeDefinition ()
 Constructor.
 EdgeTypeDefinition (const EdgeTypeDefinition *edgeType)
 copy constructor
 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
bool needsLaneType () const
 whether any lane attributes deviate from the edge attributes

Data Fields

std::set< SumoXMLAttrattrs
 The attributes which have been set.
double bikeLaneWidth
bool discard
 Whether edges of this edgeType shall be discarded.
double friction
 The default friction on an edge.
std::vector< LaneTypeDefinitionlaneTypeDefinitions
 vector with LaneTypeDefinitions
double maxWidth
 The maximum width for lanes of this edgeType [m].
double minWidth
 The minimum width for lanes of this edgeType [m].
bool oneWay
 Whether one-way traffic is mostly common for this edgeType (mostly unused).
SVCPermissions permissions
 List of vehicle edgeTypes that are allowed on this edge.
int priority
 The priority of an edge.
std::map< SUMOVehicleClass, double > restrictions
 The vehicle class specific speed restrictions.
double sidewalkWidth
double speed
 The maximal velocity on an edge in m/s.
LaneSpreadFunction spreadType
 lane spread type
double width
 The width of lanes of edges of this edgeType [m].
double widthResolution
 The resolution for interpreting custom (noisy) lane widths of this edgeType [m].

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 bikeLaneWidth, discard, friction, laneTypeDefinitions, maxWidth, minWidth, oneWay, permissions, priority, sidewalkWidth, speed, spreadType, SVC_UNSPECIFIED, width, and widthResolution.

Referenced by EdgeTypeDefinition(), and GNEEdgeType::GNEEdgeType().

Here is the caller graph for this function:

◆ EdgeTypeDefinition() [2/3]

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

◆ 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 )

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 friction, laneTypeDefinitions, permissions, speed, SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_FRICTION, SUMO_ATTR_SPEED, SUMO_ATTR_WIDTH, NBEdge::UNSPECIFIED_FRICTION, NBEdge::UNSPECIFIED_SPEED, NBEdge::UNSPECIFIED_WIDTH, and width.

Referenced by NIXMLEdgesHandler::addEdge().

Here is the caller graph for this function:

Field Documentation

◆ attrs

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

◆ bikeLaneWidth

◆ discard

bool NBTypeCont::EdgeTypeDefinition::discard

◆ friction

double NBTypeCont::EdgeTypeDefinition::friction

◆ 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 EdgeTypeDefinition(), EdgeTypeDefinition(), EdgeTypeDefinition(), GNEEdgeType::getAttribute(), NBTypeCont::getEdgeTypeMaxWidth(), and GNEEdgeType::GNEEdgeType().

◆ minWidth

double NBTypeCont::EdgeTypeDefinition::minWidth

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

Definition at line 141 of file NBTypeCont.h.

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

◆ 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 EdgeTypeDefinition(), EdgeTypeDefinition(), EdgeTypeDefinition(), GNEEdgeType::getAttribute(), NBTypeCont::getEdgeTypeIsOneWay(), and GNEEdgeType::GNEEdgeType().

◆ permissions

SVCPermissions NBTypeCont::EdgeTypeDefinition::permissions

◆ 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 EdgeTypeDefinition(), GNEEdgeType::GNEEdgeType(), NBTypeCont::insertEdgeType(), and NBTypeCont::insertEdgeType().

◆ sidewalkWidth

◆ speed

double NBTypeCont::EdgeTypeDefinition::speed

◆ spreadType

◆ width

double NBTypeCont::EdgeTypeDefinition::width

◆ 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 EdgeTypeDefinition(), EdgeTypeDefinition(), EdgeTypeDefinition(), GNEEdgeType::getAttribute(), NBTypeCont::getEdgeTypeWidthResolution(), and GNEEdgeType::GNEEdgeType().


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