|
SUMO - Simulation of Urban MObility
|
#include <MSContainer.h>
Public Member Functions | |
| virtual void | beginEventOutput (const MSTransportable &container, SUMOTime t, OutputDevice &os) const |
| Called for writing the events output. More... | |
| virtual void | endEventOutput (const MSTransportable &container, SUMOTime t, OutputDevice &os) const |
| Called for writing the events output (end of an action) More... | |
| SUMOReal | getAngle (SUMOTime now) const |
| the angle of the edge minus 90deg More... | |
| MSStoppingPlace * | getDepartContainerStop () 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 |
| get angle of the edge at a certain position More... | |
| 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 |
| Returns the current edge. More... | |
| 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 |
| returns the position of the transportable More... | |
| SUMOReal | getSpeed () const |
| Returns the speed of the container which is always zero in that stage. More... | |
| std::string | getStageDescription () const |
| Returns the current stage description as a string. More... | |
| StageType | getStageType () const |
| SUMOTime | getUntil () const |
| Returns time until the container waits. More... | |
| SUMOTime | getWaitingTime (SUMOTime now) const |
| the time this transportable spent waiting More... | |
| virtual bool | isWaiting4Vehicle () const |
| Whether the transportable waits for a vehicle. More... | |
| virtual bool | isWaitingFor (const std::string &line) const |
| Whether the transportable waits for a vehicle of the line specified. More... | |
| MSContainerStage_Waiting (const MSEdge &destination, SUMOTime duration, SUMOTime until, SUMOReal pos, const std::string &actType) | |
| constructor More... | |
| virtual void | proceed (MSNet *net, MSTransportable *container, 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... | |
| virtual void | tripInfoOutput (OutputDevice &os) const |
| Called on writing tripinfo output. More... | |
| ~MSContainerStage_Waiting () | |
| 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 by getting transported More... | |
| StageType | myType |
| The type of this stage. More... | |
Private Member Functions | |
| MSContainerStage_Waiting (const MSContainerStage_Waiting &) | |
| Invalidated copy constructor. More... | |
| MSContainerStage_Waiting & | operator= (const MSContainerStage_Waiting &) |
| Invalidated assignment operator. More... | |
Private Attributes | |
| std::string | myActType |
| The type of activity. More... | |
| MSStoppingPlace * | myCurrentContainerStop |
| the container stop at which the container is waiting More... | |
| SUMOReal | myStartPos |
| SUMOTime | myWaitingDuration |
| the time the container is waiting More... | |
| SUMOTime | myWaitingStart |
| the time the container started waiting More... | |
| SUMOTime | myWaitingUntil |
| the time until the container is waiting More... | |
A "real" stage performing a waiting over the specified time A container is in this stage if it is not on a ride or waiting for a ride, e.g. if it is stored, or if gets filled or emptied.
Definition at line 190 of file MSContainer.h.
| MSContainer::MSContainerStage_Waiting::MSContainerStage_Waiting | ( | const MSEdge & | destination, |
| SUMOTime | duration, | ||
| SUMOTime | until, | ||
| SUMOReal | pos, | ||
| const std::string & | actType | ||
| ) |
constructor
Definition at line 192 of file MSContainer.cpp.
References Named::getID(), MSEdge::getLength(), SUMOVehicleParameter::interpretEdgePos(), MSTransportable::Stage::myDestination, myStartPos, and SUMO_ATTR_DEPARTPOS.
| MSContainer::MSContainerStage_Waiting::~MSContainerStage_Waiting | ( | ) |
destructor
Definition at line 203 of file MSContainer.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 MSTransportable::Stage.
Definition at line 277 of file MSContainer.cpp.
References MSTransportable::getEdge(), Named::getID(), MSTransportable::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 MSTransportable::Stage.
Definition at line 283 of file MSContainer.cpp.
References MSTransportable::getEdge(), Named::getID(), MSTransportable::getID(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
the angle of the edge minus 90deg
Implements MSTransportable::Stage.
Definition at line 231 of file MSContainer.cpp.
| MSStoppingPlace * MSContainer::MSContainerStage_Waiting::getDepartContainerStop | ( | ) | const |
Definition at line 246 of file MSContainer.cpp.
|
inherited |
returns the destination edge
Definition at line 54 of file MSTransportable.cpp.
|
virtual |
Returns the current edge.
Implements MSTransportable::Stage.
Definition at line 206 of file MSContainer.cpp.
get angle of the edge at a certain position
Definition at line 86 of file MSTransportable.cpp.
References MSEdge::getLanes(), and PositionVector::rotationDegreeAtOffset().
Referenced by MSPModel_NonInteracting::PState::getAngle(), and CState::getAngle().
Implements MSTransportable::Stage.
Definition at line 216 of file MSContainer.cpp.
|
inherited |
get position on edge e at length at with orthogonal offset
Definition at line 76 of file MSTransportable.cpp.
References MSEdge::getLanes().
|
virtual |
Returns the current edge.
Implements MSTransportable::Stage.
Definition at line 211 of file MSContainer.cpp.
|
inherited |
get position on lane at length at with orthogonal offset
Definition at line 81 of file MSTransportable.cpp.
References MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::positionAtOffset().
Referenced by CState::computeTranshipTime(), MSPModel_NonInteracting::PState::getPosition(), and MSPModel_Striping::PState::getPosition().
returns the position of the transportable
Implements MSTransportable::Stage.
Definition at line 226 of file MSContainer.cpp.
References MSContainer::ROADSIDE_OFFSET.
|
virtual |
Returns the speed of the container which is always zero in that stage.
Implements MSTransportable::Stage.
Definition at line 241 of file MSContainer.cpp.
|
inlinevirtual |
Returns the current stage description as a string.
Implements MSTransportable::Stage.
Definition at line 221 of file MSContainer.h.
References myActType.
|
inlineinherited |
Definition at line 88 of file MSTransportable.h.
References MSTransportable::Stage::myType.
| SUMOTime MSContainer::MSContainerStage_Waiting::getUntil | ( | ) | const |
Returns time until the container waits.
Definition at line 221 of file MSContainer.cpp.
Referenced by MSContainer::routeOutput().
the time this transportable spent waiting
Implements MSTransportable::Stage.
Definition at line 236 of file MSContainer.cpp.
|
inlinevirtualinherited |
Whether the transportable waits for a vehicle.
Reimplemented in MSPerson::MSPersonStage_Driving, and MSContainer::MSContainerStage_Driving.
Definition at line 108 of file MSTransportable.h.
|
virtualinherited |
Whether the transportable waits for a vehicle of the line specified.
Reimplemented in MSPerson::MSPersonStage_Driving, and MSContainer::MSContainerStage_Driving.
Definition at line 71 of file MSTransportable.cpp.
|
private |
Invalidated assignment operator.
|
virtual |
proceeds to the next step
Implements MSTransportable::Stage.
Definition at line 251 of file MSContainer.cpp.
References MSEdge::addContainer(), MSNet::getContainerControl(), MAX3(), and MSContainerControl::setWaitEnd().
|
virtual |
Called on writing vehroute output.
| [in] | os | The stream to write the information into |
| IOError | not yet implemented |
Implements MSTransportable::Stage.
Definition at line 265 of file MSContainer.cpp.
References OutputDevice::closeTag(), MSTransportable::getDestination(), MSTransportable::getID(), OutputDevice::openTag(), SUMO_ATTR_DURATION, SUMO_ATTR_LANE, SUMO_ATTR_UNTIL, time2string(), and OutputDevice::writeAttr().
|
inherited |
logs end of the step
Definition at line 66 of file MSTransportable.cpp.
|
inherited |
logs end of the step
Definition at line 59 of file MSTransportable.cpp.
|
virtual |
Called on writing tripinfo output.
| [in] | os | The stream to write the information into |
| IOError | not yet implemented |
Implements MSTransportable::Stage.
Definition at line 260 of file MSContainer.cpp.
References OutputDevice::closeTag(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
private |
The type of activity.
Definition at line 272 of file MSContainer.h.
Referenced by getStageDescription().
|
protectedinherited |
the time at which this stage ended
Definition at line 159 of file MSTransportable.h.
|
private |
the container stop at which the container is waiting
Definition at line 277 of file MSContainer.h.
|
protectedinherited |
the time at which this stage started
Definition at line 156 of file MSTransportable.h.
|
protectedinherited |
the next edge to reach by getting transported
Definition at line 153 of file MSTransportable.h.
Referenced by MSContainerStage_Waiting(), and MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting().
|
private |
Definition at line 274 of file MSContainer.h.
Referenced by MSContainerStage_Waiting().
|
protectedinherited |
The type of this stage.
Definition at line 162 of file MSTransportable.h.
Referenced by MSTransportable::Stage::getStageType().
|
private |
the time the container is waiting
Definition at line 263 of file MSContainer.h.
|
private |
the time the container started waiting
Definition at line 269 of file MSContainer.h.
|
private |
the time until the container is waiting
Definition at line 266 of file MSContainer.h.