20 #ifndef MSParkingArea_h 21 #define MSParkingArea_h 83 const std::vector<std::string>& lines,
MSLane& lane,
A lane area vehicles can halt at.
int getCapacity() const
Returns the area capacity.
int getOccupancy() const
Returns the area occupancy.
SUMOReal myEndPos
The position along the lane that the vehicle needs to reach for entering this lot.
Position myPosition
The position of the vehicle when parking in this space.
int myLastFreeLot
Last free lot number (0 no free lot)
SUMOReal getSpaceDim() const
Returns the space dimension.
SUMOReal myLength
The length.
A lane area vehicles can halt at.
unsigned int index
the running index
void enter(SUMOVehicle *what, SUMOReal beg, SUMOReal end)
Called if a vehicle enters this stop.
MSParkingArea & operator=(const MSParkingArea &)
Invalidated assignment operator.
MSParkingArea(const std::string &id, const std::vector< std::string > &lines, MSLane &lane, SUMOReal begPos, SUMOReal endPos, unsigned int capacity, SUMOReal width, SUMOReal length, SUMOReal angle)
Constructor.
SUMOReal getVehicleAngle(const SUMOVehicle &forVehicle)
Returns the angle of parked vehicle.
Representation of a vehicle.
A point in 2D or 3D with translation and scaling methods.
PositionVector myShape
The roadside shape of this parkingArea.
SUMOReal myLength
The default length of each parking space.
SUMOReal getAngle() const
Returns the lot rectangle angle.
void computeLastFreePos()
Computes the last free position on this stop.
SUMOReal getLastFreePos(const SUMOVehicle &forVehicle) const
Returns the last free position on this stop.
SUMOReal getLength() const
Returns the lot rectangle length.
SUMOReal myAngle
The default angle of each parking space.
int myCapacity
Stop area capacity.
void leaveFrom(SUMOVehicle *what)
Called if a vehicle leaves this stop.
SUMOReal getWidth() const
Returns the lot rectangle width.
SUMOReal myRotation
The rotation.
virtual ~MSParkingArea()
Destructor.
void addLotEntry(SUMOReal x, SUMOReal y, SUMOReal z, SUMOReal width, SUMOReal length, SUMOReal angle)
Add a lot entry to parking area.
SUMOReal myWidth
The default width of each parking space.
Representation of a single lot space.
Position getVehiclePosition(const SUMOVehicle &forVehicle)
Returns the position of parked vehicle.
SUMOReal myWidth
The width.
std::map< unsigned int, LotSpaceDefinition > mySpaceOccupancies
A map from objects (vehicles) to the areas they acquire after entering the stop.
Representation of a lane in the micro simulation.
SUMOVehicle * vehicle
The last parked vehicle or 0.