Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NBRailwayTopologyAnalyzer::Track Class Reference

routing edge More...

#include <NBAlgorithms_Railway.h>

Collaboration diagram for NBRailwayTopologyAnalyzer::Track:
[legend]

Public Member Functions

void addSuccessor (Track *track)
const TrackgetBidiEdge () const
const std::string & getID () const
double getLength () const
int getNumericalID () const
const std::vector< Track * > & getSuccessors (SUMOVehicleClass svc=SVC_IGNORING) const
const std::vector< std::pair< const Track *, const Track * > > & getViaSuccessors (SUMOVehicleClass svc=SVC_IGNORING, bool ignoreTransientPermissions=false) const
bool isInternal () const
bool prohibits (const NBVehicle *const) const
bool restricts (const NBVehicle *const) const
 Track (NBEdge *e, int i=-1, const std::string &_id="", double _penalty=1)

Data Fields

NBEdgeedge
double penalty

Private Member Functions

Trackoperator= (const Track &)=delete

Private Attributes

const std::string id
const int index
SVCPermissions minPermissions
std::vector< Track * > successors
std::map< SUMOVehicleClass, std::vector< Track * > > svcSuccessors
std::map< SUMOVehicleClass, std::vector< std::pair< const Track *, const Track * > > > svcViaSuccessors
std::vector< std::pair< const Track *, const Track * > > viaSuccessors

Detailed Description

routing edge

Definition at line 57 of file NBAlgorithms_Railway.h.

Constructor & Destructor Documentation

◆ Track()

NBRailwayTopologyAnalyzer::Track::Track ( NBEdge * e,
int i = -1,
const std::string & _id = "",
double _penalty = 1 )
inline

Definition at line 59 of file NBAlgorithms_Railway.h.

References edge, getID(), getNumericalID(), id, index, minPermissions, and penalty.

Referenced by addSuccessor(), getBidiEdge(), getSuccessors(), getViaSuccessors(), and operator=().

Here is the caller graph for this function:

Member Function Documentation

◆ addSuccessor()

void NBRailwayTopologyAnalyzer::Track::addSuccessor ( Track * track)

◆ getBidiEdge()

const Track * NBRailwayTopologyAnalyzer::Track::getBidiEdge ( ) const
inline

Definition at line 80 of file NBAlgorithms_Railway.h.

References Track().

◆ getID()

const std::string & NBRailwayTopologyAnalyzer::Track::getID ( ) const
inline

Definition at line 71 of file NBAlgorithms_Railway.h.

References id.

Referenced by Track().

Here is the caller graph for this function:

◆ getLength()

double NBRailwayTopologyAnalyzer::Track::getLength ( ) const
inline

Definition at line 77 of file NBAlgorithms_Railway.h.

◆ getNumericalID()

int NBRailwayTopologyAnalyzer::Track::getNumericalID ( ) const
inline

Definition at line 74 of file NBAlgorithms_Railway.h.

References index.

Referenced by Track().

Here is the caller graph for this function:

◆ getSuccessors()

const std::vector< NBRailwayTopologyAnalyzer::Track * > & NBRailwayTopologyAnalyzer::Track::getSuccessors ( SUMOVehicleClass svc = SVC_IGNORING) const

Definition at line 68 of file NBAlgorithms_Railway.cpp.

References minPermissions, successors, svcSuccessors, and Track().

◆ getViaSuccessors()

const std::vector< std::pair< const NBRailwayTopologyAnalyzer::Track *, const NBRailwayTopologyAnalyzer::Track * > > & NBRailwayTopologyAnalyzer::Track::getViaSuccessors ( SUMOVehicleClass svc = SVC_IGNORING,
bool ignoreTransientPermissions = false ) const

◆ isInternal()

bool NBRailwayTopologyAnalyzer::Track::isInternal ( ) const
inline

Definition at line 83 of file NBAlgorithms_Railway.h.

◆ operator=()

Track & NBRailwayTopologyAnalyzer::Track::operator= ( const Track & )
privatedelete

References Track().

◆ prohibits()

bool NBRailwayTopologyAnalyzer::Track::prohibits ( const NBVehicle * const ) const
inline

Definition at line 86 of file NBAlgorithms_Railway.h.

◆ restricts()

bool NBRailwayTopologyAnalyzer::Track::restricts ( const NBVehicle * const ) const
inline

Definition at line 89 of file NBAlgorithms_Railway.h.

Field Documentation

◆ edge

NBEdge* NBRailwayTopologyAnalyzer::Track::edge

◆ id

const std::string NBRailwayTopologyAnalyzer::Track::id
private

Definition at line 98 of file NBAlgorithms_Railway.h.

Referenced by getID(), and Track().

◆ index

const int NBRailwayTopologyAnalyzer::Track::index
private

Definition at line 97 of file NBAlgorithms_Railway.h.

Referenced by getNumericalID(), and Track().

◆ minPermissions

SVCPermissions NBRailwayTopologyAnalyzer::Track::minPermissions
private

Definition at line 101 of file NBAlgorithms_Railway.h.

Referenced by addSuccessor(), getSuccessors(), getViaSuccessors(), and Track().

◆ penalty

double NBRailwayTopologyAnalyzer::Track::penalty

Definition at line 94 of file NBAlgorithms_Railway.h.

Referenced by NBRailwayTopologyAnalyzer::getTravelTimeStatic(), and Track().

◆ successors

std::vector<Track*> NBRailwayTopologyAnalyzer::Track::successors
private

Definition at line 99 of file NBAlgorithms_Railway.h.

Referenced by addSuccessor(), getSuccessors(), and getViaSuccessors().

◆ svcSuccessors

std::map<SUMOVehicleClass, std::vector<Track*> > NBRailwayTopologyAnalyzer::Track::svcSuccessors
mutableprivate

Definition at line 102 of file NBAlgorithms_Railway.h.

Referenced by getSuccessors().

◆ svcViaSuccessors

std::map<SUMOVehicleClass, std::vector<std::pair<const Track*, const Track*> > > NBRailwayTopologyAnalyzer::Track::svcViaSuccessors
mutableprivate

Definition at line 103 of file NBAlgorithms_Railway.h.

Referenced by getViaSuccessors().

◆ viaSuccessors

std::vector<std::pair<const Track*, const Track*> > NBRailwayTopologyAnalyzer::Track::viaSuccessors
private

Definition at line 100 of file NBAlgorithms_Railway.h.

Referenced by addSuccessor(), and getViaSuccessors().


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