SUMO - Simulation of Urban MObility
NBPTLineCont Class Reference

#include <NBPTLineCont.h>

Collaboration diagram for NBPTLineCont:
Collaboration graph

Public Member Functions

void addEdges2Keep (const OptionsCont &oc, std::set< std::string > &into)
 add edges that must be kept More...
 
std::vector< NBPTLine * >::const_iterator begin () const
 Returns the pointer to the begin of the stored pt lines. More...
 
std::vector< NBPTLine * >::const_iterator end () const
 Returns the pointer to the end of the stored pt lines. More...
 
void fixBidiStops (const NBEdgeCont &ec)
 select the correct stop on superposed rail edges More...
 
const std::vector< NBPTLine * > & getLines () const
 
std::set< std::string > & getServedPTStops ()
 
void insert (NBPTLine *pLine)
 insert new line More...
 
 NBPTLineCont ()
 constructor More...
 
void process (NBEdgeCont &cont)
 
 ~NBPTLineCont ()
 destructor More...
 

Private Member Functions

void constructRoute (NBPTLine *myPTLine, NBEdgeCont &cont)
 
void reviseStops (NBPTLine *myPTLine, NBEdgeCont &cont)
 

Static Private Member Functions

static double getCost (const NBEdgeCont &ec, SUMOAbstractRouter< NBEdge, NBVehicle > &router, const NBPTStop *from, const NBPTStop *to, const NBVehicle *veh)
 

Private Attributes

long long int myIdCnt
 
std::vector< NBPTLine * > myPTLines
 The map of names to pt lines. More...
 
std::set< std::string > myServedPTStops
 

Static Private Attributes

static const int BWD
 
static const int FWD
 

Detailed Description

Definition at line 27 of file NBPTLineCont.h.

Constructor & Destructor Documentation

◆ NBPTLineCont()

NBPTLineCont::NBPTLineCont ( )

constructor

Definition at line 40 of file NBPTLineCont.cpp.

◆ ~NBPTLineCont()

NBPTLineCont::~NBPTLineCont ( )

destructor

Definition at line 45 of file NBPTLineCont.cpp.

References myPTLines.

Member Function Documentation

◆ addEdges2Keep()

void NBPTLineCont::addEdges2Keep ( const OptionsCont oc,
std::set< std::string > &  into 
)

add edges that must be kept

Definition at line 295 of file NBPTLineCont.cpp.

References OptionsCont::isSet(), and myPTLines.

Referenced by NBRampsComputer::computeRamps(), getLines(), and NBNodeCont::removeUnwishedNodes().

◆ begin()

std::vector<NBPTLine*>::const_iterator NBPTLineCont::begin ( ) const
inline

Returns the pointer to the begin of the stored pt lines.

Returns
The iterator to the beginning of stored pt lines

Definition at line 42 of file NBPTLineCont.h.

References myPTLines.

Referenced by NWWriter_XML::writePTLines().

◆ constructRoute()

void NBPTLineCont::constructRoute ( NBPTLine myPTLine,
NBEdgeCont cont 
)
private

◆ end()

std::vector<NBPTLine*>::const_iterator NBPTLineCont::end ( ) const
inline

Returns the pointer to the end of the stored pt lines.

Returns
The iterator to the end of stored pt lines

Definition at line 49 of file NBPTLineCont.h.

References myPTLines.

Referenced by NWWriter_XML::writePTLines().

◆ fixBidiStops()

void NBPTLineCont::fixBidiStops ( const NBEdgeCont ec)

◆ getCost()

double NBPTLineCont::getCost ( const NBEdgeCont ec,
SUMOAbstractRouter< NBEdge, NBVehicle > &  router,
const NBPTStop from,
const NBPTStop to,
const NBVehicle veh 
)
staticprivate

◆ getLines()

const std::vector<NBPTLine*>& NBPTLineCont::getLines ( ) const
inline

◆ getServedPTStops()

std::set< std::string > & NBPTLineCont::getServedPTStops ( )

Definition at line 307 of file NBPTLineCont.cpp.

References myServedPTStops.

Referenced by NBNetBuilder::compute(), and getLines().

◆ insert()

void NBPTLineCont::insert ( NBPTLine pLine)

insert new line

Definition at line 53 of file NBPTLineCont.cpp.

References myIdCnt, myPTLines, and NBPTLine::setId().

Referenced by NIXMLPTHandler::addPTLine(), and NIImporter_OpenStreetMap::RelationHandler::myEndElement().

◆ process()

void NBPTLineCont::process ( NBEdgeCont cont)

Definition at line 57 of file NBPTLineCont.cpp.

References constructRoute(), myPTLines, and reviseStops().

Referenced by NBNetBuilder::compute(), and getLines().

◆ reviseStops()

Field Documentation

◆ BWD

const int NBPTLineCont::BWD
staticprivate

Definition at line 69 of file NBPTLineCont.h.

Referenced by reviseStops().

◆ FWD

const int NBPTLineCont::FWD
staticprivate

Definition at line 68 of file NBPTLineCont.h.

Referenced by reviseStops().

◆ myIdCnt

long long int NBPTLineCont::myIdCnt
private

Definition at line 74 of file NBPTLineCont.h.

Referenced by insert().

◆ myPTLines

std::vector<NBPTLine*> NBPTLineCont::myPTLines
private

The map of names to pt lines.

Definition at line 72 of file NBPTLineCont.h.

Referenced by addEdges2Keep(), begin(), end(), fixBidiStops(), getLines(), insert(), process(), and ~NBPTLineCont().

◆ myServedPTStops

std::set<std::string> NBPTLineCont::myServedPTStops
private

Definition at line 78 of file NBPTLineCont.h.

Referenced by getServedPTStops(), and reviseStops().


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