46 myOrigEdgeId(origEdgeId),
47 myPTStopLength(length),
49 myPermissions(svcPermissions),
50 myIsMultipleStopPositions(false) {
107 Position* pos = (&myPlatformCand)->getMyPos();
108 pos->
add(offsetX, offsetY, 0);
157 if (edge !=
nullptr) {
159 for (
const auto& it : edge->
getLanes()) {
180 myAccesses.push_back(std::make_tuple(laneID, offset));
bool setEdgeId(std::string edgeId, NBEdgeCont &ec)
const std::string getName()
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
void write(OutputDevice &device)
bool myIsMultipleStopPositions
std::vector< std::tuple< std::string, double > > myAccesses
void add(const Position &pos)
Adds the given position to this one.
double nearest_offset_to_point2D(const Position &p, bool perpendicular=true) const
return the nearest offest to point 2D
const std::string getEdgeId()
const std::vector< NBEdge::Lane > & getLanes() const
Returns the lane definitions.
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
The representation of a single edge during network building.
std::vector< NBPTPlatform > myPlatformCands
void setMyPTStopId(std::string id)
void registerAdditionalEdge(std::string wayId, std::string edgeId)
NBEdge * getByID(const std::string &edgeID) const
Returns the edge with id if it exists.
NBPTStop(std::string ptStopId, Position position, std::string edgeId, std::string origEdgeId, double length, std::string name, SVCPermissions svcPermissions)
Constructor.
SVCPermissions getPermissions()
std::string getID() const
void addAccess(std::string laneID, double offset)
A point in 2D or 3D with translation and scaling methods.
void computExtent(double center, double d)
double length() const
Returns the length.
Storage for edges, including some functionality operating on multiple edges.
const std::map< std::string, std::string > & getMyAdditionalEdgeCandidates() const
static std::string escapeXML(const std::string &orig, const bool maskDoubleHyphen=false)
Replaces the standard escapes by their XML entities.
void setIsMultipleStopPositions(bool multipleStopPositions)
void reshiftPostion(const double offsetX, const double offsetY)
bool getIsMultipleStopPositions()
bool findLaneAndComputeBusStopExtend(NBEdgeCont &ec)
std::vector< NBPTPlatform > & getPlatformCands()
std::map< std::string, std::string > myAdditionalEdgeCandidates
Static storage of an output device and its base (abstract) implementation.
const Position & getPosition()
bool closeTag()
Closes the most recently opened tag.
std::string getLaneID(int lane) const
get Lane ID (Secure)
void setMyOrigEdgeId(const std::string &myOrigEdgeId)
An access point for a train stop.
void addPlatformCand(NBPTPlatform platform)
void setMyPTStopLength(double myPTStopLength)
const std::string getOrigEdgeId()
const PositionVector & getLaneShape(int i) const
Returns the shape of the nth lane.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
const SVCPermissions myPermissions