SUMO - Simulation of Urban MObility
NBPTLine Class Reference

#include <NBPTLine.h>

Collaboration diagram for NBPTLine:
Collaboration graph

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::vector< std::string > & getMyWays () const
 
std::string getName ()
 
std::string getRoute ()
 
std::vector< NBPTStop * > getStops ()
 
std::vector< long long int > * getWaysNodes (std::string wayId)
 
 NBPTLine (std::string name)
 
void setId (long long int id)
 
void setMyNumOfStops (unsigned long numStops)
 
void setRef (std::string basic_string)
 
void write (OutputDevice &device)
 

Private Attributes

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

Detailed Description

Definition at line 36 of file NBPTLine.h.

Constructor & Destructor Documentation

NBPTLine::NBPTLine ( std::string  name)
explicit

Definition at line 27 of file NBPTLine.cpp.

Member Function Documentation

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

Definition at line 102 of file NBPTLine.cpp.

References myRoute.

Referenced by NBPTLineCont::constructRoute().

void NBPTLine::addPTStop ( NBPTStop *  pStop)

Definition at line 31 of file NBPTLine.cpp.

References myPTStops.

Referenced by NIImporter_OpenStreetMap::RelationHandler::myEndElement().

void NBPTLine::addWayNode ( long long int  way,
long long int  node 
)
const std::vector< std::string > & NBPTLine::getMyWays ( ) const

Definition at line 81 of file NBPTLine.cpp.

References myWays.

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

std::string NBPTLine::getName ( )

Definition at line 35 of file NBPTLine.cpp.

References myName.

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

std::string NBPTLine::getRoute ( )

Definition at line 94 of file NBPTLine.cpp.

References myRoute.

Referenced by write().

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

Definition at line 84 of file NBPTLine.cpp.

References myWaysNodes.

Referenced by NBPTLineCont::reviseStops().

void NBPTLine::setId ( long long int  id)

Definition at line 69 of file NBPTLine.cpp.

References myPTLineId.

Referenced by NBPTLineCont::insert().

void NBPTLine::setMyNumOfStops ( unsigned long  numStops)

Definition at line 106 of file NBPTLine.cpp.

References myNumOfStops.

Referenced by NIImporter_OpenStreetMap::RelationHandler::myEndElement().

void NBPTLine::setRef ( std::string  basic_string)

Definition at line 90 of file NBPTLine.cpp.

References myRef.

Referenced by NIImporter_OpenStreetMap::RelationHandler::myEndElement().

Field Documentation

std::string NBPTLine::myCurrentWay
private

Definition at line 62 of file NBPTLine.h.

Referenced by addWayNode().

std::string NBPTLine::myName
private

Definition at line 51 of file NBPTLine.h.

Referenced by getName(), and write().

unsigned long NBPTLine::myNumOfStops
private

Definition at line 73 of file NBPTLine.h.

Referenced by setMyNumOfStops(), and write().

long long int NBPTLine::myPTLineId
private

Definition at line 63 of file NBPTLine.h.

Referenced by setId(), and write().

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

Definition at line 52 of file NBPTLine.h.

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

std::string NBPTLine::myRef
private

Definition at line 64 of file NBPTLine.h.

Referenced by setRef(), and write().

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

Definition at line 71 of file NBPTLine.h.

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

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

Definition at line 56 of file NBPTLine.h.

Referenced by addWayNode(), and getMyWays().

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

Definition at line 55 of file NBPTLine.h.

Referenced by addWayNode(), and getWaysNodes().


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