21 #ifndef MSStoppingPlace_h 22 #define MSStoppingPlace_h 77 const std::vector<std::string>& lines,
MSLane& lane,
78 double begPos,
double endPos,
const std::string name =
"");
std::map< const SUMOVehicle *, std::pair< double, double > > myEndPositions
A map from objects (vehicles) to the areas they acquire after entering the stop.
MSStoppingPlace(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, double begPos, double endPos, const std::string name="")
Constructor.
std::vector< MSTransportable * > myWaitingTransportables
Persons waiting at this stop.
A lane area vehicles can halt at.
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 getEndLanePosition() const
Returns the end position of this stop.
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
A road/street connecting two junctions.
const MSLane & myLane
The lane this bus stop is located at.
const MSLane & getLane() const
Returns the lane this stop is located at.
double getLastFreePos(const SUMOVehicle &forVehicle) const
Returns the last free position on 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.
bool hasAccess(const MSEdge *edge) const
checks whether this stop provides access to the given edge
void removeTransportable(MSTransportable *p)
Removes a transportable from this stop.
Position getWaitPosition() const
Returns the next free waiting place for pedestrians / containers.
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.
const std::string & getMyName() const
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.
int getTransportableNumber() const
Returns the number of transportables waiting on this stop.
double getBeginLanePosition() const
Returns the begin position of this stop.
void computeLastFreePos()
Computes the last free position on this stop.
double myWaitingPos
The next free position for persons / containers.
std::vector< std::string > myLines
The list of lines that are assigned to this stop.
Representation of a lane in the micro simulation.