21 #ifndef MSStoppingPlace_h
22 #define MSStoppingPlace_h
76 const std::vector<std::string>& lines,
MSLane& lane,
unsigned int getTransportableNumber() const
Returns the number of transportables waiting on this stop.
std::vector< MSTransportable * > myWaitingTransportables
Persons waiting at this stop.
A lane area vehicles can halt at.
SUMOReal getEndLanePosition() const
Returns the end position of this stop.
void addTransportable(MSTransportable *p)
adds a transportable to this stop
virtual ~MSStoppingPlace()
Destructor.
const MSLane & getLane() const
Returns the lane this stop is located at.
MSStoppingPlace & operator=(const MSStoppingPlace &)
Invalidated assignment operator.
Representation of a vehicle.
SUMOReal myEndPos
The end position this bus stop is located at.
SUMOReal getLastFreePos(const SUMOVehicle &forVehicle) const
Returns the last free position on this stop.
SUMOReal myBegPos
The begin position this bus stop is located at.
MSLane & myLane
The lane this bus stop is located at.
MSStoppingPlace(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, SUMOReal begPos, SUMOReal endPos)
Constructor.
void removeTransportable(MSTransportable *p)
Removes a transportable from this stop.
Base class for objects which have an id.
void enter(SUMOVehicle *what, SUMOReal beg, SUMOReal end)
Called if a vehicle enters this stop.
void leaveFrom(SUMOVehicle *what)
Called if a vehicle leaves this stop.
SUMOReal myLastFreePos
The last free position at this stop (variable)
SUMOReal getBeginLanePosition() const
Returns the begin position of this stop.
void computeLastFreePos()
Computes the last free position on this stop.
std::vector< std::string > myLines
The list of lines that are assigned to this stop.
Representation of a lane in the micro simulation.
std::map< SUMOVehicle *, std::pair< SUMOReal, SUMOReal > > myEndPositions
A map from objects (vehicles) to the areas they acquire after entering the stop.