23 #ifndef MSVehicleTransfer_h 24 #define MSVehicleTransfer_h 155 : myVeh(veh), myProceedTime(proceedTime), myParking(parking) { }
Representation of a vehicle in the micro simulation.
static MSVehicleTransfer * myInstance
The static singleton-instance.
MSVehicleTransfer()
Constructor.
VehicleInfVector myVehicles
The information about stored vehicles to move virtually.
virtual ~MSVehicleTransfer()
Destructor.
std::map< const MSLane *, std::set< const MSVehicle * > > ParkingVehicles
The map from lanes to parking vehicles.
const std::set< const MSVehicle * > & getParkingVehicles(const MSLane *lane) const
return parking vehicles on the given lane
A road/street connecting two junctions.
void saveState(OutputDevice &out) const
Saves the current state into the given stream.
void checkInsertions(SUMOTime time)
Checks "movement" of stored vehicles.
Encapsulated SAX-Attributes.
bool hasPending() const
Checks whether stored vehicles are present.
void add(const SUMOTime t, MSVehicle *veh)
Adds a vehicle to this transfer object.
static const std::set< const MSVehicle * > myEmptyVehicleSet
an empty set for convenience
void loadState(const SUMOSAXAttributes &attrs, const SUMOTime offset, MSVehicleControl &vc)
Loads one transfer vehicle state from the given descriptionn.
ParkingVehicles myParkingVehicles
static MSVehicleTransfer * getInstance()
Returns the instance of this object.
std::vector< VehicleInformation > VehicleInfVector
Definition of a container for vehicle information.
Static storage of an output device and its base (abstract) implementation.
The class responsible for building and deletion of vehicles.
Representation of a lane in the micro simulation.
static const double TeleportMinSpeed
The minimum speed while teleporting.