 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef MSParkingArea_h
18 #define MSParkingArea_h
76 const std::vector<std::string>& lines,
MSLane& lane,
77 double begPos,
double endPos,
int capacity,
78 double width,
double length,
double angle,
const std::string& name,
183 virtual void addLotEntry(
double x,
double y,
double z,
184 double width,
double length,
double angle);
void setNumAlternatives(int alternatives)
double myRotation
The rotation.
A lane area vehicles can halt at.
A lane area vehicles can halt at.
void enter(SUMOVehicle *what, double beg, double end)
Called if a vehicle enters this stop.
Representation of a lane in the micro simulation.
int myLastFreeLot
Last free lot number (-1 no free lot)
double myReservationMaxLength
void notifyEgressBlocked()
update state so that vehicles wishing to enter cooperate with exiting vehicles
MSParkingArea & operator=(const MSParkingArea &)
Invalidated assignment operator.
int getNumAlternatives() const
Representation of a vehicle.
Position myPosition
The position of the vehicle when parking in this space.
int index
the running index
double getInsertionPosition(const SUMOVehicle &forVehicle) const
Returns the insertion position of a parked vehicle.
Position getVehiclePosition(const SUMOVehicle &forVehicle) const
Returns the position of parked vehicle.
double getVehicleAngle(const SUMOVehicle &forVehicle) const
Returns the angle of parked vehicle.
double myAngle
The default angle of each parking space.
double myLength
The length.
SUMOTime myReservationTime
track parking reservations from the lane for the current time step
PositionVector myShape
The roadside shape of this parkingArea.
int getCapacity() const
Returns the area capacity.
double myEndPos
The position along the lane that the vehicle needs to reach for entering this lot.
std::vector< LotSpaceDefinition > mySpaceOccupancies
All the spaces in this parking area.
A point in 2D or 3D with translation and scaling methods.
MSParkingArea(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, double begPos, double endPos, int capacity, double width, double length, double angle, const std::string &name, bool onRoad)
Constructor.
bool parkOnRoad() const
whether vehicles park on the road
double myLength
The default length of each parking space.
virtual void addLotEntry(double x, double y, double z, double width, double length, double angle)
Add a lot entry to parking area.
Representation of a single lot space.
double getLength() const
Returns the lot rectangle length.
int myCapacity
Stop area capacity.
void leaveFrom(SUMOVehicle *what)
Called if a vehicle leaves this stop.
void computeLastFreePos()
Computes the last free position on this stop.
bool myOnRoad
Whether vehicles stay on the road.
int getOccupancy() const
Returns the area occupancy.
double getWidth() const
Returns the lot rectangle width.
double getLastFreePosWithReservation(SUMOTime t, const SUMOVehicle &forVehicle)
Returns the last free position on this stop including reservatiosn from the current lane and time ste...
int getOccupancyIncludingBlocked() const
Returns the area occupancy.
virtual ~MSParkingArea()
Destructor.
double getLastFreePos() const
int myNumAlternatives
the number of alternative parkingAreas that are assigned to parkingAreaRerouter
SUMOVehicle * vehicle
The last parked vehicle or 0.
double getAngle() const
Returns the lot rectangle angle.
bool myEgressBlocked
whether a vehicle wants to exit but is blocked
double myWidth
The default width of each parking space.