 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef MSParkingArea_h
17 #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,
207 virtual void addLotEntry(
double x,
double y,
double z,
208 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.
SUMOTime updateOccupancy(SUMOTime currentTime)
Called at the end of the time step.
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
int getLastStepOccupancy() const
Returns the area occupancy at the end of the last simulation step.
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.
int myLastStepOccupancy
Changes to the occupancy in the current time step.
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.
int getLastFreeLotAngle() const
Return the angle of myLastFreeLot - the next parking lot only expected to be called after we have est...
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.
int myManoeuverAngle
The angle between lane and lot through which a vehicle must manoeuver to enter the lot.
Base (microsim) event class.
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.
Command * myUpdateEvent
Event for updating the occupancy.
bool myEgressBlocked
whether a vehicle wants to exit but is blocked
double myWidth
The default width of each parking space.