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 computExtent (double center, double d)
 
const std::string getEdgeId ()
 
std::string getID () const
 
const std::string getName ()
 
const std::string getOrigEdgeId ()
 
const PositiongetPosition ()
 
 NBPTStop (std::string ptStopId, Position position, std::string edgeId, std::string origEdgeId, double length, std::string name)
 Constructor. More...
 
void reshiftPostion (const double offsetX, const double offsetY)
 
void setLaneID (const std::string &laneId)
 
void write (OutputDevice &device)
 

Private Member Functions

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

Private Attributes

const std::string myEdgeId
 
bool myFriendlyPos
 
double myFrom
 
std::string myLaneId
 
const std::string myName
 
const std::string myOrigEdgeId
 
Position myPosition
 
const std::string myPTStopId
 
const double myPTStopLength
 
double myTo
 

Detailed Description

The representation of a single pt stop.

Definition at line 49 of file NBPTStop.h.

Constructor & Destructor Documentation

◆ NBPTStop()

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

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

◆ computExtent()

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

Definition at line 71 of file NBPTStop.cpp.

References myFriendlyPos, myFrom, myPTStopLength, and myTo.

◆ getEdgeId()

const std::string NBPTStop::getEdgeId ( )

Definition at line 60 of file NBPTStop.cpp.

References myEdgeId.

◆ getID()

std::string NBPTStop::getID ( ) const

Definition at line 50 of file NBPTStop.cpp.

References myPTStopId.

Referenced by NBPTStopCont::insert().

◆ getName()

const std::string NBPTStop::getName ( )

Definition at line 65 of file NBPTStop.cpp.

References myName.

◆ getOrigEdgeId()

const std::string NBPTStop::getOrigEdgeId ( )

Definition at line 55 of file NBPTStop.cpp.

References myOrigEdgeId.

◆ getPosition()

const Position & NBPTStop::getPosition ( )

Definition at line 68 of file NBPTStop.cpp.

References myPosition.

◆ operator=()

NBPTStop& NBPTStop::operator= ( const NBPTStop )
private

Invalidated assignment operator.

◆ reshiftPostion()

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

Definition at line 96 of file NBPTStop.cpp.

References Position::add(), and myPosition.

◆ setLaneID()

void NBPTStop::setLaneID ( const std::string &  laneId)

Definition at line 78 of file NBPTStop.cpp.

References myLaneId.

◆ write()

Field Documentation

◆ myEdgeId

const std::string NBPTStop::myEdgeId
private

Definition at line 74 of file NBPTStop.h.

Referenced by getEdgeId().

◆ myFriendlyPos

bool NBPTStop::myFriendlyPos
private

Definition at line 82 of file NBPTStop.h.

Referenced by computExtent(), and write().

◆ myFrom

double NBPTStop::myFrom
private

Definition at line 80 of file NBPTStop.h.

Referenced by computExtent(), and write().

◆ myLaneId

std::string NBPTStop::myLaneId
private

Definition at line 78 of file NBPTStop.h.

Referenced by setLaneID(), and write().

◆ myName

const std::string NBPTStop::myName
private

Definition at line 77 of file NBPTStop.h.

Referenced by getName(), and write().

◆ myOrigEdgeId

const std::string NBPTStop::myOrigEdgeId
private

Definition at line 75 of file NBPTStop.h.

Referenced by getOrigEdgeId().

◆ myPosition

Position NBPTStop::myPosition
private

Definition at line 73 of file NBPTStop.h.

Referenced by getPosition(), and reshiftPostion().

◆ myPTStopId

const std::string NBPTStop::myPTStopId
private

Definition at line 72 of file NBPTStop.h.

Referenced by getID(), and write().

◆ myPTStopLength

const double NBPTStop::myPTStopLength
private

Definition at line 76 of file NBPTStop.h.

Referenced by computExtent().

◆ myTo

double NBPTStop::myTo
private

Definition at line 81 of file NBPTStop.h.

Referenced by computExtent(), and write().


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