Eclipse SUMO - Simulation of Urban MObility
NBNodeTypeComputer Class Reference

#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...
 

Detailed Description

Definition at line 194 of file NBAlgorithms.h.

Member Function Documentation

◆ computeNodeTypes()

void NBNodeTypeComputer::computeNodeTypes ( NBNodeCont nc,
NBTrafficLightLogicCont tlc 
)
static

Computes node types.

Parameters
[in]ncThe container of nodes to loop along

Definition at line 256 of file NBAlgorithms.cpp.

References DEAD_END, OptionsCont::getBool(), NBNode::getEdges(), OptionsCont::getFloat(), Named::getID(), NBNode::getOppositeIncoming(), OptionsCont::getOptions(), NBNode::isDistrict(), OptionsCont::isInStringVector(), NBNode::isNearDistrict(), isRailwayNode(), NBNode::isSimpleContinuation(), isWaterway(), LEFT_BEFORE_RIGHT, MAX2(), NBNode::myIncomingEdges, NBNode::myType, NBNode::myTypeWasGuessed, NOJUNCTION, PRIORITY, RIGHT_BEFORE_LEFT, UNKNOWN, and validateRailCrossings().

Referenced by NBNetBuilder::compute().

Here is the caller graph for this function:

◆ isRailwayNode()

bool NBNodeTypeComputer::isRailwayNode ( const NBNode n)
static

whether the given node only has rail edges

Definition at line 380 of file NBAlgorithms.cpp.

References NBNode::getIncomingEdges(), SVC_RAIL_CLASSES, and SVC_TAXI.

Referenced by computeNodeTypes(), NBNodeCont::discardTrafficLights(), NBNode::getLinkState(), NBNodeCont::guessTLs(), and NBNodeShapeComputer::NBNodeShapeComputer().

Here is the caller graph for this function:

◆ validateRailCrossings()

void NBNodeTypeComputer::validateRailCrossings ( NBNodeCont nc,
NBTrafficLightLogicCont tlc 
)
static

Checks rail_crossing for validity.

Parameters
[in]ncThe container of nodes to loop along

Definition at line 329 of file NBAlgorithms.cpp.

References NBNodeCont::begin(), NBNodeCont::end(), StringBijection< T >::get(), Named::getID(), NBNode::getIncomingEdges(), OptionsCont::getOptions(), NBNode::getOutgoingEdges(), NBTrafficLightLogicCont::insert(), NBNode::myType, PRIORITY, RAIL_CROSSING, NBNode::removeTrafficLight(), SVC_PEDESTRIAN, SVC_RAIL_CLASSES, TL, TRAFFIC_LIGHT, SUMOXMLDefinitions::TrafficLightTypes, and WRITE_WARNINGF.

Referenced by NBNetBuilder::compute(), and computeNodeTypes().

Here is the caller graph for this function:

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