Eclipse SUMO - Simulation of Urban MObility
NBPTLine Class Reference

#include <NBPTLine.h>

Collaboration diagram for NBPTLine:

Public Member Functions

void addEdgeVector (std::vector< NBEdge * >::iterator fr, std::vector< NBEdge * >::iterator to)
 
void addPTStop (NBPTStop *pStop)
 
void addWayNode (long long int way, long long int node)
 
const std::string & getLineID () const
 
const std::vector< std::string > & getMyWays () const
 
const std::string & getName () const
 
const std::string & getRef () const
 get line reference (not unique) More...
 
const std::vector< NBEdge * > & getRoute () const
 
std::vector< NBPTStop * > getStops ()
 
const std::string & getType () const
 
std::vector< long long int > * getWaysNodes (std::string wayId)
 
 NBPTLine (const std::string &id, const std::string &name, const std::string &type, const std::string &ref, int interval, const std::string &nightService)
 
void replaceStops (std::vector< NBPTStop * > stops)
 
void setMyNumOfStops (int numStops)
 
void write (OutputDevice &device, NBEdgeCont &ec)
 

Private Attributes

std::string myCurrentWay
 
int myInterval
 
std::string myName
 
std::string myNightService
 
int myNumOfStops
 
std::string myPTLineId
 
std::vector< NBPTStop * > myPTStops
 
std::string myRef
 
std::vector< NBEdge * > myRoute
 
std::string myType
 
std::vector< std::string > myWays
 
std::map< std::string, std::vector< long long int > > myWaysNodes
 

Detailed Description

Definition at line 34 of file NBPTLine.h.

Constructor & Destructor Documentation

◆ NBPTLine()

NBPTLine::NBPTLine ( const std::string &  id,
const std::string &  name,
const std::string &  type,
const std::string &  ref,
int  interval,
const std::string &  nightService 
)
explicit

Definition at line 27 of file NBPTLine.cpp.

Member Function Documentation

◆ addEdgeVector()

void NBPTLine::addEdgeVector ( std::vector< NBEdge * >::iterator  fr,
std::vector< NBEdge * >::iterator  to 
)

Definition at line 109 of file NBPTLine.cpp.

References myRoute.

Referenced by NBPTLineCont::constructRoute().

◆ addPTStop()

void NBPTLine::addPTStop ( NBPTStop pStop)

◆ addWayNode()

void NBPTLine::addWayNode ( long long int  way,
long long int  node 
)

◆ getLineID()

const std::string& NBPTLine::getLineID ( ) const
inline

◆ getMyWays()

const std::vector< std::string > & NBPTLine::getMyWays ( ) const

Definition at line 99 of file NBPTLine.cpp.

References myWays.

Referenced by NBPTLineCont::constructRoute(), and NBPTLineCont::reviseStops().

◆ getName()

const std::string& NBPTLine::getName ( ) const
inline

Definition at line 46 of file NBPTLine.h.

References myName.

Referenced by NBPTLineCont::constructRoute(), and NBPTLineCont::reviseStops().

◆ getRef()

const std::string& NBPTLine::getRef ( ) const
inline

get line reference (not unique)

Definition at line 61 of file NBPTLine.h.

References myRef.

Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), NBPTLineCont::fixBidiStops(), and NBPTLineCont::reviseStops().

◆ getRoute()

const std::vector< NBEdge * > & NBPTLine::getRoute ( ) const

Definition at line 116 of file NBPTLine.cpp.

References myRoute.

◆ getStops()

◆ getType()

const std::string& NBPTLine::getType ( ) const
inline

Definition at line 50 of file NBPTLine.h.

References myType.

Referenced by NBPTLineCont::fixBidiStops().

◆ getWaysNodes()

std::vector< long long int > * NBPTLine::getWaysNodes ( std::string  wayId)

Definition at line 102 of file NBPTLine.cpp.

References myWaysNodes.

Referenced by NBPTLineCont::reviseStops().

◆ replaceStops()

void NBPTLine::replaceStops ( std::vector< NBPTStop * >  stops)
inline

Definition at line 65 of file NBPTLine.h.

References myPTStops.

Referenced by NBPTLineCont::fixBidiStops().

◆ setMyNumOfStops()

void NBPTLine::setMyNumOfStops ( int  numStops)

◆ write()

Field Documentation

◆ myCurrentWay

std::string NBPTLine::myCurrentWay
private

Definition at line 82 of file NBPTLine.h.

Referenced by addWayNode().

◆ myInterval

int NBPTLine::myInterval
private

Definition at line 85 of file NBPTLine.h.

Referenced by write().

◆ myName

std::string NBPTLine::myName
private

Definition at line 70 of file NBPTLine.h.

Referenced by getName(), and write().

◆ myNightService

std::string NBPTLine::myNightService
private

Definition at line 86 of file NBPTLine.h.

Referenced by write().

◆ myNumOfStops

int NBPTLine::myNumOfStops
private

Definition at line 97 of file NBPTLine.h.

Referenced by setMyNumOfStops(), and write().

◆ myPTLineId

std::string NBPTLine::myPTLineId
private

Definition at line 83 of file NBPTLine.h.

Referenced by getLineID(), and write().

◆ myPTStops

std::vector<NBPTStop*> NBPTLine::myPTStops
private

Definition at line 72 of file NBPTLine.h.

Referenced by addPTStop(), getStops(), replaceStops(), and write().

◆ myRef

std::string NBPTLine::myRef
private

Definition at line 84 of file NBPTLine.h.

Referenced by getRef(), and write().

◆ myRoute

std::vector<NBEdge*> NBPTLine::myRoute
private

Definition at line 92 of file NBPTLine.h.

Referenced by addEdgeVector(), getRoute(), and write().

◆ myType

std::string NBPTLine::myType
private

Definition at line 71 of file NBPTLine.h.

Referenced by getType(), and write().

◆ myWays

std::vector<std::string> NBPTLine::myWays
private

Definition at line 76 of file NBPTLine.h.

Referenced by addWayNode(), and getMyWays().

◆ myWaysNodes

std::map<std::string, std::vector<long long int> > NBPTLine::myWaysNodes
private

Definition at line 75 of file NBPTLine.h.

Referenced by addWayNode(), and getWaysNodes().


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