![]() |
SUMO - Simulation of Urban MObility
|
#include <NBPTStopCont.h>

Public Member Functions | |
| std::map< std::string, NBPTStop * >::const_iterator | begin () const |
| Returns the pointer to the begin of the stored pt stops. More... | |
| std::map< std::string, NBPTStop * >::const_iterator | end () const |
| Returns the pointer to the end of the stored pt stops. More... | |
| NBPTStop * | get (std::string id) |
| Retrieve a previously inserted pt stop. More... | |
| bool | insert (NBPTStop *ptStop) |
| Inserts a node into the map. More... | |
| void | process (NBEdgeCont &cont) |
| void | reviseStops (NBEdgeCont &cont) |
| revise pt stops and remove stops on non existing (removed) edges More... | |
| int | size () const |
| Returns the number of pt stops stored in this container. More... | |
| ~NBPTStopCont () | |
Static Public Member Functions | |
| static bool | findLaneAndComputeBusStopExtend (NBPTStop *pStop, NBEdgeCont &cont) |
| static NBEdge * | getReverseEdge (NBEdge *edge) |
Private Types | |
| typedef std::map< std::string, NBPTStop * > | PTStopsCont |
| Definition of the map of names to pt stops. More... | |
Private Member Functions | |
| NBPTStop * | assignAndCreatNewPTStopAsNeeded (NBPTStop *pStop, NBEdgeCont &cont) |
| void | assignPTStopToEdgeOfClosestPlatform (NBPTStop *pStop, NBEdgeCont &cont) |
| double | computeCrossProductEdgePosition (const NBEdge *edge, const Position *closestPlatform) const |
| NBPTPlatform * | getClosestPlatformToPTStopPosition (NBPTStop *pStop) |
| NBPTStop * | getReverseStop (NBPTStop *pStop, NBEdgeCont &cont) |
Private Attributes | |
| PTStopsCont | myPTStops |
| The map of names to pt stops. More... | |
Definition at line 31 of file NBPTStopCont.h.
|
private |
Definition of the map of names to pt stops.
Definition at line 75 of file NBPTStopCont.h.
| NBPTStopCont::~NBPTStopCont | ( | ) |
Definition at line 31 of file NBPTStopCont.cpp.
References myPTStops.
|
private |
Definition at line 126 of file NBPTStopCont.cpp.
References computeCrossProductEdgePosition(), NBEdgeCont::getByID(), NBPTStop::getEdgeId(), Named::getID(), NBPTPlatform::getMyLength(), NBPTPlatform::getMyPos(), NBPTStop::getPlatformCands(), getReverseEdge(), getReverseStop(), NBPTStop::setEdgeId(), and NBPTStop::setMyPTStopLength().
Referenced by process().
|
private |
Definition at line 166 of file NBPTStopCont.cpp.
References computeCrossProductEdgePosition(), NBEdgeCont::getByID(), getClosestPlatformToPTStopPosition(), NBPTStop::getEdgeId(), Named::getID(), NBPTPlatform::getMyLength(), NBPTPlatform::getMyPos(), getReverseEdge(), NBPTStop::setEdgeId(), and NBPTStop::setMyPTStopLength().
Referenced by process().
|
inline |
Returns the pointer to the begin of the stored pt stops.
Definition at line 54 of file NBPTStopCont.h.
References myPTStops.
Referenced by NBNetBuilder::moveToOrigin(), and NWWriter_XML::writePTStops().
|
private |
Definition at line 188 of file NBPTStopCont.cpp.
References NBEdge::getGeometry(), PositionVector::indexOfClosest(), PositionVector::nearest_offset_to_point2D(), PositionVector::offsetAtIndex2D(), WRITE_WARNING, Position::x(), and Position::y().
Referenced by assignAndCreatNewPTStopAsNeeded(), and assignPTStopToEdgeOfClosestPlatform().
|
inline |
Returns the pointer to the end of the stored pt stops.
Definition at line 62 of file NBPTStopCont.h.
References myPTStops, process(), and reviseStops().
Referenced by NBNetBuilder::moveToOrigin(), and NWWriter_XML::writePTStops().
|
static |
Definition at line 239 of file NBPTStopCont.cpp.
References NBPTStop::computExtent(), NBEdgeCont::getByID(), NBPTStop::getEdgeId(), NBEdge::getLaneID(), NBEdge::getLanes(), NBEdge::getLaneShape(), NBEdge::getLength(), NBPTStop::getPermissions(), NBPTStop::getPosition(), PositionVector::nearest_offset_to_point2D(), and NBPTStop::setLaneID().
Referenced by process(), and NBPTLineCont::reviseStops().
| NBPTStop * NBPTStopCont::get | ( | std::string | id | ) |
Retrieve a previously inserted pt stop.
Definition at line 48 of file NBPTStopCont.cpp.
References myPTStops.
Referenced by NIImporter_OpenStreetMap::insertEdge(), and NIImporter_OpenStreetMap::RelationHandler::myEndElement().
|
private |
Definition at line 217 of file NBPTStopCont.cpp.
References Position::distanceSquaredTo2D(), NBPTPlatform::getMyPos(), NBPTStop::getPlatformCands(), NBPTStop::getPosition(), and max.
Referenced by assignPTStopToEdgeOfClosestPlatform().
Definition at line 270 of file NBPTStopCont.cpp.
References NBEdge::getFromNode(), NBNode::getOutgoingEdges(), and NBEdge::getToNode().
Referenced by assignAndCreatNewPTStopAsNeeded(), assignPTStopToEdgeOfClosestPlatform(), getReverseStop(), and NBPTLineCont::reviseStops().
|
private |
Definition at line 111 of file NBPTStopCont.cpp.
References NBEdgeCont::getByID(), NBPTStop::getEdgeId(), NBPTStop::getID(), Named::getID(), NBPTStop::getLength(), NBPTStop::getName(), NBPTStop::getPermissions(), NBPTStop::getPosition(), and getReverseEdge().
Referenced by assignAndCreatNewPTStopAsNeeded(), and process().
| bool NBPTStopCont::insert | ( | NBPTStop * | ptStop | ) |
Inserts a node into the map.
| [in] | stop | The pt stop to insert |
Definition at line 38 of file NBPTStopCont.cpp.
References NBPTStop::getID(), and myPTStops.
Referenced by NIImporter_OpenStreetMap::insertEdge(), and process().
| void NBPTStopCont::process | ( | NBEdgeCont & | cont | ) |
Definition at line 56 of file NBPTStopCont.cpp.
References assignAndCreatNewPTStopAsNeeded(), assignPTStopToEdgeOfClosestPlatform(), findLaneAndComputeBusStopExtend(), NBEdgeCont::getGeneratedFrom(), NBPTStop::getIsMultipleStopPositions(), NBPTStop::getPlatformCands(), getReverseStop(), insert(), myPTStops, and WRITE_WARNING.
Referenced by NBNetBuilder::compute(), and end().
| void NBPTStopCont::reviseStops | ( | NBEdgeCont & | cont | ) |
revise pt stops and remove stops on non existing (removed) edges
| cont |
Definition at line 282 of file NBPTStopCont.cpp.
References NBEdgeCont::getByID(), myPTStops, and WRITE_WARNING.
Referenced by end(), and NIImporter_OpenStreetMap::load().
|
inline |
Returns the number of pt stops stored in this container.
Definition at line 47 of file NBPTStopCont.h.
References myPTStops.
|
private |
The map of names to pt stops.
Definition at line 78 of file NBPTStopCont.h.
Referenced by begin(), end(), get(), insert(), process(), reviseStops(), size(), and ~NBPTStopCont().