21 #ifndef MSContainerStop_h
22 #define MSContainerStop_h
77 const std::vector<std::string>& lines,
MSLane& lane,
const MSLane & getLane() const
Returns the lane this container stop is located at.
A lane area vehicles can halt at and load and unload containers.
MSContainerStop(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, SUMOReal begPos, SUMOReal endPos)
Constructor.
void leaveFrom(SUMOVehicle *what)
Called if a vehicle leaves this stop.
SUMOReal getEndLanePosition() const
Returns the end position of this container stop.
virtual ~MSContainerStop()
Destructor.
SUMOReal myBegPos
The begin position this stop is located at.
SUMOReal getBeginLanePosition() const
Returns the begin position of this container stop.
SUMOReal myEndPos
The end position this stop is located at.
SUMOReal getLastFreePos(const SUMOVehicle &forVehicle) const
Returns the last free position on this stop.
std::map< SUMOVehicle *, std::pair< SUMOReal, SUMOReal > > myEndPositions
A map from objects (vehicles) to the areas they acquire after entering the stop.
void computeLastFreePos()
Computes the last free position on this stop.
void addContainer(MSContainer *container)
Adds a container to this stop.
std::vector< MSContainer * > myWaitingContainers
Containers waiting at this stop.
MSLane & myLane
The lane this stop is located at.
unsigned int getContainerNumber() const
Returns the number of containers waiting on this stop.
Representation of a vehicle.
MSContainerStop & operator=(const MSContainerStop &)
Invalidated assignment operator.
Base class for objects which have an id.
void removeContainer(MSContainer *container)
Removes a container from this stop.
void enter(SUMOVehicle *what, SUMOReal beg, SUMOReal end)
Called if a vehicle enters this stop.
std::vector< std::string > myLines
The list of lines that are assigned to this stop.
SUMOReal myLastFreePos
The last free position at this stop (variable)
Representation of a lane in the micro simulation.