Eclipse SUMO - Simulation of Urban MObility
NBPTLineCont Class Reference

#include <NBPTLineCont.h>

Collaboration diagram for NBPTLineCont:

Public Member Functions

void addEdges2Keep (const OptionsCont &oc, std::set< std::string > &into)
 add edges that must be kept More...
 
void fixBidiStops (const NBEdgeCont &ec)
 select the correct stop on superposed rail edges More...
 
const std::map< std::string, NBPTLine * > & getLines () const
 
std::set< std::string > & getServedPTStops ()
 
void insert (NBPTLine *ptLine)
 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< NBRouterEdge, NBVehicle > &router, const NBPTStop *from, const NBPTStop *to, const NBVehicle *veh)
 

Private Attributes

std::map< std::string, 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 43 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 287 of file NBPTLineCont.cpp.

References OptionsCont::isSet(), and myPTLines.

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

◆ constructRoute()

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

◆ fixBidiStops()

◆ getCost()

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

◆ getLines()

const std::map<std::string, NBPTLine*>& NBPTLineCont::getLines ( ) const
inline

◆ getServedPTStops()

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

Definition at line 299 of file NBPTLineCont.cpp.

References myServedPTStops.

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

◆ insert()

void NBPTLineCont::insert ( NBPTLine ptLine)

insert new line

Definition at line 51 of file NBPTLineCont.cpp.

References NBPTLine::getLineID(), and myPTLines.

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

◆ process()

void NBPTLineCont::process ( NBEdgeCont cont)

Definition at line 55 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 55 of file NBPTLineCont.h.

Referenced by reviseStops().

◆ FWD

const int NBPTLineCont::FWD
staticprivate

Definition at line 54 of file NBPTLineCont.h.

Referenced by reviseStops().

◆ myPTLines

std::map<std::string, NBPTLine*> NBPTLineCont::myPTLines
private

The map of names to pt lines.

Definition at line 58 of file NBPTLineCont.h.

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

◆ myServedPTStops

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

Definition at line 63 of file NBPTLineCont.h.

Referenced by getServedPTStops(), and reviseStops().


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