![]() |
SUMO - Simulation of Urban MObility
|
#include <NBAlgorithms.h>
Static Public Member Functions | |
static void | computeNodeTypes (NBNodeCont &nc, NBTrafficLightLogicCont &tlc) |
Computes node types. More... | |
static bool | isRailwayNode (NBNode *n) |
whether the given node only has rail edges More... | |
static void | validateRailCrossings (NBNodeCont &nc, NBTrafficLightLogicCont &tlc) |
Checks rail_crossing for validity. More... | |
Definition at line 203 of file NBAlgorithms.h.
|
static |
Computes node types.
[in] | nc | The container of nodes to loop along |
Definition at line 153 of file NBAlgorithms.cpp.
References NBNodeCont::begin(), NBNodeCont::end(), NBNode::getEdges(), NBNode::getOppositeIncoming(), NBNode::isSimpleContinuation(), isWaterway(), MAX2(), NBNode::myIncomingEdges, NBNode::myType, NODETYPE_DEAD_END, NODETYPE_NOJUNCTION, NODETYPE_PRIORITY, NODETYPE_RIGHT_BEFORE_LEFT, and NODETYPE_UNKNOWN.
Referenced by NBNetBuilder::compute().
|
static |
whether the given node only has rail edges
Definition at line 257 of file NBAlgorithms.cpp.
References NBNode::getIncomingEdges(), and SVC_RAIL_CLASSES.
Referenced by NBNodeCont::discardTrafficLights(), and NBNodeCont::guessTLs().
|
static |
Checks rail_crossing for validity.
[in] | nc | The container of nodes to loop along |
Definition at line 211 of file NBAlgorithms.cpp.
References NBNodeCont::begin(), NBNodeCont::end(), StringBijection< T >::get(), Named::getID(), NBNode::getIncomingEdges(), OptionsCont::getOptions(), NBNode::getOutgoingEdges(), NBTrafficLightLogicCont::insert(), NBNode::myType, NODETYPE_PRIORITY, NODETYPE_RAIL_CROSSING, NODETYPE_TRAFFIC_LIGHT, NBNode::removeTrafficLight(), SVC_PEDESTRIAN, SVC_RAIL_CLASSES, SUMOXMLDefinitions::TrafficLightTypes, and WRITE_WARNING.
Referenced by NBNetBuilder::compute().