Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NBNodeTypeComputer Class Reference

#include <NBAlgorithms.h>

Static Public Member Functions

static void computeNodeTypes (NBNodeCont &nc, NBTrafficLightLogicCont &tlc)
 Computes node types.
static bool isRailwayNode (const NBNode *n)
 whether the given node only has rail edges
static void validateRailCrossings (NBNodeCont &nc, NBTrafficLightLogicCont &tlc)
 Checks rail_crossing for validity.

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(), OptionsCont::getFloat(), OptionsCont::getOptions(), OptionsCont::isInStringVector(), isRailwayNode(), isWaterway(), LEFT_BEFORE_RIGHT, MAX2(), n, NOJUNCTION, PRIORITY, RIGHT_BEFORE_LEFT, UNKNOWN, validateRailCrossings(), and ZIPPER.

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 387 of file NBAlgorithms.cpp.

References n, 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 336 of file NBAlgorithms.cpp.

References NBNodeCont::begin(), NBNodeCont::end(), OptionsCont::getOptions(), NBTrafficLightLogicCont::insert(), n, PRIORITY, RAIL_CROSSING, 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: