SUMO - Simulation of Urban MObility
|
GUI-version of the person control for building gui persons. More...
#include <GUIPersonControl.h>
Public Types | |
typedef std::vector< MSPerson * > | PersonVector |
Public Member Functions | |
void | abortWaiting () |
aborts the plan for any person that is still waiting for a ride More... | |
bool | add (const std::string &id, MSPerson *person) |
adds a single person, returns false if an id clash occured More... | |
void | addWaiting (const MSEdge *edge, MSPerson *person) |
adds a person to the list of persons waiting for a vehicle on the specified edge More... | |
bool | boardAnyWaiting (MSEdge *edge, MSVehicle *vehicle) |
board any applicable persons Boards any people who wait on that edge for the given vehicle and removes them from myWaiting More... | |
virtual MSPerson * | buildPerson (const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSPerson::MSPersonPlan *plan) const |
Builds a new person. More... | |
void | checkWaitingPersons (MSNet *net, const SUMOTime time) |
checks whether any persons waiting or walking time is over More... | |
virtual void | erase (MSPerson *person) |
removes a single person More... | |
GUIPersonControl () | |
constructor More... | |
bool | hasNonWaiting () const |
checks whether any person is still engaged in walking / stopping More... | |
bool | hasPersons () const |
checks whether any person waits to finish her plan More... | |
bool | isWaiting4Vehicle (const MSEdge *const edge, MSPerson *p) const |
returns whether the the given person is waiting for a vehicle on the given edge More... | |
void | setDeparture (SUMOTime time, MSPerson *person) |
sets the arrival time for a waiting or walking person More... | |
void | setWaitEnd (SUMOTime time, MSPerson *person) |
sets the arrival time for a waiting or walking person More... | |
void | setWalking (MSPerson *p) |
void | unsetWalking (MSPerson *p) |
virtual | ~GUIPersonControl () |
destructor More... | |
GUI-version of the person control for building gui persons.
Definition at line 43 of file GUIPersonControl.h.
|
inherited |
Definition at line 61 of file MSPersonControl.h.
GUIPersonControl::GUIPersonControl | ( | ) |
constructor
Definition at line 45 of file GUIPersonControl.cpp.
|
virtual |
destructor
Definition at line 48 of file GUIPersonControl.cpp.
|
inherited |
aborts the plan for any person that is still waiting for a ride
Definition at line 214 of file MSPersonControl.cpp.
References MSPersonControl::erase(), MSPerson::getID(), MSPersonControl::myWaiting4Vehicle, MSEdge::removePerson(), and WRITE_WARNING.
Referenced by MSNet::simulationState().
adds a single person, returns false if an id clash occured
Definition at line 65 of file MSPersonControl.cpp.
References MSPersonControl::myPersons.
adds a person to the list of persons waiting for a vehicle on the specified edge
Definition at line 147 of file MSPersonControl.cpp.
References MSPersonControl::myWaiting4Vehicle.
Referenced by MSPerson::MSPersonStage_Driving::proceed().
board any applicable persons Boards any people who wait on that edge for the given vehicle and removes them from myWaiting
[in] | the | edge on which the boarding should take place |
[in] | the | vehicle which is taking on passengers |
Definition at line 162 of file MSPersonControl.cpp.
References MSVehicle::addPerson(), MSBaseVehicle::getParameter(), SUMOVehicleParameter::id, SUMOVehicleParameter::line, MSPersonControl::myWaiting4Vehicle, and MSEdge::removePerson().
Referenced by MSVehicle::processNextStop().
|
virtual |
Builds a new person.
[in] | pars | The parameter |
[in] | vtype | The type (reusing vehicle type container here) |
[in] | plan | This person's plan |
Reimplemented from MSPersonControl.
Definition at line 53 of file GUIPersonControl.cpp.
checks whether any persons waiting or walking time is over
Definition at line 122 of file MSPersonControl.cpp.
References MSPersonControl::erase(), MSPersonControl::myWaiting4Departure, and MSPersonControl::myWaitingUntil.
Referenced by MSNet::simulationStep().
|
virtualinherited |
removes a single person
Definition at line 75 of file MSPersonControl.cpp.
References OutputDevice::closeTag(), MSNet::getCurrentTimeStep(), MSPerson::getDesiredDepart(), OutputDevice::getDeviceByOption(), MSPerson::getID(), MSNet::getInstance(), OptionsCont::getOptions(), MSPersonControl::myPersons, OutputDevice::openTag(), time2string(), and MSPerson::tripInfoOutput().
Referenced by MSPersonControl::abortWaiting(), MSPersonControl::checkWaitingPersons(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSDevice_Person::notifyLeave(), MSDevice_Person::notifyMove(), and MSPerson::MSPersonStage_Walking::proceed().
|
inherited |
checks whether any person is still engaged in walking / stopping
Definition at line 193 of file MSPersonControl.cpp.
References MSPersonControl::myWaiting4Departure, MSPersonControl::myWaitingUntil, and MSPersonControl::myWalking.
Referenced by MSNet::simulationState().
|
inherited |
checks whether any person waits to finish her plan
Definition at line 187 of file MSPersonControl.cpp.
References MSPersonControl::myPersons.
returns whether the the given person is waiting for a vehicle on the given edge
Definition at line 156 of file MSPersonControl.cpp.
References MSPersonControl::myWaiting4Vehicle.
sets the arrival time for a waiting or walking person
Definition at line 102 of file MSPersonControl.cpp.
References DELTA_T, and MSPersonControl::myWaiting4Departure.
Referenced by MSRouteHandler::closePerson().
sets the arrival time for a waiting or walking person
Definition at line 112 of file MSPersonControl.cpp.
References DELTA_T, and MSPersonControl::myWaitingUntil.
Referenced by MSPerson::MSPersonStage_Waiting::proceed().
|
inherited |
Definition at line 199 of file MSPersonControl.cpp.
References MSPerson::getID(), and MSPersonControl::myWalking.
Referenced by MSPerson::MSPersonStage_Walking::proceed().
|
inherited |
Definition at line 205 of file MSPersonControl.cpp.
References MSPerson::getID(), and MSPersonControl::myWalking.
Referenced by MSPerson::MSPersonStage_Walking::moveToNextEdge().