|
SUMO - Simulation of Urban MObility
|
#include <MSTransportable.h>


Data Structures | |
| class | Stage |
Public Types | |
| typedef std::vector< MSTransportable::Stage * > | MSTransportablePlan |
| the structure holding the plan of a transportable More... | |
| enum | StageType { DRIVING = 0, WAITING = 1, MOVING_WITHOUT_VEHICLE = 2 } |
Public Member Functions | |
| virtual SUMOReal | getAngle () const |
| return the current angle of the transportable More... | |
| MSTransportable::Stage * | getCurrentStage () const |
| Return the current stage. More... | |
| std::string | getCurrentStageDescription () const |
| Returns the current stage description as a string. More... | |
| StageType | getCurrentStageType () const |
| the current stage type of the transportable More... | |
| SUMOTime | getDesiredDepart () const |
| Returns the desired departure time. More... | |
| const MSEdge & | getDestination () const |
| Returns the current destination. More... | |
| const MSEdge * | getEdge () const |
| Returns the current edge. More... | |
| virtual SUMOReal | getEdgePos () const |
| Return the position on the edge. More... | |
| const MSEdge * | getFromEdge () const |
| Returns the departure edge. More... | |
| const std::string & | getID () const |
| returns the id of the transportable More... | |
| const MSEdge & | getNextDestination () const |
| Returns the destination after the current destination. More... | |
| const SUMOVehicleParameter & | getParameter () const |
| virtual Position | getPosition () const |
| Return the Network coordinate of the transportable. More... | |
| virtual SUMOReal | getSpeed () const |
| the current speed of the transportable More... | |
| SUMOVehicle * | getVehicle () const |
| The vehicle associated with this transportable. More... | |
| const MSVehicleType & | getVehicleType () const |
| virtual SUMOReal | getWaitingSeconds () const |
| the time this transportable spent waiting in seconds More... | |
| bool | isWaiting4Vehicle () const |
| Whether the transportable waits for a vehicle. More... | |
| bool | isWaitingFor (const std::string &line) const |
| Whether the transportable waits for a vehicle of the line specified. More... | |
| MSTransportable (const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSTransportablePlan *plan) | |
| constructor More... | |
| virtual bool | proceed (MSNet *net, SUMOTime time)=0 |
| virtual void | routeOutput (OutputDevice &os) const =0 |
| Called on writing vehroute output. More... | |
| void | setDeparted (SUMOTime now) |
| logs depart time of the current stage More... | |
| void | tripInfoOutput (OutputDevice &os) const |
| Called on writing tripinfo output. More... | |
| virtual | ~MSTransportable () |
| destructor More... | |
Protected Attributes | |
| const SUMOVehicleParameter * | myParameter |
| the plan of the transportable More... | |
| MSTransportablePlan * | myPlan |
| the plan of the transportable More... | |
| MSTransportablePlan::iterator | myStep |
| the iterator over the route More... | |
| const MSVehicleType * | myVType |
| This transportable's type. (mainly used for drawing related information Note sure if it is really necessary. More... | |
| bool | myWriteEvents |
| Whether events shall be written. More... | |
Private Member Functions | |
| MSTransportable (const MSTransportable &) | |
| Invalidated copy constructor. More... | |
| MSTransportable & | operator= (const MSTransportable &) |
| Invalidated assignment operator. More... | |
The class holds a simulated moveable object
Definition at line 55 of file MSTransportable.h.
| typedef std::vector<MSTransportable::Stage*> MSTransportable::MSTransportablePlan |
the structure holding the plan of a transportable
Definition at line 196 of file MSTransportable.h.
| Enumerator | |
|---|---|
| DRIVING | |
| WAITING | |
| MOVING_WITHOUT_VEHICLE | |
Definition at line 57 of file MSTransportable.h.
| MSTransportable::MSTransportable | ( | const SUMOVehicleParameter * | pars, |
| const MSVehicleType * | vtype, | ||
| MSTransportablePlan * | plan | ||
| ) |
|
virtual |
|
private |
Invalidated copy constructor.
|
virtual |
return the current angle of the transportable
Reimplemented in GUIContainer.
Definition at line 134 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
Referenced by GUIPerson::drawAction_drawAsImage(), GUIPerson::drawAction_drawAsPoly(), GUIPerson::drawAction_drawAsTriangle(), GUIContainer::getAngle(), GUIPerson::getNaviDegree(), TraCIServerAPI_Person::processGet(), GUIPerson::setFunctionalColor(), and MSFCDExport::write().
|
inline |
Return the current stage.
Definition at line 271 of file MSTransportable.h.
References myStep.
Referenced by GUIPerson::drawAction_drawWalkingareaPath(), GUIPerson::drawGLAdditional(), and MSEdge::transportable_by_position_sorter::operator()().
|
inline |
Returns the current stage description as a string.
Definition at line 266 of file MSTransportable.h.
Referenced by GUIContainer::getParameterWindow(), and GUIPerson::getParameterWindow().
|
inline |
the current stage type of the transportable
Definition at line 261 of file MSTransportable.h.
Referenced by MSPModel_Striping::add(), GUIPerson::drawGLAdditional(), GUIContainer::getCenteringBoundary(), GUIPerson::getCenteringBoundary(), GUIContainer::getColorValue(), GUIPerson::getColorValue(), MSPerson::getNextEdge(), GUIContainer::getPosition(), and GUIPerson::getPosition().
| SUMOTime MSTransportable::getDesiredDepart | ( | ) | const |
Returns the desired departure time.
Definition at line 114 of file MSTransportable.cpp.
References SUMOVehicleParameter::depart, and myParameter.
Referenced by MSContainerControl::erase(), MSPersonControl::erase(), MSPerson::routeOutput(), and MSContainer::routeOutput().
|
inline |
Returns the current destination.
Definition at line 226 of file MSTransportable.h.
Referenced by GUIContainer::getParameterWindow(), GUIPerson::getParameterWindow(), MSDevice_Container::notifyLeave(), MSDevice_Person::notifyLeave(), MSDevice_Container::notifyMove(), MSDevice_Person::notifyMove(), MSContainer::MSContainerStage_Driving::routeOutput(), MSContainer::MSContainerStage_Waiting::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), and MSPerson::MSPersonStage_Waiting::routeOutput().
|
inline |
Returns the current edge.
Definition at line 236 of file MSTransportable.h.
Referenced by MSPModel_Striping::add(), MSContainer::MSContainerStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), MSContainer::MSContainerStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Waiting::endEventOutput(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSContainer::MSContainerStage_Driving::getEdgePos(), MSPerson::MSPersonStage_Driving::getEdgePos(), GUIContainer::getParameterWindow(), GUIPerson::getParameterWindow(), GUIContainer::getPosition(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSContainer::MSContainerStage_Tranship::moveToNextEdge(), and TraCIServerAPI_Person::processGet().
|
virtual |
Return the position on the edge.
Reimplemented in GUIPerson, and GUIContainer.
Definition at line 124 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
Referenced by GUIContainer::getEdgePos(), GUIPerson::getEdgePos(), TraCIServerAPI_Person::processGet(), and MSFCDExport::write().
|
inline |
Returns the departure edge.
Definition at line 241 of file MSTransportable.h.
Referenced by GUIContainer::getParameterWindow(), GUIPerson::getParameterWindow(), MSContainer::MSContainerStage_Driving::routeOutput(), and MSPerson::MSPersonStage_Driving::routeOutput().
| const std::string & MSTransportable::getID | ( | ) | const |
returns the id of the transportable
Definition at line 109 of file MSTransportable.cpp.
References SUMOVehicleParameter::id, and myParameter.
Referenced by MSContainerControl::abortWaiting(), MSPersonControl::abortWaiting(), MSVehicle::addContainer(), MSVehicle::addPerson(), MSPerson::MSPersonStage_Walking::beginEventOutput(), MSContainer::MSContainerStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Tranship::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Walking::endEventOutput(), MSContainer::MSContainerStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Waiting::endEventOutput(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Tranship::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSContainerControl::erase(), MSPersonControl::erase(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), GUIContainer::getParameterWindow(), GUIPerson::getParameterWindow(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSDevice_Container::notifyLeave(), MSDevice_Person::notifyLeave(), MSPModel_Striping::by_xpos_sorter::operator()(), MSEdge::transportable_by_position_sorter::operator()(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), MSPModel_Striping::PState::PState(), MSContainer::MSContainerStage_Driving::routeOutput(), MSContainer::MSContainerStage_Waiting::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), MSPerson::MSPersonStage_Waiting::routeOutput(), MSContainerControl::setTranship(), MSPersonControl::setWalking(), MSContainerControl::unsetTranship(), MSPersonControl::unsetWalking(), and MSFCDExport::write().
|
inline |
Returns the destination after the current destination.
Definition at line 231 of file MSTransportable.h.
References myStep.
|
inline |
Definition at line 211 of file MSTransportable.h.
References myParameter.
Referenced by GUIPerson::getParameterWindow(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Person::processSet(), GUIContainer::setFunctionalColor(), and GUIPerson::setFunctionalColor().
|
virtual |
Return the Network coordinate of the transportable.
Reimplemented in GUIPerson, and GUIContainer.
Definition at line 129 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
Referenced by TraCIServerAPI_Person::getPosition(), GUIContainer::getPosition(), GUIPerson::getPosition(), TraCIServerAPI_Person::processGet(), and MSFCDExport::write().
|
virtual |
the current speed of the transportable
Reimplemented in GUIPerson, and GUIContainer.
Definition at line 144 of file MSTransportable.cpp.
Referenced by GUIContainer::getSpeed(), GUIPerson::getSpeed(), TraCIServerAPI_Person::processGet(), and MSFCDExport::write().
|
inline |
The vehicle associated with this transportable.
Definition at line 300 of file MSTransportable.h.
Referenced by GUIContainer::getCenteringBoundary(), and GUIPerson::getCenteringBoundary().
|
inline |
Definition at line 215 of file MSTransportable.h.
References myVType.
Referenced by MSStoppingPlace::addTransportable(), GUIContainer::drawAction_drawAsImage(), GUIPerson::drawAction_drawAsImage(), GUIContainer::drawAction_drawAsPoly(), GUIPerson::drawAction_drawAsPoly(), GUIPerson::drawAction_drawAsTriangle(), MSPModel_Striping::getNextLaneObstacles(), TraCIServerAPI_Person::processGet(), MSStoppingPlace::removeTransportable(), GUIContainer::setFunctionalColor(), and GUIPerson::setFunctionalColor().
|
virtual |
the time this transportable spent waiting in seconds
Reimplemented in GUIPerson, and GUIContainer.
Definition at line 139 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), MSNet::getInstance(), and STEPS2TIME.
Referenced by GUIContainer::getWaitingSeconds(), GUIPerson::getWaitingSeconds(), and TraCIServerAPI_Person::processGet().
|
inline |
Whether the transportable waits for a vehicle.
Definition at line 295 of file MSTransportable.h.
Referenced by MSPerson::MSPersonStage_Driving::getAngle(), GUIContainer::getCenteringBoundary(), GUIPerson::getCenteringBoundary(), GUIContainer::getColorValue(), GUIPerson::getColorValue(), MSPerson::MSPersonStage_Driving::getEdgePos(), GUIContainer::getPosition(), GUIPerson::getPosition(), MSPerson::MSPersonStage_Driving::getPosition(), MSPerson::MSPersonStage_Driving::getSpeed(), MSContainer::MSContainerStage_Driving::getStageDescription(), MSPerson::MSPersonStage_Driving::getStageDescription(), MSContainer::MSContainerStage_Driving::getWaitingTime(), and MSPerson::MSPersonStage_Driving::getWaitingTime().
|
inline |
Whether the transportable waits for a vehicle of the line specified.
Definition at line 290 of file MSTransportable.h.
|
private |
Invalidated assignment operator.
|
pure virtual |
Called on writing vehroute output.
| [in] | os | The stream to write the information into |
| IOError | not yet implemented |
Implemented in MSContainer, and MSPerson.
Referenced by MSContainerControl::erase(), and MSPersonControl::erase().
| void MSTransportable::setDeparted | ( | SUMOTime | now | ) |
logs depart time of the current stage
Definition at line 119 of file MSTransportable.cpp.
| void MSTransportable::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 150 of file MSTransportable.cpp.
References myPlan.
Referenced by MSContainerControl::erase(), and MSPersonControl::erase().
|
protected |
the plan of the transportable
Definition at line 306 of file MSTransportable.h.
Referenced by getDesiredDepart(), getID(), getParameter(), and ~MSTransportable().
|
protected |
the plan of the transportable
Definition at line 316 of file MSTransportable.h.
Referenced by MSTransportable(), MSPerson::proceed(), MSContainer::proceed(), MSPerson::routeOutput(), MSContainer::routeOutput(), tripInfoOutput(), and ~MSTransportable().
|
protected |
the iterator over the route
Definition at line 319 of file MSTransportable.h.
Referenced by getCurrentStage(), getNextDestination(), MSTransportable(), MSPerson::proceed(), and MSContainer::proceed().
|
protected |
This transportable's type. (mainly used for drawing related information Note sure if it is really necessary.
Definition at line 310 of file MSTransportable.h.
Referenced by GUIPerson::getParameterWindow(), and getVehicleType().
|
protected |
Whether events shall be written.
Definition at line 313 of file MSTransportable.h.