 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
38 myOrigEdgeId(origEdgeId),
39 myPTStopLength(length),
41 myPermissions(svcPermissions),
43 myIsLoose(origEdgeId ==
""),
44 myIsMultipleStopPositions(false) {
125 platformCand.reshiftPosition(offsetX, offsetY);
142 const std::vector<NBPTPlatform>&
179 const std::map<std::string, std::string>&
200 if (edge !=
nullptr) {
202 for (
const auto& it : edge->
getLanes()) {
243 myAccesses.push_back(std::make_tuple(laneID, offset, length));
std::vector< std::string > myLines
list of public transport lines (for displaying)
void setIsMultipleStopPositions(bool multipleStopPositions)
void computeExtent(double center, double d)
Storage for edges, including some functionality operating on multiple edges.
Static storage of an output device and its base (abstract) implementation.
SVCPermissions getPermissions() const
const std::map< std::string, std::string > & getMyAdditionalEdgeCandidates() const
void setMyPTStopLength(double myPTStopLength)
void write(OutputDevice &device)
std::map< std::string, std::string > myAdditionalEdgeCandidates
std::string getID() const
const std::vector< NBPTPlatform > & getPlatformCands()
NBEdge * getByID(const std::string &edgeID) const
Returns the edge with id if it exists.
const std::string getOrigEdgeId() const
void clearAccess()
remove all access definitions
void addLine(const std::string &line)
register line that services this stop (for displaying)
const std::string getEdgeId() const
The representation of a single edge during network building.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
void reshiftPosition(const double offsetX, const double offsetY)
double nearest_offset_to_point2D(const Position &p, bool perpendicular=true) const
return the nearest offest to point 2D
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
bool getIsMultipleStopPositions() const
std::string getLaneID(int lane) const
get lane ID
void setMyOrigEdgeId(const std::string &myOrigEdgeId)
static std::string escapeXML(const std::string &orig, const bool maskDoubleHyphen=false)
Replaces the standard escapes by their XML entities.
void setMyPTStopId(std::string id)
A point in 2D or 3D with translation and scaling methods.
void addAccess(std::string laneID, double offset, double length)
const std::vector< NBEdge::Lane > & getLanes() const
Returns the lane definitions.
bool myIsMultipleStopPositions
double getLoadedLength() const
Returns the length was set explicitly or the computed length if it wasn't set.
double getLength() const
Returns the computed length of the edge.
const PositionVector & getLaneShape(int i) const
Returns the shape of the nth lane.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
@ SUMO_TAG_BUS_STOP
A bus stop.
const Position & getPosition() const
void registerAdditionalEdge(std::string wayId, std::string edgeId)
std::vector< NBPTPlatform > myPlatformCands
const std::string getName() const
static std::string getEdgeIDFromLane(const std::string laneID)
return edge id when given the lane ID
bool findLaneAndComputeBusStopExtent(const NBEdgeCont &ec)
void add(const Position &pos)
Adds the given position to this one.
NBPTStop(std::string ptStopId, Position position, std::string edgeId, std::string origEdgeId, double length, std::string name, SVCPermissions svcPermissions)
Constructor.
@ SUMO_TAG_ACCESS
An access point for a train stop.
bool setEdgeId(std::string edgeId, const NBEdgeCont &ec)
const SVCPermissions myPermissions
void addPlatformCand(NBPTPlatform platform)
std::vector< std::tuple< std::string, double, double > > myAccesses
laneId, lanePos, accessLength