SUMO - Simulation of Urban MObility
|
#include <MSPerson.h>
Public Member Functions | |
virtual void | beginEventOutput (const MSPerson &p, SUMOTime t, OutputDevice &os) const |
Called for writing the events output. More... | |
virtual void | endEventOutput (const MSPerson &p, SUMOTime t, OutputDevice &os) const |
Called for writing the events output (end of an action) More... | |
SUMOReal | getAngle (SUMOTime now) const |
const MSEdge & | getDestination () const |
returns the destination edge More... | |
const MSEdge * | getEdge () const |
Returns the current edge. More... | |
SUMOReal | getEdgeAngle (const MSEdge *e, SUMOReal at) const |
SUMOReal | getEdgePos (SUMOTime now) const |
Position | getEdgePosition (const MSEdge *e, SUMOReal at, SUMOReal offset) const |
get position on edge e at length at with orthogonal offset More... | |
const MSEdge * | getFromEdge () const |
Position | getLanePosition (const MSLane *lane, SUMOReal at, SUMOReal offset) const |
get position on lane at length at with orthogonal offset More... | |
Position | getPosition (SUMOTime now) const |
SUMOReal | getSpeed () const |
the time this person spent waiting More... | |
std::string | getStageDescription () const |
return string representation of the current stage More... | |
StageType | getStageType () const |
SUMOTime | getWaitingTime (SUMOTime now) const |
time spent waiting for a ride More... | |
bool | isWaiting4Vehicle () const |
Whether the person waits for a vehicle. More... | |
bool | isWaitingFor (const std::string &line) const |
Whether the person waits for a vehicle of the line specified. More... | |
MSPersonStage_Driving (const MSEdge &destination, MSBusStop *toBS, const std::vector< std::string > &lines) | |
constructor More... | |
virtual void | proceed (MSNet *net, MSPerson *person, SUMOTime now, MSEdge *previousEdge, const SUMOReal at) |
proceeds to the next step More... | |
virtual void | routeOutput (OutputDevice &os) const |
Called on writing vehroute output. More... | |
void | setArrived (SUMOTime now) |
logs end of the step More... | |
void | setDeparted (SUMOTime now) |
logs end of the step More... | |
void | setVehicle (SUMOVehicle *v) |
virtual void | tripInfoOutput (OutputDevice &os) const |
Called on writing tripinfo output. More... | |
~MSPersonStage_Driving () | |
destructor More... | |
Protected Attributes | |
SUMOTime | myArrived |
the time at which this stage ended More... | |
SUMOTime | myDeparted |
the time at which this stage started More... | |
const MSEdge & | myDestination |
the next edge to reach (either by walking or driving) More... | |
StageType | myType |
The type of this stage. More... | |
Private Member Functions | |
MSPersonStage_Driving (const MSPersonStage_Driving &) | |
Invalidated copy constructor. More... | |
MSPersonStage_Driving & | operator= (const MSPersonStage_Driving &) |
Invalidated assignment operator. More... | |
Private Attributes | |
MSBusStop * | myDestinationBusStop |
const std::set< std::string > | myLines |
the lines to choose from More... | |
SUMOVehicle * | myVehicle |
The taken vehicle. More... | |
const MSEdge * | myWaitingEdge |
SUMOReal | myWaitingPos |
SUMOTime | myWaitingSince |
The time since which this person is waiting for a ride. More... | |
A "real" stage performing the travelling by a transport system The given route will be chosen. The travel time is computed by the simulation
Definition at line 340 of file MSPerson.h.
MSPerson::MSPersonStage_Driving::MSPersonStage_Driving | ( | const MSEdge & | destination, |
MSBusStop * | toBS, | ||
const std::vector< std::string > & | lines | ||
) |
constructor
Definition at line 286 of file MSPerson.cpp.
MSPerson::MSPersonStage_Driving::~MSPersonStage_Driving | ( | ) |
destructor
Definition at line 292 of file MSPerson.cpp.
|
private |
Invalidated copy constructor.
|
virtual |
Called for writing the events output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implements MSPerson::MSPersonStage.
Definition at line 410 of file MSPerson.cpp.
References MSPerson::getEdge(), Named::getID(), MSPerson::getID(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
virtual |
Called for writing the events output (end of an action)
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implements MSPerson::MSPersonStage.
Definition at line 416 of file MSPerson.cpp.
References MSPerson::getEdge(), Named::getID(), MSPerson::getID(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
Implements MSPerson::MSPersonStage.
Definition at line 331 of file MSPerson.cpp.
References MSVehicle::getAngle().
|
inherited |
returns the destination edge
Definition at line 70 of file MSPerson.cpp.
|
virtual |
Returns the current edge.
Implements MSPerson::MSPersonStage.
Definition at line 296 of file MSPerson.cpp.
Definition at line 108 of file MSPerson.cpp.
References MSEdge::getLanes(), and PositionVector::rotationDegreeAtOffset().
Referenced by MSPModel_NonInteracting::PState::getAngle().
Implements MSPerson::MSPersonStage.
Definition at line 311 of file MSPerson.cpp.
References MSPerson::getEdge(), MSEdge::getLength(), and MIN2().
|
inherited |
get position on edge e at length at with orthogonal offset
Definition at line 96 of file MSPerson.cpp.
References MSEdge::getLanes().
|
virtual |
Implements MSPerson::MSPersonStage.
Definition at line 305 of file MSPerson.cpp.
|
inherited |
get position on lane at length at with orthogonal offset
Definition at line 102 of file MSPerson.cpp.
References MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::positionAtOffset().
Referenced by MSPModel_NonInteracting::PState::getPosition(), and MSPModel_Striping::PState::getPosition().
Implements MSPerson::MSPersonStage.
Definition at line 321 of file MSPerson.cpp.
References MSPModel::SIDEWALK_OFFSET.
|
virtual |
the time this person spent waiting
Implements MSPerson::MSPersonStage.
Definition at line 385 of file MSPerson.cpp.
|
virtual |
return string representation of the current stage
Implements MSPerson::MSPersonStage.
Definition at line 391 of file MSPerson.cpp.
References MSPerson::isWaiting4Vehicle(), and joinToString().
|
inlineinherited |
Definition at line 103 of file MSPerson.h.
References MSPerson::MSPersonStage::myType.
time spent waiting for a ride
Implements MSPerson::MSPersonStage.
Definition at line 379 of file MSPerson.cpp.
References MSPerson::isWaiting4Vehicle().
|
virtual |
Whether the person waits for a vehicle.
Reimplemented from MSPerson::MSPersonStage.
Definition at line 373 of file MSPerson.cpp.
|
virtual |
Whether the person waits for a vehicle of the line specified.
Reimplemented from MSPerson::MSPersonStage.
Definition at line 367 of file MSPerson.cpp.
|
private |
Invalidated assignment operator.
|
virtual |
proceeds to the next step
Implements MSPerson::MSPersonStage.
Definition at line 346 of file MSPerson.cpp.
References MSInsertionControl::add(), MSEdge::addPerson(), MSPersonControl::addWaiting(), DEPART_TRIGGERED, SUMOVehicleParameter::departProcedure, MSPerson::getID(), MSNet::getInsertionControl(), SUMOVehicle::getParameter(), MSNet::getPersonControl(), MSNet::getVehicleControl(), MSVehicleControl::getWaitingVehicle(), MSEdge::removePerson(), MSVehicleControl::removeWaiting(), and MSVehicleControl::unregisterOneWaitingForPerson().
|
virtual |
Called on writing vehroute output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implements MSPerson::MSPersonStage.
Definition at line 403 of file MSPerson.cpp.
References OutputDevice::closeTag(), MSPerson::getDestination(), MSPerson::getFromEdge(), MSPerson::getID(), OutputDevice::openTag(), SUMO_ATTR_FROM, SUMO_ATTR_LINES, SUMO_ATTR_TO, and OutputDevice::writeAttr().
|
inherited |
logs end of the step
Definition at line 84 of file MSPerson.cpp.
|
inherited |
logs end of the step
Definition at line 76 of file MSPerson.cpp.
|
inline |
Definition at line 375 of file MSPerson.h.
References myVehicle.
|
virtual |
Called on writing tripinfo output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implements MSPerson::MSPersonStage.
Definition at line 397 of file MSPerson.cpp.
References OutputDevice::closeTag(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
protectedinherited |
the time at which this stage ended
Definition at line 174 of file MSPerson.h.
|
protectedinherited |
the time at which this stage started
Definition at line 171 of file MSPerson.h.
|
protectedinherited |
the next edge to reach (either by walking or driving)
Definition at line 168 of file MSPerson.h.
Referenced by MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting().
|
private |
Definition at line 412 of file MSPerson.h.
|
private |
the lines to choose from
Definition at line 407 of file MSPerson.h.
|
protectedinherited |
The type of this stage.
Definition at line 177 of file MSPerson.h.
Referenced by MSPerson::MSPersonStage::getStageType().
|
private |
|
private |
Definition at line 416 of file MSPerson.h.
|
private |
Definition at line 413 of file MSPerson.h.
|
private |
The time since which this person is waiting for a ride.
Definition at line 415 of file MSPerson.h.