21 #ifndef MSDevice_Container_h 22 #define MSDevice_Container_h
Notification
Definition of a vehicle state.
MSDevice_Container(SUMOVehicle &holder, const std::string &id)
Constructor.
void addContainer(MSTransportable *container)
Add a container.
static MSDevice_Container * buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice * > &into)
Build devices for the given vehicle, if needed.
bool notifyMove(SUMOVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed)
Checks whether the vehicle is at a stop and container action is needed.
Representation of a vehicle.
bool notifyLeave(SUMOVehicle &veh, SUMOReal lastPos, MSMoveReminder::Notification reason)
Containers leaving on arrival.
~MSDevice_Container()
Destructor.
unsigned int size() const
Return the number of containers.
const std::vector< MSTransportable * > & getContainers() const
Returns the list of containers using this vehicle.
std::vector< MSTransportable * > myContainers
The containers of the vehicle.
Abstract in-vehicle device.
MSDevice_Container & operator=(const MSDevice_Container &)
Invalidated assignment operator.
bool myStopped
Whether the vehicle is at a stop.
bool notifyEnter(SUMOVehicle &veh, MSMoveReminder::Notification reason)
Adds containers on vehicle insertion.
Representation of a lane in the micro simulation.