SUMO - Simulation of Urban MObility
NBNode::Crossing Struct Reference

A definition of a pedestrian crossing. More...

#include <NBNode.h>

Collaboration diagram for NBNode::Crossing:
Collaboration graph

Public Member Functions

 Crossing (const NBNode *_node, const EdgeVector &_edges, double _width, bool _priority, int _customTLIndex, const PositionVector &_customShape)
 constructor More...
 

Data Fields

PositionVector customShape
 optional customShape for this crossing More...
 
int customTLIndex
 the custom traffic light index of this crossing (if controlled) More...
 
double customWidth
 This crossing's width. More...
 
EdgeVector edges
 The edges being crossed. More...
 
std::string id
 the (edge)-id of this crossing More...
 
std::string nextWalkingArea
 the lane-id of the next walkingArea More...
 
const NBNode * node
 The parent node of this crossing. More...
 
std::string prevWalkingArea
 the lane-id of the previous walkingArea More...
 
bool priority
 whether the pedestrians have priority More...
 
PositionVector shape
 The crossing's shape. More...
 
std::string tlID
 The id of the traffic light that controls this connection. More...
 
int tlLinkNo
 the traffic light index of this crossing (if controlled) More...
 
bool valid
 whether this crossing is valid (and can be written to the net.xml). This is needed for netedit because validity can only be checked during junction computation More...
 
double width
 This crossing's width. More...
 

Detailed Description

A definition of a pedestrian crossing.

Definition at line 131 of file NBNode.h.

Constructor & Destructor Documentation

NBNode::Crossing::Crossing ( const NBNode *  _node,
const EdgeVector &  _edges,
double  _width,
bool  _priority,
int  _customTLIndex,
const PositionVector &  _customShape 
)

constructor

Definition at line 221 of file NBNode.cpp.

Field Documentation

PositionVector NBNode::Crossing::customShape
int NBNode::Crossing::customTLIndex

the custom traffic light index of this crossing (if controlled)

Definition at line 157 of file NBNode.h.

Referenced by GNENet::deleteCrossing(), GNECrossing::getAttribute(), and GNECrossing::setAttribute().

double NBNode::Crossing::customWidth

This crossing's width.

Definition at line 141 of file NBNode.h.

Referenced by GNECrossing::getAttribute(), and GNECrossing::setAttribute().

std::string NBNode::Crossing::id

the (edge)-id of this crossing

Definition at line 145 of file NBNode.h.

Referenced by NBNode::buildWalkingAreas().

std::string NBNode::Crossing::nextWalkingArea

the lane-id of the next walkingArea

Definition at line 149 of file NBNode.h.

Referenced by NBNode::buildWalkingAreas().

const NBNode* NBNode::Crossing::node

The parent node of this crossing.

Definition at line 135 of file NBNode.h.

Referenced by NBOwnTLDef::hasCrossing(), and NBOwnTLDef::patchStateForCrossings().

std::string NBNode::Crossing::prevWalkingArea

the lane-id of the previous walkingArea

Definition at line 147 of file NBNode.h.

Referenced by NBNode::buildWalkingAreas().

bool NBNode::Crossing::priority
std::string NBNode::Crossing::tlID

The id of the traffic light that controls this connection.

Definition at line 159 of file NBNode.h.

Referenced by GNECrossing::isValid(), and NWWriter_SUMO::writeNetwork().

int NBNode::Crossing::tlLinkNo

the traffic light index of this crossing (if controlled)

Definition at line 155 of file NBNode.h.

Referenced by NWWriter_SUMO::writeNetwork().

bool NBNode::Crossing::valid

whether this crossing is valid (and can be written to the net.xml). This is needed for netedit because validity can only be checked during junction computation

Definition at line 161 of file NBNode.h.

Referenced by NBNode::buildWalkingAreas(), and GNECrossing::drawGL().

double NBNode::Crossing::width

This crossing's width.

Definition at line 143 of file NBNode.h.

Referenced by NBEdge::buildInnerEdges(), NBNode::buildWalkingAreas(), GNENet::deleteCrossing(), and GNECrossing::drawGL().


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