43 #ifdef CHECK_MEMORY_LEAKS 45 #endif // CHECK_MEMORY_LEAKS 57 into.push_back(device);
126 "' from vehicle destination edge '" + veh.
getEdge()->
getID() +
virtual void erase(MSTransportable *person)
removes a single person
virtual const MSEdge * getEdge() const =0
Returns the edge the vehicle is currently at.
Notification
Definition of a vehicle state.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
const std::string & getID() const
returns the id of the transportable
virtual bool proceed(MSNet *net, SUMOTime time)=0
SUMOTime getCurrentTimeStep() const
Returns the current simulation step.
~MSDevice_Transportable()
Destructor.
bool notifyEnter(SUMOVehicle &veh, MSMoveReminder::Notification reason)
Adds passengers on vehicle insertion.
#define WRITE_WARNING(msg)
const std::string & getID() const
Returns the id.
Representation of a vehicle.
virtual MSContainerControl & getContainerControl()
Returns the container control.
The vehicle arrived at its destination (is deleted)
void addTransportable(MSTransportable *transportable)
Add a passenger.
const MSEdge & getDestination() const
Returns the current destination.
bool myAmContainer
Whether it is a container device.
Abstract in-vehicle device.
The vehicle has departed (was inserted into the network)
static MSDevice_Transportable * buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice * > &into, const bool isContainer)
Build devices for the given vehicle, if needed.
virtual MSPersonControl & getPersonControl()
Returns the person control.
bool notifyMove(SUMOVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed)
Checks whether the vehicle is at a stop and transportable action is needed.
virtual bool isStopped() const =0
Returns whether the vehicle is at a stop.
MSDevice_Transportable(SUMOVehicle &holder, const std::string &id, const bool isContainer)
Constructor.
bool myStopped
Whether the vehicle is at a stop.
std::vector< MSTransportable * > myTransportables
The passengers of the vehicle.
virtual void erase(MSTransportable *container)
removes a single container
virtual const std::string & getID() const =0
Get the vehicle's ID.
bool notifyLeave(SUMOVehicle &veh, SUMOReal lastPos, MSMoveReminder::Notification reason)
Passengers leaving on arrival.