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

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 |
The representation of a single pt stop.
Definition at line 51 of file NBPTStop.h.
| NBPTStop::NBPTStop | ( | std::string | ptStopId, |
| Position | position, | ||
| std::string | edgeId, | ||
| std::string | origEdgeId, | ||
| double | length, | ||
| std::string | name, | ||
| SVCPermissions | svcPermissions | ||
| ) |
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::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().
| const std::string NBPTStop::getEdgeId | ( | ) |
Definition at line 61 of file NBPTStop.cpp.
References myEdgeId.
Referenced by NBPTStopCont::assignAndCreatNewPTStopAsNeeded(), NBPTStopCont::assignPTStopToEdgeOfClosestPlatform(), NBPTLineCont::constructRoute(), NBPTStopCont::findLaneAndComputeBusStopExtend(), and NBPTStopCont::getReverseStop().
| 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 | ( | ) |
Definition at line 103 of file NBPTStop.cpp.
References myPermissions.
Referenced by NBPTStopCont::findLaneAndComputeBusStopExtend(), and NBPTStopCont::getReverseStop().
| std::vector< NBPTPlatform > & NBPTStop::getPlatformCands | ( | ) |
Definition at line 109 of file NBPTStop.cpp.
References myPlatformCands.
Referenced by NBPTStopCont::assignAndCreatNewPTStopAsNeeded(), NBPTStopCont::getClosestPlatformToPTStopPosition(), and NBPTStopCont::process().
| const Position & NBPTStop::getPosition | ( | ) |
Definition at line 69 of file NBPTStop.cpp.
References myPosition.
Referenced by NBPTStopCont::findLaneAndComputeBusStopExtend(), NBPTStopCont::getClosestPlatformToPTStopPosition(), and NBPTStopCont::getReverseStop().
| 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 | ) |
Definition at line 122 of file NBPTStop.cpp.
References myEdgeId.
Referenced by NBPTStopCont::assignAndCreatNewPTStopAsNeeded(), and NBPTStopCont::assignPTStopToEdgeOfClosestPlatform().
| void NBPTStop::setIsMultipleStopPositions | ( | bool | multipleStopPositions | ) |
Definition at line 116 of file NBPTStop.cpp.
References myIsMultipleStopPositions.
Referenced by NIImporter_OpenStreetMap::RelationHandler::myEndElement().
| 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 | ) |
Definition at line 134 of file NBPTStop.cpp.
References myPTStopLength.
Referenced by NBPTStopCont::assignAndCreatNewPTStopAsNeeded(), and NBPTStopCont::assignPTStopToEdgeOfClosestPlatform().
| void NBPTStop::write | ( | OutputDevice & | device | ) |
Definition at line 81 of file NBPTStop.cpp.
References OutputDevice::closeTag(), myEndPos, myLaneId, myName, myPTStopId, myStartPos, 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 84 of file NBPTStop.h.
Referenced by getMyAdditionalEdgeCandidates(), and registerAdditionalEdge().
|
private |
Definition at line 83 of file NBPTStop.h.
Referenced by getEdgeId(), and setEdgeId().
|
private |
Definition at line 101 of file NBPTStop.h.
Referenced by computExtent(), and write().
|
private |
Definition at line 110 of file NBPTStop.h.
Referenced by getIsMultipleStopPositions(), and setIsMultipleStopPositions().
|
private |
Definition at line 97 of file NBPTStop.h.
Referenced by setLaneID(), and write().
|
private |
Definition at line 96 of file NBPTStop.h.
|
private |
Definition at line 88 of file NBPTStop.h.
Referenced by getOrigEdgeId(), and setMyOrigEdgeId().
|
private |
Definition at line 98 of file NBPTStop.h.
Referenced by getPermissions().
|
private |
Definition at line 109 of file NBPTStop.h.
Referenced by addPlatformCand(), getPlatformCands(), and reshiftPostion().
|
private |
Definition at line 82 of file NBPTStop.h.
Referenced by getPosition(), and reshiftPostion().
|
private |
Definition at line 81 of file NBPTStop.h.
|
private |
Definition at line 92 of file NBPTStop.h.
Referenced by computExtent(), getLength(), and setMyPTStopLength().
|
private |
Definition at line 100 of file NBPTStop.h.
Referenced by computExtent(), and write().