20 #ifndef MSStoppingPlace_h 21 #define MSStoppingPlace_h 77 const std::vector<std::string>& lines,
MSLane& lane,
78 double begPos,
double endPos,
const std::string name =
"");
Position getWaitPosition() const
Returns the next free waiting place for pedestrians / containers.
std::map< const SUMOVehicle *, std::pair< double, double > > myEndPositions
A map from objects (vehicles) to the areas they acquire after entering the stop.
double getAccessPos(const MSEdge *edge) const
the position on the given edge which is connected to this stop, -1 on failure
MSStoppingPlace(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, double begPos, double endPos, const std::string name="")
Constructor.
double getBeginLanePosition() const
Returns the begin position of this stop.
std::vector< MSTransportable * > myWaitingTransportables
Persons waiting at this stop.
double getWaitingPositionOnLane() const
Returns the lane position corresponding to getWaitPosition()
A lane area vehicles can halt at.
bool hasAccess(const MSEdge *edge) const
checks whether this stop provides access to the given edge
const double myEndPos
The end position this bus stop is located at.
virtual void addAccess(MSLane *lane, const double pos)
adds an access point to this stop
void enter(SUMOVehicle *what, double beg, double end)
Called if a vehicle enters this stop.
double getLastFreePos(const SUMOVehicle &forVehicle) const
Returns the last free position on this stop.
int getTransportableNumber() const
Returns the number of transportables waiting on this stop.
const std::string & getMyName() const
void addTransportable(MSTransportable *p)
adds a transportable to this stop
virtual ~MSStoppingPlace()
Destructor.
std::multimap< MSLane *, double > myAccessPos
lanes and positions connected to this stop
const std::multimap< MSLane *, double > & getAllAccessPos() const
lanes and positions connected to this stop
A road/street connecting two junctions.
const MSLane & myLane
The lane this bus stop is located at.
double getEndLanePosition() const
Returns the end position of this stop.
MSStoppingPlace & operator=(const MSStoppingPlace &)
Invalidated assignment operator.
Representation of a vehicle.
double myLastFreePos
The last free position at this stop (variable)
A point in 2D or 3D with translation and scaling methods.
void removeTransportable(MSTransportable *p)
Removes a transportable from this stop.
Base class for objects which have an id.
void leaveFrom(SUMOVehicle *what)
Called if a vehicle leaves this stop.
const std::string myName
The name of the stopping place.
const double myBegPos
The begin position this bus stop is located at.
void computeLastFreePos()
Computes the last free position on this stop.
double myWaitingPos
The next free position for persons / containers.
const MSLane & getLane() const
Returns the lane this stop is located at.
std::vector< std::string > myLines
The list of lines that are assigned to this stop.
double getStoppingPosition(const SUMOVehicle *veh) const
For vehicles at the stop this gives the the actual stopping position of the vehicle. For all others the last free stopping position.
Representation of a lane in the micro simulation.