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 (SUMOTime now) 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 | getPosition (SUMOTime now) const |
StageType | getStageType () const |
std::string | getStageTypeName () const |
return string representation of the current stage 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... | |
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 |
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 294 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 392 of file MSPerson.cpp.
References MSPerson::getEdge(), Named::getID(), MSPerson::getID(), OutputDevice::openTag(), and time2string().
|
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 403 of file MSPerson.cpp.
References MSPerson::getEdge(), Named::getID(), MSPerson::getID(), OutputDevice::openTag(), and time2string().
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.
Returns the current edge.
Implements MSPerson::MSPersonStage.
Definition at line 296 of file MSPerson.cpp.
Definition at line 106 of file MSPerson.cpp.
References MSEdge::getLanes(), and PositionVector::rotationDegreeAtLengthPosition().
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(), MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), PositionVector::move2side(), and PositionVector::positionAtLengthPosition().
|
virtual |
Implements MSPerson::MSPersonStage.
Definition at line 305 of file MSPerson.cpp.
Implements MSPerson::MSPersonStage.
Definition at line 321 of file MSPerson.cpp.
References MSPerson::SIDEWALK_OFFSET.
|
inlineinherited |
Definition at line 100 of file MSPerson.h.
References MSPerson::MSPersonStage::myType.
|
virtual |
return string representation of the current stage
Implements MSPerson::MSPersonStage.
Definition at line 377 of file MSPerson.cpp.
References MSPerson::isWaiting4Vehicle(), and joinToString().
|
virtual |
Whether the person waits for a vehicle.
Reimplemented from MSPerson::MSPersonStage.
Definition at line 371 of file MSPerson.cpp.
|
virtual |
Whether the person waits for a vehicle of the line specified.
Reimplemented from MSPerson::MSPersonStage.
Definition at line 365 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, MSNet::getInsertionControl(), MSNet::getPersonControl(), MSNet::getVehicleControl(), MSVehicleControl::getWaitingVehicle(), MSEdge::removePerson(), MSVehicleControl::removeWaiting(), and MSVehicleControl::unregisterOneWaitingForPerson().
|
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 324 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 383 of file MSPerson.cpp.
References OutputDevice::openTag(), and time2string().
|
protectedinherited |
the time at which this stage ended
Definition at line 156 of file MSPerson.h.
|
protectedinherited |
the time at which this stage started
Definition at line 153 of file MSPerson.h.
|
protectedinherited |
the next edge to reach (either by walking or driving)
Definition at line 150 of file MSPerson.h.
Referenced by MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting().
|
private |
Definition at line 354 of file MSPerson.h.
|
private |
the lines to choose from
Definition at line 349 of file MSPerson.h.
|
protectedinherited |
The type of this stage.
Definition at line 159 of file MSPerson.h.
Referenced by MSPerson::MSPersonStage::getStageType().
|
private |
|
private |
Definition at line 357 of file MSPerson.h.
|
private |
Definition at line 356 of file MSPerson.h.