38 #ifdef CHECK_MEMORY_LEAKS
40 #endif // CHECK_MEMORY_LEAKS
47 const std::vector<std::string>& lines,
50 :
Named(id), myLines(lines), myLane(lane),
51 myBegPos(begPos), myEndPos(endPos), myLastFreePos(endPos) {
104 std::map<SUMOVehicle*, std::pair<SUMOReal, SUMOReal> >::iterator i;
const MSLane & getLane() const
Returns the lane this container stop is located at.
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.
MSLane & myLane
The lane this stop is located at.
Representation of a vehicle.
SUMOReal getMinGap() const
Get the free space in front of vehicles of this class.
Base class for objects which have an id.
void enter(SUMOVehicle *what, SUMOReal beg, SUMOReal end)
Called if a vehicle enters this stop.
SUMOReal myLastFreePos
The last free position at this stop (variable)
Representation of a lane in the micro simulation.
virtual const MSVehicleType & getVehicleType() const =0
Returns the vehicle's type.