22 #ifndef MSDevice_Person_h 23 #define MSDevice_Person_h 127 return static_cast<unsigned int>(
myPersons.size());
~MSDevice_Person()
Destructor.
bool myStopped
Whether the vehicle is at a stop.
static MSDevice_Person * buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice * > &into)
Build devices for the given vehicle, if needed.
Notification
Definition of a vehicle state.
MSDevice_Person & operator=(const MSDevice_Person &)
Invalidated assignment operator.
bool notifyMove(SUMOVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed)
Checks whether the vehicle is at a stop and person action is needed.
const std::vector< MSTransportable * > & getPersons() const
Returns the list of persons using this vehicle.
bool notifyEnter(SUMOVehicle &veh, MSMoveReminder::Notification reason)
Adds passengers on vehicle insertion.
Representation of a vehicle.
Abstract in-vehicle device.
MSDevice_Person(SUMOVehicle &holder, const std::string &id)
Constructor.
bool notifyLeave(SUMOVehicle &veh, SUMOReal lastPos, MSMoveReminder::Notification reason)
Passengers leaving on arrival.
void addPerson(MSTransportable *person)
Add a passenger.
Representation of a lane in the micro simulation.
unsigned int size() const
Return the number of passengers.
std::vector< MSTransportable * > myPersons
The passengers of the vehicle.