![]() |
SUMO - Simulation of Urban MObility
|
The representation of a single pt stop. More...
#include <NBPTStop.h>

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 Position & | getPosition () |
| 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 | |
| NBPTStop & | operator= (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 |
The representation of a single pt stop.
Definition at line 49 of file NBPTStop.h.
| NBPTStop::NBPTStop | ( | std::string | ptStopId, |
| Position | position, | ||
| std::string | edgeId, | ||
| std::string | origEdgeId, | ||
| double | length, | ||
| std::string | name | ||
| ) |
Constructor.
| [in] | id | The id of the pt stop |
| [in] | position | The position of the pt stop |
| [in] | edgeId | The edge id of the pt stop |
| [in] | length | The length of the pt stop |
Definition at line 38 of file NBPTStop.cpp.
| void NBPTStop::computExtent | ( | double | center, |
| double | d | ||
| ) |
Definition at line 71 of file NBPTStop.cpp.
References myFriendlyPos, myFrom, myPTStopLength, and myTo.
| const std::string NBPTStop::getEdgeId | ( | ) |
Definition at line 60 of file NBPTStop.cpp.
References myEdgeId.
| std::string NBPTStop::getID | ( | ) | const |
Definition at line 50 of file NBPTStop.cpp.
References myPTStopId.
Referenced by NBPTStopCont::insert().
| const std::string NBPTStop::getName | ( | ) |
Definition at line 65 of file NBPTStop.cpp.
References myName.
| const std::string NBPTStop::getOrigEdgeId | ( | ) |
Definition at line 55 of file NBPTStop.cpp.
References myOrigEdgeId.
| const Position & NBPTStop::getPosition | ( | ) |
Definition at line 68 of file NBPTStop.cpp.
References myPosition.
| void NBPTStop::reshiftPostion | ( | const double | offsetX, |
| const double | offsetY | ||
| ) |
Definition at line 96 of file NBPTStop.cpp.
References Position::add(), and myPosition.
| void NBPTStop::setLaneID | ( | const std::string & | laneId | ) |
Definition at line 78 of file NBPTStop.cpp.
References myLaneId.
| void NBPTStop::write | ( | OutputDevice & | device | ) |
Definition at line 81 of file NBPTStop.cpp.
References OutputDevice::closeTag(), myFriendlyPos, myFrom, myLaneId, myName, myPTStopId, myTo, OutputDevice::openTag(), SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_NAME, SUMO_ATTR_STARTPOS, SUMO_TAG_BUS_STOP, and OutputDevice::writeAttr().
|
private |
Definition at line 74 of file NBPTStop.h.
Referenced by getEdgeId().
|
private |
Definition at line 82 of file NBPTStop.h.
Referenced by computExtent(), and write().
|
private |
Definition at line 80 of file NBPTStop.h.
Referenced by computExtent(), and write().
|
private |
Definition at line 78 of file NBPTStop.h.
Referenced by setLaneID(), and write().
|
private |
Definition at line 77 of file NBPTStop.h.
|
private |
Definition at line 75 of file NBPTStop.h.
Referenced by getOrigEdgeId().
|
private |
Definition at line 73 of file NBPTStop.h.
Referenced by getPosition(), and reshiftPostion().
|
private |
Definition at line 72 of file NBPTStop.h.
|
private |
Definition at line 76 of file NBPTStop.h.
Referenced by computExtent().
|
private |
Definition at line 81 of file NBPTStop.h.
Referenced by computExtent(), and write().