SUMO - Simulation of Urban MObility
NBNodeTypeComputer Class Reference

#include <NBAlgorithms.h>

Collaboration diagram for NBNodeTypeComputer:
Collaboration graph

Static Public Member Functions

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

Detailed Description

Definition at line 203 of file NBAlgorithms.h.

Member Function Documentation

◆ computeNodeTypes()

void NBNodeTypeComputer::computeNodeTypes ( NBNodeCont &  nc)
static

◆ isRailwayNode()

bool NBNodeTypeComputer::isRailwayNode ( NBNode *  n)
static

whether the given node only has rail edges

Definition at line 244 of file NBAlgorithms.cpp.

References NBNode::getIncomingEdges(), and SVC_RAIL_CLASSES.

Referenced by NBNodeCont::discardTrafficLights(), and NBNodeCont::guessTLs().

◆ validateRailCrossings()

void NBNodeTypeComputer::validateRailCrossings ( NBNodeCont &  nc)
static

Checks rail_crossing for validity.

Parameters
[in]ncThe container of nodes to loop along

Definition at line 208 of file NBAlgorithms.cpp.

References NBNodeCont::begin(), NBNodeCont::end(), NBNode::getIncomingEdges(), NBNode::getOutgoingEdges(), NBNode::myType, NODETYPE_PRIORITY, NODETYPE_RAIL_CROSSING, SVC_PEDESTRIAN, and SVC_RAIL_CLASSES.

Referenced by NBNetBuilder::compute().


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