|
SUMO - Simulation of Urban MObility
|
#include <MSPerson.h>
Data Structures | |
| class | MSPersonStage |
| class | MSPersonStage_Driving |
| class | MSPersonStage_Waiting |
| class | MSPersonStage_Walking |
Public Types | |
| typedef std::vector < MSPersonStage * > | MSPersonPlan |
| the structure holding the plan of a person | |
Public Member Functions | |
| SUMOTime | getDesiredDepart () const |
| Returns the desired departure time. | |
| const MSEdge & | getDestination () const |
| Returns the current destination. | |
| const std::string & | getID () const |
| returns the person id | |
| bool | isWaitingFor (const std::string &line) const |
| Whether the person waits for a vehicle of the line specified. | |
| MSPerson (const SUMOVehicleParameter *pars, MSPersonPlan *plan) | |
| constructor | |
| void | proceed (MSNet *net, SUMOTime time) |
| proceeds to the next step of the route | |
| void | setDeparted (SUMOTime now) |
| logs end of the step | |
| void | tripInfoOutput (OutputDevice &os) const |
| Called on writing tripinfo output. | |
| ~MSPerson () | |
| destructor | |
Private Member Functions | |
| MSPerson (const MSPerson &) | |
| Invalidated copy constructor. | |
| MSPerson & | operator= (const MSPerson &) |
| Invalidated assignment operator. | |
Private Attributes | |
| const SUMOVehicleParameter * | myParameter |
| the plan of the person | |
| MSPersonPlan * | myPlan |
| the plan of the person | |
| MSPersonPlan::iterator | myStep |
| the iterator over the route | |
The class holds a simulated person together with her movement stages
Definition at line 60 of file MSPerson.h.
| typedef std::vector<MSPersonStage*> MSPerson::MSPersonPlan |
the structure holding the plan of a person
Definition at line 230 of file MSPerson.h.
| MSPerson::MSPerson | ( | const SUMOVehicleParameter * | pars, |
| MSPersonPlan * | plan | ||
| ) |
| MSPerson::~MSPerson | ( | ) |
|
private |
Invalidated copy constructor.
| SUMOTime MSPerson::getDesiredDepart | ( | ) | const |
Returns the desired departure time.
Definition at line 231 of file MSPerson.cpp.
References SUMOVehicleParameter::depart, and myParameter.
Referenced by MSPersonControl::erase().
| const MSEdge & MSPerson::getDestination | ( | ) | const |
Returns the current destination.
Definition at line 243 of file MSPerson.cpp.
| const std::string & MSPerson::getID | ( | ) | const |
returns the person id
Definition at line 212 of file MSPerson.cpp.
References SUMOVehicleParameter::id, and myParameter.
Referenced by MSPersonControl::erase().
| bool MSPerson::isWaitingFor | ( | const std::string & | line | ) | const |
Whether the person waits for a vehicle of the line specified.
Definition at line 257 of file MSPerson.cpp.
proceeds to the next step of the route
Definition at line 218 of file MSPerson.cpp.
References MSPersonControl::erase(), MSNet::getPersonControl(), myPlan, and myStep.
| void MSPerson::setDeparted | ( | SUMOTime | now | ) |
logs end of the step
Definition at line 237 of file MSPerson.cpp.
| void MSPerson::tripInfoOutput | ( | OutputDevice & | os | ) | const |
Called on writing tripinfo output.
| [in] | os | The stream to write the information into |
| IOError | not yet implemented |
Definition at line 249 of file MSPerson.cpp.
References myPlan.
Referenced by MSPersonControl::erase().
|
private |
the plan of the person
Definition at line 234 of file MSPerson.h.
Referenced by getDesiredDepart(), getID(), and ~MSPerson().
|
private |
the plan of the person
Definition at line 237 of file MSPerson.h.
Referenced by MSPerson(), proceed(), tripInfoOutput(), and ~MSPerson().
|
private |
the iterator over the route
Definition at line 240 of file MSPerson.h.
Referenced by MSPerson(), and proceed().