Eclipse SUMO - Simulation of Urban MObility
NBRailwayTopologyAnalyzer::Track Class Reference

routing edge More...

#include <NBAlgorithms_Railway.h>

Collaboration diagram for NBRailwayTopologyAnalyzer::Track:

Public Member Functions

void addSuccessor (Track *track)
 
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) const
 
bool isInternal () const
 
 Track (NBEdge *e, int i=-1, const std::string &_id="")
 

Data Fields

NBEdgeedge
 

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 59 of file NBAlgorithms_Railway.h.

Constructor & Destructor Documentation

◆ Track()

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

Member Function Documentation

◆ addSuccessor()

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

Definition at line 60 of file NBAlgorithms_Railway.cpp.

References edge, NBEdge::getPermissions(), minPermissions, successors, and viaSuccessors.

Referenced by Track().

◆ getID()

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

Definition at line 72 of file NBAlgorithms_Railway.h.

References id.

◆ getLength()

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

Definition at line 78 of file NBAlgorithms_Railway.h.

◆ getNumericalID()

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

Definition at line 75 of file NBAlgorithms_Railway.h.

References index.

Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops().

◆ getSuccessors()

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

Definition at line 67 of file NBAlgorithms_Railway.cpp.

References minPermissions, successors, and svcSuccessors.

Referenced by Track().

◆ getViaSuccessors()

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

Definition at line 85 of file NBAlgorithms_Railway.cpp.

References minPermissions, successors, svcViaSuccessors, and viaSuccessors.

Referenced by Track().

◆ isInternal()

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

Definition at line 81 of file NBAlgorithms_Railway.h.

◆ operator=()

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

Field Documentation

◆ edge

◆ id

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

Definition at line 89 of file NBAlgorithms_Railway.h.

Referenced by getID().

◆ index

const int NBRailwayTopologyAnalyzer::Track::index
private

◆ minPermissions

SVCPermissions NBRailwayTopologyAnalyzer::Track::minPermissions
private

Definition at line 92 of file NBAlgorithms_Railway.h.

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

◆ successors

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

Definition at line 90 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 93 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 94 of file NBAlgorithms_Railway.h.

Referenced by getViaSuccessors().

◆ viaSuccessors

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

Definition at line 91 of file NBAlgorithms_Railway.h.

Referenced by addSuccessor(), and getViaSuccessors().


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