![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MSContainer.h>
Data Structures | |
class | MSContainerStage_Driving |
class | MSContainerStage_Tranship |
Public Types | |
typedef std::vector< MSTransportable::Stage * > | MSTransportablePlan |
the structure holding the plan of a transportable More... | |
enum | StageType { WAITING_FOR_DEPART = 0, WAITING = 1, MOVING_WITHOUT_VEHICLE = 2, DRIVING = 3, ACCESS = 4, TRIP = 5 } |
Public Member Functions | |
void | appendStage (Stage *stage, int next=-1) |
Appends the given stage to the current plan. More... | |
virtual double | getAngle () const |
return the current angle of the transportable More... | |
const MSEdge * | getArrivalEdge () const |
returns the final arrival edge More... | |
double | getArrivalPos () const |
returns the final arrival pos More... | |
PositionVector | getBoundingBox () const |
return the bounding box of the person 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... | |
MSTransportableDevice * | getDevice (const std::type_info &type) const |
Returns a device of the given type if it exists or 0. More... | |
const std::vector< MSTransportableDevice * > & | getDevices () const |
Returns this vehicle's devices. More... | |
const MSEdge * | getEdge () const |
Returns the current edge. More... | |
virtual double | getEdgePos () const |
Return the position on the edge. More... | |
ConstMSEdgeVector | getEdges (int next) const |
Return the edges of the nth next stage. 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... | |
MSTransportable::Stage * | getNextStage (int next) const |
Return the current stage. More... | |
int | getNumRemainingStages () const |
Return the number of remaining stages (including the current) More... | |
int | getNumStages () const |
Return the total number stages in this persons plan. More... | |
const SUMOVehicleParameter & | getParameter () const |
virtual Position | getPosition () const |
Return the Network coordinate of the transportable. More... | |
MSVehicleType & | getSingularType () |
Replaces the current vehicle type with a new one used by this vehicle only. More... | |
virtual double | getSpeed () const |
the current speed of the transportable More... | |
virtual double | getSpeedFactor () const |
the current speed factor of the transportable (where applicable) More... | |
std::string | getStageSummary (int stageIndex) const |
return textual summary for the given stage More... | |
StageType | getStageType (int next) const |
the stage type for the nth next stage More... | |
SUMOVehicle * | getVehicle () const |
The vehicle associated with this transportable. More... | |
const MSVehicleType & | getVehicleType () const |
Returns the vehicle's type. More... | |
virtual double | getWaitingSeconds () const |
the time this transportable spent waiting in seconds More... | |
bool | hasArrived () const |
return whether the person has reached the end of its plan More... | |
bool | hasDeparted () const |
return whether the transportable has started it's plan More... | |
bool | isWaiting4Vehicle () const |
Whether the transportable waits for a vehicle. More... | |
bool | isWaitingFor (const SUMOVehicle *vehicle) const |
Whether the transportable waits for the given vehicle in the current step. More... | |
MSContainer (const SUMOVehicleParameter *pars, MSVehicleType *vtype, MSTransportablePlan *plan) | |
constructor More... | |
virtual bool | proceed (MSNet *net, SUMOTime time) |
void | removeStage (int next) |
removes the nth next stage More... | |
void | replaceVehicleType (MSVehicleType *type) |
Replaces the current vehicle type by the one given. More... | |
void | rerouteParkingArea (MSStoppingPlace *orig, MSStoppingPlace *replacement) |
adapt plan when the vehicle reroutes and now stops at replacement instead of orig More... | |
virtual void | routeOutput (OutputDevice &os, const bool withRouteLength) const |
Called on writing vehroute output. More... | |
void | setDeparted (SUMOTime now) |
logs depart time of the current stage More... | |
void | setSpeed (double speed) |
sets the walking speed (ignored in other stages) More... | |
virtual void | tripInfoOutput (OutputDevice &os) const |
Called on writing tripinfo output. More... | |
virtual | ~MSContainer () |
destructor More... | |
inherited from SUMOTrafficObject | |
bool | isVehicle () const |
Get the vehicle's ID. More... | |
bool | isStopped () const |
Returns whether the vehicle is at a stop. More... | |
double | getSlope () const |
Returns the slope of the road at vehicle's position. More... | |
double | getChosenSpeedFactor () const |
SUMOVehicleClass | getVClass () const |
Returns the vehicle's access class. More... | |
double | getMaxSpeed () const |
Returns the vehicle's maximum speed. More... | |
SUMOTime | getWaitingTime () const |
double | getPreviousSpeed () const |
Returns the vehicle's previous speed. More... | |
double | getAcceleration () const |
Returns the vehicle's acceleration. More... | |
double | getPositionOnLane () const |
Get the vehicle's position along the lane. More... | |
double | getBackPositionOnLane (const MSLane *) const |
Get the vehicle's back position along the given lane. More... | |
Position | getPosition (const double) const |
Return current position (x/y, cartesian) More... | |
Protected Attributes | |
std::vector< MSTransportableDevice * > | myDevices |
The devices this transportable has. More... | |
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... | |
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... | |
Static Protected Attributes | |
static const double | ROADSIDE_OFFSET |
the offset for computing positions when standing at an edge More... | |
Private Member Functions | |
MSContainer (const MSContainer &) | |
Invalidated copy constructor. More... | |
MSContainer & | operator= (const MSContainer &) |
Invalidated assignment operator. More... | |
The class holds a simulated container together with its movement stages
Definition at line 61 of file MSContainer.h.
|
inherited |
the structure holding the plan of a transportable
Definition at line 588 of file MSTransportable.h.
|
inherited |
Enumerator | |
---|---|
WAITING_FOR_DEPART | |
WAITING | |
MOVING_WITHOUT_VEHICLE | |
DRIVING | |
ACCESS | |
TRIP |
Definition at line 61 of file MSTransportable.h.
MSContainer::MSContainer | ( | const SUMOVehicleParameter * | pars, |
MSVehicleType * | vtype, | ||
MSTransportablePlan * | plan | ||
) |
constructor
Definition at line 303 of file MSContainer.cpp.
|
virtual |
destructor
Definition at line 308 of file MSContainer.cpp.
|
private |
Invalidated copy constructor.
|
inherited |
Appends the given stage to the current plan.
Definition at line 745 of file MSTransportable.cpp.
References MSTransportable::getID(), MSTransportable::myPlan, MSTransportable::myStep, and toString().
Referenced by libsumo::Person::appendDrivingStage(), libsumo::Person::appendStage(), libsumo::Person::appendWaitingStage(), libsumo::Person::appendWalkingStage(), MSTransportable::getVehicle(), MSTransportable::removeStage(), libsumo::Person::replaceStage(), MSPerson::reroute(), MSTransportable::rerouteParkingArea(), and MSTransportable::Stage_Trip::setArrived().
|
inlinevirtualinherited |
Returns the vehicle's acceleration.
Implements SUMOTrafficObject.
Definition at line 570 of file MSTransportable.h.
|
virtualinherited |
return the current angle of the transportable
Implements SUMOTrafficObject.
Reimplemented in GUIContainer.
Definition at line 719 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
Referenced by GUIPerson::drawGL(), GUIContainer::getAngle(), MSTransportable::getBoundingBox(), GUIPerson::getNaviDegree(), GUIPerson::setFunctionalColor(), MSFCDExport::writeTransportable(), and MSXMLRawOut::writeTransportable().
|
inlineinherited |
returns the final arrival edge
Definition at line 746 of file MSTransportable.h.
References MSTransportable::getBoundingBox(), MSTransportable::getDevice(), MSTransportable::getSingularType(), MSTransportable::hasArrived(), MSTransportable::hasDeparted(), MSTransportable::myPlan, MSTransportable::replaceVehicleType(), and MSTransportable::rerouteParkingArea().
Referenced by libsumo::Person::appendWaitingStage(), and libsumo::Person::convertTraCIStage().
|
inlineinherited |
returns the final arrival pos
Definition at line 741 of file MSTransportable.h.
References MSTransportable::myPlan.
Referenced by libsumo::Person::appendWaitingStage(), libsumo::Person::appendWalkingStage(), libsumo::Person::convertTraCIStage(), GUIContainer::getParameterWindow(), and MSPerson::reroute().
|
inlinevirtualinherited |
Get the vehicle's back position along the given lane.
Implements SUMOTrafficObject.
Definition at line 578 of file MSTransportable.h.
References MSTransportable::Stage::getEdgePos().
|
inherited |
return the bounding box of the person
Definition at line 810 of file MSTransportable.cpp.
References PositionVector::append(), MSTransportable::getAngle(), MSVehicleType::getLength(), MSTransportable::getPosition(), MSTransportable::getVehicleType(), PositionVector::move2side(), POSITION_EPS, and PositionVector::reverse().
Referenced by MSTransportable::getArrivalEdge().
|
inlinevirtualinherited |
Implements SUMOTrafficObject.
Definition at line 556 of file MSTransportable.h.
References MSTransportable::getMaxSpeed(), MSTransportable::getVClass(), and MSTransportable::Stage::getWaitingTime().
|
inlineinherited |
Return the current stage.
Definition at line 678 of file MSTransportable.h.
References MSTransportable::myStep.
Referenced by MSTransportableControl::abortAnyWaitingForVehicle(), GUIPerson::drawAction_drawWalkingareaPath(), GUIPerson::drawGLAdditional(), GUIContainer::getParameterWindow(), GUIPerson::getStageArrivalPos(), libsumo::Person::moveToXY(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), MSEdge::transportable_by_position_sorter::operator()(), and MSPerson::Influencer::postProcessRemoteControl().
|
inlineinherited |
Returns the current stage description as a string.
Definition at line 673 of file MSTransportable.h.
Referenced by GUIPerson::getParameterWindow(), GUIContainer::getParameterWindow(), libsumo::Person::moveTo(), libsumo::Person::moveToXY(), and MSXMLRawOut::writeTransportable().
|
inlineinherited |
the current stage type of the transportable
Definition at line 658 of file MSTransportable.h.
Referenced by MSPModel_Remote::add(), MSPModel_Striping::add(), GUIContainer::drawGL(), GUIPerson::drawGLAdditional(), GUIContainer::getColorValue(), GUIPerson::getColorValue(), GUIPerson::getGUIPosition(), MSPerson::getNextEdgePtr(), GUIContainer::getPosition(), MSTransportable::isStopped(), MSTransportable::rerouteParkingArea(), libsumo::Person::rerouteTraveltime(), and MSTransportable::~MSTransportable().
|
inherited |
Returns the desired departure time.
Definition at line 699 of file MSTransportable.cpp.
References SUMOVehicleParameter::depart, and MSTransportable::myParameter.
Referenced by MSTransportable::getVehicleType(), routeOutput(), tripInfoOutput(), and MSPerson::tripInfoOutput().
|
inlineinherited |
Returns the current destination.
Definition at line 618 of file MSTransportable.h.
Referenced by GUIPerson::getDestinationEdgeID(), GUIContainer::getParameterWindow(), MSDevice_Transportable::notifyLeave(), MSDevice_Transportable::notifyMove(), and MSTransportable::rerouteParkingArea().
|
inherited |
Returns a device of the given type if it exists or 0.
Definition at line 902 of file MSTransportable.cpp.
References MSTransportable::myDevices.
Referenced by MSTransportable::getArrivalEdge(), and MSFCDExport::writeTransportable().
|
inlineinherited |
Returns this vehicle's devices.
Definition at line 789 of file MSTransportable.h.
References MSTransportable::myDevices.
|
inlinevirtualinherited |
Returns the current edge.
Implements SUMOTrafficObject.
Definition at line 628 of file MSTransportable.h.
Referenced by MSTransportableControl::abortWaitingForVehicle(), MSPModel_Striping::add(), GUIPerson::getEdgeID(), GUIContainer::getParameterWindow(), GUIContainer::getPosition(), libsumo::Person::getRoadID(), libsumo::Person::getSlope(), MSTransportable::getSlope(), libsumo::Person::moveToXY(), MSTransportable::removeStage(), and libsumo::Person::rerouteTraveltime().
|
virtualinherited |
Return the position on the edge.
Reimplemented in GUIContainer, and GUIPerson.
Definition at line 709 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
Referenced by GUIPerson::getEdgePos(), GUIContainer::getEdgePos(), libsumo::Person::getLanePosition(), libsumo::Person::getSlope(), MSTransportable::getSlope(), libsumo::Person::moveToXY(), MSTransportable::removeStage(), libsumo::Person::rerouteTraveltime(), MSFCDExport::writeTransportable(), and MSXMLRawOut::writeTransportable().
|
inlineinherited |
Return the edges of the nth next stage.
Definition at line 690 of file MSTransportable.h.
References MSTransportable::Stage::getEdges(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), MSTransportable::myPlan, MSTransportable::myStep, MSTransportable::Stage::routeOutput(), and MSTransportable::Stage::tripInfoOutput().
Referenced by libsumo::Person::getEdges(), and libsumo::Person::rerouteTraveltime().
|
inlineinherited |
Returns the departure edge.
Definition at line 633 of file MSTransportable.h.
References MSTransportable::Stage::getAngle(), MSTransportable::Stage::getEdgePos(), MSTransportable::Stage::getPosition(), MSTransportable::Stage::getSpeed(), and MSTransportable::getWaitingSeconds().
Referenced by GUIPerson::getFromEdgeID(), and GUIContainer::getParameterWindow().
|
virtualinherited |
returns the id of the transportable
Implements SUMOTrafficObject.
Definition at line 694 of file MSTransportable.cpp.
References SUMOVehicleParameter::id, and MSTransportable::myParameter.
Referenced by MSTransportableControl::abortAnyWaitingForVehicle(), MSPModel_Remote::add(), MSPModel_Striping::add(), MSVehicle::addContainer(), MSVehicle::addPerson(), MSTransportable::appendStage(), libsumo::Person::appendWalkingStage(), MSPerson::MSPersonStage_Walking::beginEventOutput(), MSContainer::MSContainerStage_Tranship::beginEventOutput(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), MSTransportableDevice_FCD::buildDevices(), MSTransportableDevice_Routing::buildDevices(), libsumo::Person::convertTraCIStage(), MSPModel_Striping::PState::distanceTo(), MSPerson::MSPersonStage_Walking::endEventOutput(), MSContainer::MSContainerStage_Tranship::endEventOutput(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSTransportableControl::erase(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_Striping::PState::getID(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), GUIContainer::getParameterWindow(), MSTransportable::getSingularType(), MSPModel_Striping::getVehicleObstacles(), MSVehicleControl::getWaitingVehicle(), MSPedestrianPushButton::isActiveForEdge(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), MSDevice_Transportable::notifyLeave(), MSEdge::transportable_by_position_sorter::operator()(), MSPModel_Striping::PState::PState(), MSPerson::reroute(), MSContainer::MSContainerStage_Driving::routeOutput(), routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), MSTransportable::Stage_Waiting::routeOutput(), MSTransportable::Stage_Trip::setArrived(), libsumo::Helper::setRemoteControlled(), tripInfoOutput(), MSPerson::MSPersonStage_Access::tripInfoOutput(), MSPerson::tripInfoOutput(), MSPModel_Striping::PState::walk(), MSFCDExport::writeTransportable(), MSXMLRawOut::writeTransportable(), and MSDevice_Transportable::~MSDevice_Transportable().
|
virtualinherited |
Returns the vehicle's maximum speed.
Implements SUMOTrafficObject.
Definition at line 925 of file MSTransportable.cpp.
References MSVehicleType::getMaxSpeed(), MSTransportable::getSpeedFactor(), and MSTransportable::getVehicleType().
Referenced by MSTransportable::getChosenSpeedFactor(), and MSTransportable::Stage_Trip::setArrived().
|
inlineinherited |
Returns the destination after the current destination.
Definition at line 623 of file MSTransportable.h.
References MSTransportable::myStep.
|
inlineinherited |
Return the current stage.
Definition at line 683 of file MSTransportable.h.
References MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by libsumo::Person::getStage(), MSPerson::reroute(), libsumo::Person::rerouteTraveltime(), and MSTransportable::Stage_Trip::setArrived().
|
inherited |
Return the number of remaining stages (including the current)
Definition at line 735 of file MSTransportable.cpp.
References MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by libsumo::Person::getEdges(), MSTransportable::getEdges(), GUIContainer::getParameterWindow(), libsumo::Person::getRemainingStages(), libsumo::Person::getStage(), GUIPerson::getStageIndexDescription(), libsumo::Person::removeStage(), libsumo::Person::replaceStage(), libsumo::Person::rerouteTraveltime(), and MSTransportable::Stage_Trip::setArrived().
|
inherited |
Return the total number stages in this persons plan.
Definition at line 740 of file MSTransportable.cpp.
References MSTransportable::myPlan.
Referenced by libsumo::Person::getEdges(), MSTransportable::getEdges(), GUIContainer::getParameterWindow(), libsumo::Person::getStage(), GUIPerson::getStageIndexDescription(), GUIContainer::GUIContainerPopupMenu::onCmdShowPlan(), GUIPerson::GUIPersonPopupMenu::onCmdShowPlan(), and MSTransportable::Stage_Trip::setArrived().
|
inlineinherited |
Definition at line 603 of file MSTransportable.h.
References MSTransportable::myParameter.
Referenced by MSTransportableControl::add(), MSTransportableDevice_Routing::buildDevices(), libsumo::Person::getLanePosition(), libsumo::Person::getParameter(), GUIPerson::getParameterWindow(), GUIContainer::getParameterWindow(), MSTransportableDevice_Routing::MSTransportableDevice_Routing(), MSTransportable::Stage_Trip::setArrived(), GUIContainer::setFunctionalColor(), GUIPerson::setFunctionalColor(), and libsumo::Person::setParameter().
|
inlinevirtualinherited |
Return current position (x/y, cartesian)
If the vehicle is not in the net, Position::INVALID.
[in] | offset | optional offset in longitudinal direction |
Implements SUMOTrafficObject.
Definition at line 582 of file MSTransportable.h.
References MSTransportable::Stage::getPosition().
Referenced by MSLink::checkWalkingAreaFoe(), libsumo::Person::moveToXY(), and MSFCDExport::writeTransportable().
|
virtualinherited |
Return the Network coordinate of the transportable.
Reimplemented in GUIContainer, and GUIPerson.
Definition at line 714 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
Referenced by MSTransportable::getBoundingBox(), GUIPerson::getGUIPosition(), GUIPerson::getPosition(), and GUIContainer::getPosition().
|
inlinevirtualinherited |
Get the vehicle's position along the lane.
Implements SUMOTrafficObject.
Definition at line 574 of file MSTransportable.h.
References MSTransportable::Stage::getEdgePos().
|
inlinevirtualinherited |
Returns the vehicle's previous speed.
Implements SUMOTrafficObject.
Definition at line 566 of file MSTransportable.h.
References MSTransportable::Stage::getSpeed().
|
inherited |
Replaces the current vehicle type with a new one used by this vehicle only.
If the currently used vehicle type is already marked as being used by this vehicle only, no new type is created.
Definition at line 799 of file MSTransportable.cpp.
References MSVehicleType::buildSingularType(), MSVehicleType::getID(), MSTransportable::getID(), MSVehicleType::isVehicleSpecific(), MSTransportable::myVType, and MSTransportable::replaceVehicleType().
Referenced by MSTransportable::getArrivalEdge(), TraCIServerAPI_Person::processSet(), and libsumo::Person::setParameter().
|
virtualinherited |
Returns the slope of the road at vehicle's position.
Implements SUMOTrafficObject.
Definition at line 912 of file MSTransportable.cpp.
References MSTransportable::getEdge(), MSTransportable::getEdgePos(), and MSEdge::getLanes().
Referenced by MSTransportable::isStopped().
|
virtualinherited |
the current speed of the transportable
Implements SUMOTrafficObject.
Reimplemented in GUIContainer, and GUIPerson.
Definition at line 729 of file MSTransportable.cpp.
Referenced by MSLink::checkWalkingAreaFoe(), libsumo::Person::getSpeed(), GUIPerson::getSpeed(), GUIContainer::getSpeed(), and MSFCDExport::writeTransportable().
|
inlinevirtualinherited |
the current speed factor of the transportable (where applicable)
Reimplemented in MSPerson.
Definition at line 653 of file MSTransportable.h.
Referenced by MSPerson::MSPersonStage_Walking::getMaxSpeed(), MSTransportable::getMaxSpeed(), and GUIContainer::getParameterWindow().
|
inherited |
return textual summary for the given stage
Definition at line 828 of file MSTransportable.cpp.
References MSTransportable::myPlan.
Referenced by GUIContainer::GUIContainerPopupMenu::onCmdShowPlan(), and GUIPerson::GUIPersonPopupMenu::onCmdShowPlan().
|
inlineinherited |
the stage type for the nth next stage
Definition at line 663 of file MSTransportable.h.
References MSTransportable::Stage::getStageSummary(), MSTransportable::Stage::getStageType(), MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by libsumo::Person::moveToXY(), MSPerson::Influencer::postProcessRemoteControl(), and libsumo::Person::rerouteTraveltime().
|
virtualinherited |
Returns the vehicle's access class.
Implements SUMOTrafficObject.
Definition at line 930 of file MSTransportable.cpp.
References MSVehicleType::getVehicleClass(), and MSTransportable::getVehicleType().
Referenced by MSTransportable::getChosenSpeedFactor(), and libsumo::Person::moveToXY().
|
inlineinherited |
The vehicle associated with this transportable.
Definition at line 727 of file MSTransportable.h.
References MSTransportable::appendStage(), MSTransportable::removeStage(), and MSTransportable::Stage::setSpeed().
Referenced by libsumo::Person::getVehicle().
|
inlinevirtualinherited |
Returns the vehicle's type.
Implements SUMOTrafficObject.
Definition at line 607 of file MSTransportable.h.
References MSTransportable::getDesiredDepart(), MSTransportable::myVType, and MSTransportable::Stage::setDeparted().
Referenced by libsumo::Person::appendWalkingStage(), MSLink::checkWalkingAreaFoe(), libsumo::Person::convertTraCIStage(), GUIContainer::drawAction_drawAsImage(), GUIContainer::drawAction_drawAsPoly(), GUIPerson::drawGL(), MSTransportable::getBoundingBox(), GUIPerson::getCenteringBoundary(), MSPModel_Striping::PState::getImpatience(), MSPModel_Striping::PState::getLength(), MSPerson::MSPersonStage_Walking::getMaxSpeed(), MSTransportable::getMaxSpeed(), MSPModel_Striping::PState::getMinGap(), MSPModel_Striping::getNextLaneObstacles(), libsumo::Person::getParameter(), libsumo::Person::getTypeID(), MSTransportable::getVClass(), MSPModel_Striping::getVehicleObstacles(), MSPModel_Striping::PState::getWidth(), MSPModel_Striping::PState::ignoreRed(), libsumo::Person::moveToXY(), MSPModel_Striping::nextBlocking(), MSPerson::MSPersonStage_Access::proceed(), libsumo::Person::rerouteTraveltime(), MSPerson::routeOutput(), GUIContainer::setFunctionalColor(), GUIPerson::setFunctionalColor(), and MSPerson::tripInfoOutput().
|
virtualinherited |
the time this transportable spent waiting in seconds
Reimplemented in GUIContainer, and GUIPerson.
Definition at line 724 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), MSNet::getInstance(), and STEPS2TIME.
Referenced by MSTransportable::getFromEdge(), GUIPerson::getWaitingSeconds(), GUIContainer::getWaitingSeconds(), libsumo::Person::getWaitingTime(), and MSPedestrianPushButton::isActiveForEdge().
|
virtualinherited |
Implements SUMOTrafficObject.
Definition at line 920 of file MSTransportable.cpp.
References MSNet::getCurrentTimeStep(), and MSNet::getInstance().
|
virtualinherited |
return whether the person has reached the end of its plan
Implements SUMOTrafficObject.
Definition at line 836 of file MSTransportable.cpp.
References MSTransportable::myPlan, and MSTransportable::myStep.
Referenced by MSTransportable::getArrivalEdge(), and MSPerson::routeOutput().
|
inherited |
return whether the transportable has started it's plan
Definition at line 841 of file MSTransportable.cpp.
References MSTransportable::myPlan.
Referenced by MSTransportable::getArrivalEdge().
|
inlinevirtualinherited |
Returns whether the vehicle is at a stop.
Implements SUMOTrafficObject.
Definition at line 550 of file MSTransportable.h.
References MSTransportable::getCurrentStageType(), MSTransportable::getSlope(), and MSTransportable::WAITING.
|
inlinevirtualinherited |
Get the vehicle's ID.
Implements SUMOTrafficObject.
Definition at line 546 of file MSTransportable.h.
|
inlineinherited |
Whether the transportable waits for a vehicle.
Definition at line 722 of file MSTransportable.h.
Referenced by GUIContainer::drawGL(), GUIContainer::getColorValue(), GUIPerson::getColorValue(), and GUIPerson::getGUIPosition().
|
inlineinherited |
Whether the transportable waits for the given vehicle in the current step.
Definition at line 717 of file MSTransportable.h.
Referenced by MSVehicleControl::getWaitingVehicle().
|
private |
Invalidated assignment operator.
Implements MSTransportable.
Definition at line 313 of file MSContainer.cpp.
References MSTransportable::Stage::getDestinationStop(), MSTransportable::Stage::getEdge(), MSTransportable::myPlan, MSTransportable::myStep, MSEdge::removeContainer(), MSStoppingPlace::removeTransportable(), and MSTransportable::Stage::setArrived().
|
inherited |
removes the nth next stage
Definition at line 761 of file MSTransportable.cpp.
References MSTransportable::appendStage(), MSTransportable::getEdge(), MSTransportable::getEdgePos(), MSNet::getInstance(), MSTransportable::myPlan, MSTransportable::myStep, and MSTransportable::proceed().
Referenced by MSTransportable::getVehicle(), libsumo::Person::removeStage(), libsumo::Person::replaceStage(), MSPerson::reroute(), and MSTransportable::rerouteParkingArea().
|
inherited |
Replaces the current vehicle type by the one given.
If the currently used vehicle type is marked as being used by this vehicle only, it is deleted, first. The new, given type is then assigned to "myVType".
[in] | type | The new vehicle type |
Definition at line 790 of file MSTransportable.cpp.
References MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleType::isVehicleSpecific(), MSTransportable::myVType, and MSVehicleControl::removeVType().
Referenced by MSTransportable::getArrivalEdge(), MSTransportable::getSingularType(), and libsumo::Person::setType().
|
inherited |
adapt plan when the vehicle reroutes and now stops at replacement instead of orig
Definition at line 847 of file MSTransportable.cpp.
References MSTransportable::appendStage(), MSTransportable::DRIVING, MSTransportable::Stage::getArrivalPos(), MSTransportable::getCurrentStageType(), MSTransportable::Stage::getDestination(), MSTransportable::getDestination(), MSTransportable::Stage::getDestinationStop(), MSLane::getEdge(), MSTransportable::Stage::getFromEdge(), MSStoppingPlace::getLane(), MSTransportable::Stage_Driving::getLines(), MSTransportable::Stage::getStageType(), MSTransportable::Stage_Driving::getVehicle(), MSTransportable::MOVING_WITHOUT_VEHICLE, MSTransportable::myPlan, MSTransportable::myStep, MSTransportable::removeStage(), MSTransportable::Stage::setDestination(), MSTransportable::TRIP, and WRITE_WARNING.
Referenced by MSTransportable::getArrivalEdge().
|
virtual |
Called on writing vehroute output.
[in] | os | The stream to write the information into |
[in] | withRouteLength | whether route length shall be written |
IOError | not yet implemented |
Implements MSTransportable.
Definition at line 343 of file MSContainer.cpp.
References OutputDevice::closeTag(), MSTransportable::getDesiredDepart(), MSTransportable::getID(), MSNet::getInstance(), OutputDevice::lf(), MSTransportable::myPlan, MSTransportable::myStep, OutputDevice::openTag(), SUMO_ATTR_DEPART, SUMO_ATTR_ID, SUMO_TAG_CONTAINER, time2string(), and OutputDevice::writeAttr().
|
inherited |
logs depart time of the current stage
Definition at line 704 of file MSTransportable.cpp.
|
inherited |
sets the walking speed (ignored in other stages)
Definition at line 782 of file MSTransportable.cpp.
References MSTransportable::myPlan.
Referenced by libsumo::Person::setSpeed().
|
virtual |
Called on writing tripinfo output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implements MSTransportable.
Definition at line 333 of file MSContainer.cpp.
References OutputDevice::closeTag(), MSTransportable::getDesiredDepart(), MSTransportable::getID(), MSTransportable::myPlan, OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
protectedinherited |
The devices this transportable has.
Definition at line 814 of file MSTransportable.h.
Referenced by MSTransportable::getDevice(), MSTransportable::getDevices(), and MSTransportable::MSTransportable().
|
protectedinherited |
the plan of the transportable
Definition at line 798 of file MSTransportable.h.
Referenced by MSTransportable::getDesiredDepart(), MSTransportable::getID(), MSTransportable::getParameter(), MSPerson::routeOutput(), and MSTransportable::~MSTransportable().
|
protectedinherited |
the plan of the transportable
Definition at line 808 of file MSTransportable.h.
Referenced by MSTransportable::appendStage(), MSTransportable::getArrivalEdge(), MSTransportable::getArrivalPos(), MSTransportable::getEdges(), MSTransportable::getNextStage(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), MSTransportable::getStageSummary(), MSTransportable::getStageType(), MSTransportable::hasArrived(), MSTransportable::hasDeparted(), MSTransportable::MSTransportable(), proceed(), MSPerson::proceed(), MSTransportable::removeStage(), MSTransportable::rerouteParkingArea(), routeOutput(), MSPerson::routeOutput(), MSTransportable::setSpeed(), tripInfoOutput(), MSPerson::tripInfoOutput(), and MSTransportable::~MSTransportable().
|
protectedinherited |
the iterator over the route
Definition at line 811 of file MSTransportable.h.
Referenced by MSTransportable::appendStage(), MSTransportable::getCurrentStage(), MSTransportable::getEdges(), MSTransportable::getNextDestination(), MSTransportable::getNextStage(), MSTransportable::getNumRemainingStages(), MSTransportable::getStageType(), MSTransportable::hasArrived(), MSTransportable::MSTransportable(), proceed(), MSPerson::proceed(), MSTransportable::removeStage(), MSTransportable::rerouteParkingArea(), routeOutput(), MSTransportable::Stage_Trip::setArrived(), and MSTransportable::~MSTransportable().
|
protectedinherited |
This transportable's type. (mainly used for drawing related information Note sure if it is really necessary.
Definition at line 802 of file MSTransportable.h.
Referenced by MSTransportable::getSingularType(), GUIPerson::getTypeParameterWindow(), GUIContainer::getTypeParameterWindow(), MSTransportable::getVehicleType(), MSTransportable::replaceVehicleType(), and MSTransportable::~MSTransportable().
|
protectedinherited |
Whether events shall be written.
Definition at line 805 of file MSTransportable.h.
|
staticprotectedinherited |
the offset for computing positions when standing at an edge
Definition at line 795 of file MSTransportable.h.
Referenced by MSTransportable::Stage_Trip::getPosition(), MSTransportable::Stage_Waiting::getPosition(), and MSTransportable::Stage_Driving::getPosition().