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.

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.

◆ getID()

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

Definition at line 71 of file NBAlgorithms_Railway.h.

References id.

◆ 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.

◆ getSuccessors()

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

Definition at line 68 of file NBAlgorithms_Railway.cpp.

◆ getViaSuccessors()

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

Definition at line 87 of file NBAlgorithms_Railway.cpp.

◆ isInternal()

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

Definition at line 83 of file NBAlgorithms_Railway.h.

◆ operator=()

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

◆ 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().

◆ index

const int NBRailwayTopologyAnalyzer::Track::index
private

Definition at line 97 of file NBAlgorithms_Railway.h.

Referenced by getNumericalID().

◆ minPermissions

SVCPermissions NBRailwayTopologyAnalyzer::Track::minPermissions
private

Definition at line 101 of file NBAlgorithms_Railway.h.

Referenced by addSuccessor().

◆ penalty

double NBRailwayTopologyAnalyzer::Track::penalty

◆ successors

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

Definition at line 99 of file NBAlgorithms_Railway.h.

Referenced by addSuccessor().

◆ svcSuccessors

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

Definition at line 102 of file NBAlgorithms_Railway.h.

◆ 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.

◆ 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().


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