SUMO - Simulation of Urban MObility
NBPTStop Class Reference

The representation of a single pt stop. More...

#include <NBPTStop.h>

Collaboration diagram for NBPTStop:
Collaboration graph

Public Member Functions

void addPlatformCand (NBPTPlatform platform)
 
void computExtent (double center, double d)
 
const std::string getEdgeId ()
 
std::string getID () const
 
bool getIsMultipleStopPositions ()
 
double getLength ()
 
const std::map< std::string, std::string > & getMyAdditionalEdgeCandidates () const
 
const std::string getName ()
 
const std::string getOrigEdgeId ()
 
SVCPermissions getPermissions ()
 
std::vector< NBPTPlatform > & getPlatformCands ()
 
const Position & getPosition ()
 
 NBPTStop (std::string ptStopId, Position position, std::string edgeId, std::string origEdgeId, double length, std::string name, SVCPermissions svcPermissions)
 Constructor. More...
 
void registerAdditionalEdge (std::string wayId, std::string edgeId)
 
void reshiftPostion (const double offsetX, const double offsetY)
 
void setEdgeId (std::string edgeId)
 
void setIsMultipleStopPositions (bool multipleStopPositions)
 
void setLaneID (const std::string &laneId)
 
void setMyOrigEdgeId (const std::string &myOrigEdgeId)
 
void setMyPTStopLength (double myPTStopLength)
 
void write (OutputDevice &device)
 

Private Member Functions

NBPTStop & operator= (const NBPTStop &)
 Invalidated assignment operator. More...
 

Private Attributes

std::map< std::string, std::string > myAdditionalEdgeCandidates
 
std::string myEdgeId
 
double myEndPos
 
bool myIsMultipleStopPositions
 
std::string myLaneId
 
const std::string myName
 
std::string myOrigEdgeId
 
const SVCPermissions myPermissions
 
std::vector< NBPTPlatform > myPlatformCands
 
Position myPosition
 
const std::string myPTStopId
 
double myPTStopLength
 
double myStartPos
 

Detailed Description

The representation of a single pt stop.

Definition at line 51 of file NBPTStop.h.

Constructor & Destructor Documentation

NBPTStop::NBPTStop ( std::string  ptStopId,
Position  position,
std::string  edgeId,
std::string  origEdgeId,
double  length,
std::string  name,
SVCPermissions  svcPermissions 
)

Constructor.

Parameters
[in]idThe id of the pt stop
[in]positionThe position of the pt stop
[in]edgeIdThe edge id of the pt stop
[in]lengthThe length of the pt stop

Definition at line 38 of file NBPTStop.cpp.

Member Function Documentation

void NBPTStop::addPlatformCand ( NBPTPlatform  platform)

Definition at line 106 of file NBPTStop.cpp.

References myPlatformCands.

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

void NBPTStop::computExtent ( double  center,
double  d 
)

Definition at line 73 of file NBPTStop.cpp.

References MAX2(), MIN2(), myEndPos, myPTStopLength, and myStartPos.

Referenced by NBPTStopCont::findLaneAndComputeBusStopExtend().

std::string NBPTStop::getID ( ) const

Definition at line 51 of file NBPTStop.cpp.

References myPTStopId.

Referenced by NBPTStopCont::getReverseStop(), and NBPTStopCont::insert().

bool NBPTStop::getIsMultipleStopPositions ( )

Definition at line 112 of file NBPTStop.cpp.

References myIsMultipleStopPositions.

Referenced by NBPTStopCont::process().

double NBPTStop::getLength ( )

Definition at line 119 of file NBPTStop.cpp.

References myPTStopLength.

Referenced by NBPTStopCont::getReverseStop().

const std::map< std::string, std::string > & NBPTStop::getMyAdditionalEdgeCandidates ( ) const

Definition at line 128 of file NBPTStop.cpp.

References myAdditionalEdgeCandidates.

const std::string NBPTStop::getName ( )

Definition at line 66 of file NBPTStop.cpp.

References myName.

Referenced by NBPTStopCont::getReverseStop().

const std::string NBPTStop::getOrigEdgeId ( )

Definition at line 56 of file NBPTStop.cpp.

References myOrigEdgeId.

SVCPermissions NBPTStop::getPermissions ( )
std::vector< NBPTPlatform > & NBPTStop::getPlatformCands ( )
NBPTStop& NBPTStop::operator= ( const NBPTStop &  )
private

Invalidated assignment operator.

void NBPTStop::registerAdditionalEdge ( std::string  wayId,
std::string  edgeId 
)

Definition at line 125 of file NBPTStop.cpp.

References myAdditionalEdgeCandidates.

Referenced by NIImporter_OpenStreetMap::insertEdge().

void NBPTStop::reshiftPostion ( const double  offsetX,
const double  offsetY 
)

Definition at line 94 of file NBPTStop.cpp.

References Position::add(), myPlatformCands, and myPosition.

void NBPTStop::setEdgeId ( std::string  edgeId)
void NBPTStop::setIsMultipleStopPositions ( bool  multipleStopPositions)
void NBPTStop::setLaneID ( const std::string &  laneId)

Definition at line 78 of file NBPTStop.cpp.

References myLaneId.

Referenced by NBPTStopCont::findLaneAndComputeBusStopExtend().

void NBPTStop::setMyOrigEdgeId ( const std::string &  myOrigEdgeId)

Definition at line 131 of file NBPTStop.cpp.

References myOrigEdgeId.

void NBPTStop::setMyPTStopLength ( double  myPTStopLength)

Field Documentation

std::map<std::string, std::string> NBPTStop::myAdditionalEdgeCandidates
private

Definition at line 84 of file NBPTStop.h.

Referenced by getMyAdditionalEdgeCandidates(), and registerAdditionalEdge().

std::string NBPTStop::myEdgeId
private

Definition at line 83 of file NBPTStop.h.

Referenced by getEdgeId(), and setEdgeId().

double NBPTStop::myEndPos
private

Definition at line 101 of file NBPTStop.h.

Referenced by computExtent(), and write().

bool NBPTStop::myIsMultipleStopPositions
private

Definition at line 110 of file NBPTStop.h.

Referenced by getIsMultipleStopPositions(), and setIsMultipleStopPositions().

std::string NBPTStop::myLaneId
private

Definition at line 97 of file NBPTStop.h.

Referenced by setLaneID(), and write().

const std::string NBPTStop::myName
private

Definition at line 96 of file NBPTStop.h.

Referenced by getName(), and write().

std::string NBPTStop::myOrigEdgeId
private

Definition at line 88 of file NBPTStop.h.

Referenced by getOrigEdgeId(), and setMyOrigEdgeId().

const SVCPermissions NBPTStop::myPermissions
private

Definition at line 98 of file NBPTStop.h.

Referenced by getPermissions().

std::vector<NBPTPlatform> NBPTStop::myPlatformCands
private

Definition at line 109 of file NBPTStop.h.

Referenced by addPlatformCand(), getPlatformCands(), and reshiftPostion().

Position NBPTStop::myPosition
private

Definition at line 82 of file NBPTStop.h.

Referenced by getPosition(), and reshiftPostion().

const std::string NBPTStop::myPTStopId
private

Definition at line 81 of file NBPTStop.h.

Referenced by getID(), and write().

double NBPTStop::myPTStopLength
private

Definition at line 92 of file NBPTStop.h.

Referenced by computExtent(), getLength(), and setMyPTStopLength().

double NBPTStop::myStartPos
private

Definition at line 100 of file NBPTStop.h.

Referenced by computExtent(), and write().


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