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