![]() |
Eclipse 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 (const 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 202 of file NBAlgorithms.h.
|
static |
Computes node types.
[in] | nc | The container of nodes to loop along |
Definition at line 163 of file NBAlgorithms.cpp.
References NBNodeCont::begin(), NBNodeCont::end(), OptionsCont::getBool(), NBNode::getEdges(), OptionsCont::getFloat(), Named::getID(), NBNode::getOppositeIncoming(), OptionsCont::getOptions(), NBNode::isDistrict(), OptionsCont::isInStringVector(), NBNode::isNearDistrict(), isRailwayNode(), NBNode::isSimpleContinuation(), isWaterway(), MAX2(), NBNode::myIncomingEdges, NBNode::myType, NBNode::myTypeWasGuessed, NODETYPE_DEAD_END, NODETYPE_NOJUNCTION, NODETYPE_PRIORITY, NODETYPE_RIGHT_BEFORE_LEFT, NODETYPE_UNKNOWN, and validateRailCrossings().
Referenced by NBNetBuilder::compute().
|
static |
whether the given node only has rail edges
Definition at line 282 of file NBAlgorithms.cpp.
References NBNode::getIncomingEdges(), and SVC_RAIL_CLASSES.
Referenced by computeNodeTypes(), NBNodeCont::discardTrafficLights(), NBNode::getLinkState(), and NBNodeCont::guessTLs().
|
static |
Checks rail_crossing for validity.
[in] | nc | The container of nodes to loop along |
Definition at line 236 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_WARNINGF.
Referenced by NBNetBuilder::compute(), and computeNodeTypes().