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

#include <NBAlgorithms_Railway.h>

Static Public Member Functions

static int guessRailSignals (NBEdgeCont &ec, NBPTStopCont &sc)

Static Private Member Functions

static bool canBeSignal (const NBNode *node)
static int guessByStops (NBEdgeCont &ec, NBPTStopCont &sc, double minLength)

Detailed Description

Definition at line 159 of file NBAlgorithms_Railway.h.

Member Function Documentation

◆ canBeSignal()

bool NBRailwaySignalGuesser::canBeSignal ( const NBNode * node)
staticprivate

Definition at line 1321 of file NBAlgorithms_Railway.cpp.

References NBNode::geometryLike(), NBNode::getType(), and RAIL_SIGNAL.

Referenced by guessByStops().

Here is the caller graph for this function:

◆ guessByStops()

int NBRailwaySignalGuesser::guessByStops ( NBEdgeCont & ec,
NBPTStopCont & sc,
double minLength )
staticprivate

XXX should split edge if it is too long

Definition at line 1326 of file NBAlgorithms_Railway.cpp.

References canBeSignal(), NBNode::geometryLike(), NBEdge::getFromNode(), NBNode::getIncomingEdges(), NBEdge::getLoadedLength(), NBEdge::getPermissions(), NBNode::getPosition(), NBPTStopCont::getStops(), NBEdge::getToNode(), isRailway(), RAIL_SIGNAL, NBNode::reinit(), NBEdgeCont::retrieve(), TL, and WRITE_MESSAGEF.

Referenced by guessRailSignals().

Here is the caller graph for this function:

◆ guessRailSignals()

int NBRailwaySignalGuesser::guessRailSignals ( NBEdgeCont & ec,
NBPTStopCont & sc )
static

Definition at line 1307 of file NBAlgorithms_Railway.cpp.

References OptionsCont::exists(), OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getOptions(), and guessByStops().

Referenced by NBNetBuilder::compute().

Here is the caller graph for this function:

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