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)
NBEdge * getByID(const std::string &edgeID) const
Returns the edge with id if it exists.
bool myIsMultipleStopPositions
std::vector< std::tuple< std::string, double > > myAccesses
void add(const Position &pos)
Adds the given position to this one.
const std::string getEdgeId()
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.
const std::vector< NBEdge::Lane > & getLanes() const
Returns the lane definitions.
std::vector< NBPTPlatform > myPlatformCands
std::string getID() const
void setMyPTStopId(std::string id)
void registerAdditionalEdge(std::string wayId, std::string edgeId)
const std::map< std::string, std::string > & getMyAdditionalEdgeCandidates() const
NBPTStop(std::string ptStopId, Position position, std::string edgeId, std::string origEdgeId, double length, std::string name, SVCPermissions svcPermissions)
Constructor.
SVCPermissions getPermissions()
void addAccess(std::string laneID, double offset)
std::string getLaneID(int lane) const
get Lane ID (Secure)
A point in 2D or 3D with translation and scaling methods.
void computExtent(double center, double d)
Storage for edges, including some functionality operating on multiple edges.
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)
double length() const
Returns the length.
const PositionVector & getLaneShape(int i) const
Returns the shape of the nth lane.
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.
void setMyOrigEdgeId(const std::string &myOrigEdgeId)
double nearest_offset_to_point2D(const Position &p, bool perpendicular=true) const
return the nearest offest to point 2D
An access point for a train stop.
void addPlatformCand(NBPTPlatform platform)
void setMyPTStopLength(double myPTStopLength)
const std::string getOrigEdgeId()
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
const SVCPermissions myPermissions