Eclipse SUMO - Simulation of Urban MObility
|
#include <MSStageTranship.h>
Public Types | |
typedef std::map< std::string, std::string > | Map |
parameters map | |
Public Member Functions | |
virtual void | abort (MSTransportable *) |
abort this stage (TraCI) | |
virtual void | activateEntryReminders (MSTransportable *person, const bool isDepart=false) |
add the move reminders for the current lane on entry | |
void | clearParameter () |
Clears the parameter map. | |
MSStage * | clone () const |
bool | equals (const MSStage &s) const |
double | getAngle (SUMOTime now) const |
Returns the angle of the container. | |
double | getArrivalPos () const |
virtual double | getArrivalPosLat () const |
SUMOTime | getArrived () const |
get arrival time of stage | |
double | getConfiguredSpeed () const |
Returns the configured speed in this stage. | |
double | getCosts () const |
Returns the costs of the stage. | |
SUMOTime | getDeparted () const |
get departure time of stage | |
int | getDepartLane () const |
double | getDepartPos () const |
double | getDepartPosLat () const |
const MSEdge * | getDestination () const |
returns the destination edge | |
MSStoppingPlace * | getDestinationStop () const |
returns the destination stop (if any) | |
int | getDirection () const |
Return the movement directon on the edge. | |
double | getDistance () const |
get travel distance in this stage | |
double | getDouble (const std::string &key, const double defaultValue) const |
Returns the value for a given key converted to a double. | |
std::vector< double > | getDoubles (const std::string &key, std::vector< double > defaultValue=std::vector< double >()) const |
Returns the value for a given key converted to a list of doubles. | |
virtual SUMOTime | getDuration () const |
const MSEdge * | getEdge () const |
Returns the current edge. | |
double | getEdgeAngle (const MSEdge *e, double at) const |
get angle of the edge at a certain position | |
double | getEdgePos (SUMOTime now) const |
Returns the offset from the start of the current edge measured in its natural direction. | |
Position | getEdgePosition (const MSEdge *e, double at, double offset) const |
get position on edge e at length at with orthogonal offset | |
virtual double | getEdgePosLat (SUMOTime now) const |
ConstMSEdgeVector | getEdges () const |
the edges of the current stage | |
const MSEdge * | getFromEdge () const |
Returns first edge of the containers route. | |
const std::string & | getGroup () const |
return the id of the group of transportables traveling together | |
const MSLane * | getLane () const |
Returns the current lane. | |
Position | getLanePosition (const MSLane *lane, double at, double offset) const |
get position on lane at length at with orthogonal offset | |
double | getMaxSpeed (const MSTransportable *const transportable=nullptr) const |
the maximum speed of the transportable | |
const MSEdge * | getNextRouteEdge () const |
virtual MSStoppingPlace * | getOriginStop () const |
returns the origin stop (if any). only needed for MSStageTrip | |
virtual const std::string | getParameter (const std::string &key, const std::string defaultValue="") const |
Returns the value for a given key. | |
const Parameterised::Map & | getParametersMap () const |
Returns the inner key/value map. | |
std::string | getParametersStr (const std::string kvsep="=", const std::string sep="|") const |
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN". | |
Position | getPosition (SUMOTime now) const |
Returns the position of the container. | |
MSTransportableStateAdapter * | getPState () const |
const std::vector< const MSEdge * > & | getRoute () const |
virtual int | getRoutePosition () const |
return index of current edge within route | |
const std::vector< constMSEdge * >::iterator | getRouteStep () const |
double | getSpeed () const |
Returns the speed of the container. | |
std::string | getStageDescription (const bool isPerson) const |
Returns the current stage description as a string. | |
std::string | getStageSummary (const bool isPerson) const |
return string summary of the current stage | |
MSStageType | getStageType () const |
virtual SUMOTime | getTimeLoss (const MSTransportable *transportable) const |
virtual SUMOTime | getTravelTime () const |
MSStageTrip * | getTrip () const |
virtual SUMOVehicle * | getVehicle () const |
Current vehicle in which the transportable is driving (or nullptr) | |
virtual SUMOTime | getWaitingTime () const |
SUMOTime | getWaitingTime (SUMOTime now) const |
Returns the time the container spent waiting. | |
bool | hasParameter (const std::string &key) const |
Returns whether the parameter is set. | |
virtual void | init (MSTransportable *) |
initialization, e.g. for param-related events | |
virtual bool | isWaiting4Vehicle () const |
Whether the transportable waits for a vehicle. | |
virtual bool | isWaitingFor (const SUMOVehicle *vehicle) const |
Whether the transportable waits for the given vehicle. | |
virtual bool | isWalk () const |
Whether the transportable is walking. | |
virtual void | loadState (MSTransportable *transportable, std::istringstream &state) |
Reconstructs the current state, standard implementation does nothing. | |
void | markSet (int what) |
void | mergeParameters (const Parameterised::Map &mapArg, const std::string separator=" ", bool uniqueValues=true) |
Adds or appends all given parameters from the map. | |
bool | moveToNextEdge (MSTransportable *container, SUMOTime currentTime, int prevDir, MSEdge *nextInternal=nullptr, const bool isReplay=false) |
move forward and return whether the container arrived | |
MSStageTranship (const std::vector< const MSEdge * > &route, MSStoppingPlace *toStop, double speed, double departPos, double arrivalPos) | |
constructor | |
void | proceed (MSNet *net, MSTransportable *transportable, SUMOTime now, MSStage *previous) |
proceeds to the next step | |
virtual void | replaceRoute (MSTransportable *const transportable, const ConstMSEdgeVector &edges, int routeOffset) |
void | routeOutput (const bool isPerson, OutputDevice &os, const bool withRouteLength, const MSStage *const previous) const |
Called on writing vehroute output. | |
virtual void | saveState (std::ostringstream &out) |
Saves the current state into the given stream, standard implementation does nothing. | |
void | setArrivalPos (double arrivalPos) |
virtual const std::string | setArrived (MSNet *net, MSTransportable *transportable, SUMOTime now, const bool vehicleArrived) |
logs end of the step | |
void | setCosts (double costs) |
Sets the costs of the stage. | |
void | setDeparted (SUMOTime now) |
logs end of the step | |
void | setDepartPos (const double pos) |
void | setDestination (const MSEdge *newDestination, MSStoppingPlace *newDestStop) |
virtual void | setParameter (const std::string &key, const std::string &value) |
Sets a parameter. | |
void | setParameters (const Parameterised ¶ms) |
set the inner key/value map in map<string, string> format | |
void | setParametersStr (const std::string ¶msString, const std::string kvsep="=", const std::string sep="|") |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN" | |
void | setPState (MSTransportableStateAdapter *pstate) |
virtual void | setRouteIndex (MSTransportable *const transportable, int routeOffset) |
place transportable on a previously passed edge | |
virtual void | setSpeed (double) |
sets the walking speed (ignored in other stages) | |
void | setTrip (MSStageTrip *trip) |
void | tripInfoOutput (OutputDevice &os, const MSTransportable *const transportable) const |
Called on writing tripinfo output. | |
void | unsetParameter (const std::string &key) |
Removes a parameter. | |
void | updateParameters (const Parameterised::Map &mapArg) |
Adds or updates all given parameters from the map. | |
bool | wasSet (int what) const |
void | writeParams (OutputDevice &device) const |
write Params in the given outputdevice | |
~MSStageTranship () | |
destructor | |
Static Public Member Functions | |
static bool | areAttributesValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|") |
check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas) | |
static bool | areParametersValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|") |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN" | |
static const MSLane * | checkDepartLane (const MSEdge *edge, SUMOVehicleClass svc, int laneIndex, const std::string &id) |
interpret custom depart lane | |
Protected Attributes | |
double | myArrivalPos |
the longitudinal position at which we want to arrive | |
double | myArrivalPosLat |
the lateral position at which we want to arrive | |
SUMOTime | myArrived |
the time at which this stage ended | |
double | myCosts |
The assigned or calculated costs. | |
MSEdge * | myCurrentInternalEdge = nullptr |
The current internal edge this transportable is on or nullptr. | |
SUMOTime | myDeparted |
the time at which this stage started | |
int | myDepartLane |
the depart lane or -1 | |
double | myDepartPos |
the depart position | |
double | myDepartPosLat |
the lateral depart position | |
const MSEdge * | myDestination |
the next edge to reach by getting transported | |
MSStoppingPlace * | myDestinationStop |
the stop to reach by getting transported (if any) | |
const std::string | myGroup |
The id of the group of transportables traveling together. | |
int | myParametersSet |
Information on which parameter were set (mainly for vehroute output) | |
MSTransportableStateAdapter * | myPState |
state that is to be manipulated by MSPModel | |
std::vector< const MSEdge * > | myRoute |
The route of the container. | |
std::string | myRouteID |
The original route id. | |
std::vector< constMSEdge * >::iterator | myRouteStep |
current step | |
double | mySpeed |
the speed of the transportable | |
MSStageTrip * | myTrip = nullptr |
MSStageType | myType |
The type of this stage. | |
Static Protected Attributes | |
static const double | ROADSIDE_OFFSET |
the offset for computing positions when standing at an edge | |
Private Member Functions | |
MSStageTranship (const MSStageTranship &) | |
Invalidated copy constructor. | |
MSStageTranship & | operator= (const MSStageTranship &) |
Invalidated assignment operator. | |
Static Private Member Functions | |
static bool | isParameterValid (const std::string &value, const std::string &kvsep, const std::string &sep) |
check if given string can be parsed to a parameter of type "key=value" | |
Private Attributes | |
Parameterised::Map | myMap |
The key->value map. | |
A "real" stage performing the tranship of a container A container is in this stage if it gets transhiped between two stops that are assumed to be connected.
Definition at line 57 of file MSStageTranship.h.
|
inherited |
parameters map
Definition at line 45 of file Parameterised.h.
MSStageTranship::MSStageTranship | ( | const std::vector< const MSEdge * > & | route, |
MSStoppingPlace * | toStop, | ||
double | speed, | ||
double | departPos, | ||
double | arrivalPos | ||
) |
constructor
Definition at line 45 of file MSStageTranship.cpp.
References SUMOVehicleParameter::interpretEdgePos(), MSStage::myArrivalPos, MSStageMoving::myDepartPos, MSStageMoving::myRoute, SUMO_ATTR_ARRIVALPOS, and SUMO_ATTR_DEPARTPOS.
MSStageTranship::~MSStageTranship | ( | ) |
destructor
Definition at line 59 of file MSStageTranship.cpp.
|
private |
Invalidated copy constructor.
|
inlinevirtualinherited |
abort this stage (TraCI)
Reimplemented in MSStageWaiting, MSStageWalking, and MSStageDriving.
Definition at line 146 of file MSStage.h.
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject().
|
inlinevirtualinherited |
add the move reminders for the current lane on entry
Reimplemented in MSStageWalking.
Definition at line 99 of file MSStageMoving.h.
References UNUSED_PARAMETER.
Referenced by MSPModel_NonInteracting::MoveToNextEdge::execute().
|
staticinherited |
check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas)
Definition at line 219 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
Referenced by GNEFrameAttributeModules::GenericDataAttributes::areAttributesValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), and GNETAZRelData::isValid().
|
staticinherited |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 200 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
Referenced by GNEDetector::isDetectorValid(), GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEMultiEntryExitDetector::isValid(), GNEOverheadWire::isValid(), GNEParkingArea::isValid(), GNEParkingSpace::isValid(), GNERerouter::isValid(), GNERouteProbe::isValid(), GNETAZ::isValid(), GNETAZSourceSink::isValid(), GNETractionSubstation::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), GNEContainer::isValid(), GNEPerson::isValid(), GNERoute::isValid(), GNEStop::isValid(), GNEVehicle::isValid(), GNEVType::isValid(), GNEConnection::isValid(), GNECrossing::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNEJunction::isValid(), GNELane::isValid(), GNELaneType::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNETLSEditorFrame::TLSAttributes::isValidParameters(), and GNEFrameAttributeModules::GenericDataAttributes::onCmdSetParameters().
|
staticinherited |
interpret custom depart lane
Definition at line 121 of file MSStageMoving.cpp.
References MSEdge::getLanes(), OptionsCont::getOptions(), toString(), and WRITE_WARNING.
Referenced by MSPModel_Striping::add(), and MSRouteHandler::interpretDepartPosLat().
|
inherited |
Clears the parameter map.
Definition at line 139 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing(), and GNESingleParametersDialog::onCmdAccept().
|
virtual |
Implements MSStage.
Definition at line 64 of file MSStageTranship.cpp.
References MSStage::myArrivalPos, MSStageMoving::myDepartPos, MSStage::myDestinationStop, MSStageMoving::myRoute, MSStageMoving::mySpeed, and Parameterised::setParameters().
|
inlinevirtualinherited |
Reimplemented from MSStage.
Reimplemented in MSStageWalking.
Definition at line 136 of file MSStageMoving.h.
References MSStage::equals(), MSStageMoving::myDepartLane, MSStageMoving::myDepartPos, MSStageMoving::myDepartPosLat, MSStageMoving::myRoute, MSStageMoving::myRouteID, and MSStageMoving::mySpeed.
Referenced by MSStageWalking::equals().
|
virtualinherited |
Returns the angle of the container.
Implements MSStage.
Definition at line 81 of file MSStageMoving.cpp.
References MSTransportableStateAdapter::getAngle(), and MSStageMoving::myPState.
|
inlinevirtual |
Reimplemented from MSStage.
Definition at line 106 of file MSStageTranship.h.
References MSStage::myArrivalPos.
|
inlinevirtualinherited |
Definition at line 98 of file MSStage.h.
References MSStage::myArrivalPosLat.
Referenced by MSPerson::checkAccess().
|
inherited |
get arrival time of stage
Definition at line 133 of file MSStage.cpp.
References MSStage::myArrived.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inlineinherited |
Returns the configured speed in this stage.
Definition at line 88 of file MSStageMoving.h.
References MSStageMoving::mySpeed.
|
inlineinherited |
Returns the costs of the stage.
Definition at line 256 of file MSStage.h.
References MSStage::myCosts.
Referenced by MSStageDriving::routeOutput(), routeOutput(), MSStageTrip::routeOutput(), and MSStageWalking::routeOutput().
|
inherited |
get departure time of stage
Definition at line 128 of file MSStage.cpp.
References MSStage::myDeparted.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inlineinherited |
Definition at line 129 of file MSStageMoving.h.
References MSStageMoving::myDepartLane.
Referenced by MSPModel_Striping::add().
|
inlineinherited |
Definition at line 117 of file MSStageMoving.h.
References MSStageMoving::myDepartPos.
Referenced by MSPModel_JuPedSim::add(), MSPModel_NonInteracting::PState::computeDuration(), and MSPModel_NonInteracting::CState::computeDuration().
|
inlineinherited |
Definition at line 125 of file MSStageMoving.h.
References MSStageMoving::myDepartPosLat.
Referenced by MSPModel_JuPedSim::add().
|
inherited |
returns the destination edge
Definition at line 65 of file MSStage.cpp.
References MSStage::myDestination.
Referenced by MSPModel_JuPedSim::add(), MSPerson::checkAccess(), MSStageDriving::BookReservation::execute(), MSStageDriving::getArrivalPos(), MSStage::getEdges(), MSStageDriving::getEdges(), MSStageDriving::getStageSummary(), getStageSummary(), MSStageWaiting::getStageSummary(), MSStageWalking::getStageSummary(), MSPModel_Striping::moveInDirectionOnLane(), MSRouteHandler::parseWalkPositions(), MSTransportable::proceed(), MSStageDriving::registerWaiting(), MSStageTrip::reroute(), MSTransportable::rerouteParkingArea(), MSStageDriving::routeOutput(), and MSStageWaiting::routeOutput().
|
inlineinherited |
returns the destination stop (if any)
Definition at line 85 of file MSStage.h.
References MSStage::myDestinationStop.
Referenced by MSRouteHandler::addFlowTransportable(), MSPerson::checkAccess(), GUIPerson::getDestinationStopID(), LIBSUMO_NAMESPACE::Person::getStage(), MSStageDriving::getStageSummary(), getStageSummary(), MSStageWaiting::getStageSummary(), MSStageWalking::getStageSummary(), MSStageDriving::loadState(), MSPModel_Striping::moveInDirectionOnLane(), MSDevice_Transportable::notifyMove(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), MSRouteHandler::parseWalkPositions(), MSStageDriving::proceed(), MSTransportable::proceed(), MSStageDriving::registerWaiting(), MSPerson::replaceWalk(), MSStageTrip::reroute(), MSTransportable::rerouteParkingArea(), and MSStageDriving::setArrived().
|
virtualinherited |
Return the movement directon on the edge.
Reimplemented from MSStage.
Definition at line 70 of file MSStageMoving.cpp.
References MSTransportableStateAdapter::getDirection(), MSStageMoving::myPState, and MSPModel::UNDEFINED_DIRECTION.
|
virtual |
get travel distance in this stage
Implements MSStage.
Definition at line 90 of file MSStageTranship.cpp.
References MSStage::myArrived, MSStage::myDeparted, MSStageMoving::mySpeed, and STEPS2TIME.
Referenced by tripInfoOutput().
|
inherited |
Returns the value for a given key converted to a double.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 100 of file Parameterised.cpp.
References Parameterised::myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.
Referenced by MSPModel_JuPedSim::add(), MSVehicleType::build(), MSVehicleType::check(), EnergyParams::EnergyParams(), MSSOTLPolicy5DStimulus::getStimCox(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut(), MSSOTLPolicy5DStimulus::getStimCoxExpIn(), MSSOTLPolicy5DStimulus::getStimCoxExpOut(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut(), MSSOTLPolicy5DStimulus::getStimDivisorIn(), MSSOTLPolicy5DStimulus::getStimDivisorOut(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut(), MSSOTLPolicy5DStimulus::getStimOffsetIn(), MSSOTLPolicy5DStimulus::getStimOffsetOut(), MSActuatedTrafficLightLogic::init(), MSDevice_ElecHybrid::MSDevice_ElecHybrid(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), and MSDevice_Battery::readParameterValue().
|
inherited |
Returns the value for a given key converted to a list of doubles.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 118 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.
Referenced by EnergyParams::EnergyParams().
|
virtualinherited |
Reimplemented in MSStageDriving, MSStageTrip, and MSStageWaiting.
Definition at line 139 of file MSStage.cpp.
References MSStage::myArrived, MSStage::myDeparted, and SUMOTime_MAX.
Referenced by MSStageWaiting::getDuration(), MSStageWalking::getTimeLoss(), MSStage::getTravelTime(), and tripInfoOutput().
|
virtualinherited |
Returns the current edge.
Reimplemented from MSStage.
Definition at line 45 of file MSStageMoving.cpp.
References MSStageMoving::myCurrentInternalEdge, MSStageMoving::myRoute, and MSStageMoving::myRouteStep.
Referenced by MSStageWalking::activateEntryReminders(), MSRouteHandler::addFlowTransportable(), MSPModel_NonInteracting::PState::computeDuration(), MSPModel_NonInteracting::MoveToNextEdge::execute(), MSPModel_JuPedSim::execute(), MSPModel_NonInteracting::PState::getAngle(), MSPModel_NonInteracting::CState::getAngle(), MSPModel_NonInteracting::PState::getPosition(), moveToNextEdge(), MSStageWalking::moveToNextEdge(), MSStageWalking::proceed(), MSStageMoving::replaceRoute(), and MSStageMoving::setRouteIndex().
|
inherited |
get angle of the edge at a certain position
Definition at line 183 of file MSStage.cpp.
References MSEdge::getLanes().
Referenced by MSPModel_NonInteracting::PState::getAngle(), MSPModel_NonInteracting::CState::getAngle(), MSStageDriving::getAngle(), MSStageTrip::getAngle(), and MSStageWaiting::getAngle().
|
virtualinherited |
Returns the offset from the start of the current edge measured in its natural direction.
Reimplemented from MSStage.
Definition at line 65 of file MSStageMoving.cpp.
References MSTransportableStateAdapter::getEdgePos(), MSStageMoving::myDepartPos, and MSStageMoving::myPState.
Referenced by MSStageWalking::walkDistance().
get position on edge e at length at with orthogonal offset
Definition at line 172 of file MSStage.cpp.
References MSStage::getLanePosition(), and MSEdge::getLanes().
Referenced by MSStageDriving::getPosition(), MSStageTrip::getPosition(), and MSStageWaiting::getPosition().
|
virtualinherited |
Definition at line 89 of file MSStage.cpp.
References MSStage::myArrivalPosLat.
Referenced by MSPerson::checkAccess(), and MSStageWalking::proceed().
|
virtualinherited |
the edges of the current stage
Reimplemented from MSStage.
Definition at line 59 of file MSStageMoving.cpp.
References MSStageMoving::myRoute.
Referenced by MSPModel_JuPedSim::add(), MSPModel_NonInteracting::CState::computeDuration(), MSPModel_JuPedSim::execute(), LIBSUMO_NAMESPACE::Person::moveToXY(), and MSTransportable::reroute().
|
virtualinherited |
Returns first edge of the containers route.
Reimplemented from MSStage.
Definition at line 54 of file MSStageMoving.cpp.
References MSStageMoving::myRoute.
Referenced by MSPModel_NonInteracting::CState::computeDuration().
|
inlineinherited |
return the id of the group of transportables traveling together
Definition at line 132 of file MSStage.h.
References MSStage::myGroup.
|
virtualinherited |
Returns the current lane.
Reimplemented from MSStage.
Definition at line 96 of file MSStageMoving.cpp.
References MSTransportableStateAdapter::getLane(), and MSStageMoving::myPState.
get position on lane at length at with orthogonal offset
Definition at line 177 of file MSStage.cpp.
References MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::positionAtOffset().
Referenced by MSPModel_NonInteracting::CState::computeDuration(), MSStage::getEdgePosition(), MSPModel_NonInteracting::PState::getPosition(), and MSPModel_Striping::PState::getPosition().
|
inlinevirtual |
the maximum speed of the transportable
Implements MSStageMoving.
Definition at line 101 of file MSStageTranship.h.
References MSStageMoving::mySpeed, and UNUSED_PARAMETER.
|
inlinevirtual |
Implements MSStageMoving.
Definition at line 110 of file MSStageTranship.h.
References MSStageMoving::myRoute, and MSStageMoving::myRouteStep.
|
inlinevirtualinherited |
returns the origin stop (if any). only needed for MSStageTrip
Reimplemented in MSStageDriving, and MSStageTrip.
Definition at line 90 of file MSStage.h.
Referenced by MSPerson::checkAccess(), GUIPerson::getGUIPosition(), MSTransportableControl::loadAnyWaiting(), MSStageDriving::loadState(), MSStageDriving::proceed(), and MSTransportable::proceed().
|
virtualinherited |
Returns the value for a given key.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Reimplemented in MSActuatedTrafficLightLogic, MSSimpleTrafficLightLogic, and NEMALogic.
Definition at line 90 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSPModel_JuPedSim::add(), NBRailwayTopologyAnalyzer::addBidiEdge(), NBEdge::addRestrictedLane(), FareModul::addStop(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSVehicleType::check(), MSRailSignal::constraintsAllow(), GUINet::createTLWrapper(), GNEEdge::drawEdgeName(), GNEConnection::drawEdgeValues(), GNEGenericData::drawFilteredAttribute(), GUIEdge::drawGL(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), GUIVehicle::getColorValue(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUIEdge::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), RORoutable::getMaxSpeed(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_SSM::getOutputFilename(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSBaseVehicle::getPrefixedParameter(), GUIBaseVehicle::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), SUMOTrafficObject::getStringParam(), MSRailSignalConstraint::getVeh(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSStoppingPlaceRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSRailSignalControl::haveDeadlock(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), MSStageDriving::init(), PushButtonLogic::init(), SigmoidLogic::init(), SUMOVTypeParameter::initRailVisualizationParameters(), NIImporter_OpenStreetMap::insertNodeChecking(), MSAbstractLaneChangeModel::laneChangeOutput(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), MSVehicle::slowDownForSchedule(), NBEdgeCont::splitAt(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), NWWriter_DlrNavteq::writeLinksUnsplitted(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPOI(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().
|
inherited |
Returns the inner key/value map.
Definition at line 145 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::addCrossing(), NBEdge::addLane(), NBEdge::append(), LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), NLDetectorBuilder::endE3Detector(), GNEAccess::getACParametersMap(), GNECalibrator::getACParametersMap(), GNEDetector::getACParametersMap(), GNEMultiEntryExitDetector::getACParametersMap(), GNEOverheadWire::getACParametersMap(), GNEParkingSpace::getACParametersMap(), GNERerouter::getACParametersMap(), GNERouteProbe::getACParametersMap(), GNEStoppingPlace::getACParametersMap(), GNETAZ::getACParametersMap(), GNEVaporizer::getACParametersMap(), GNEVariableSpeedSign::getACParametersMap(), GNEDataInterval::getACParametersMap(), GNEDataSet::getACParametersMap(), GNEGenericData::getACParametersMap(), GNEContainer::getACParametersMap(), GNEPerson::getACParametersMap(), GNEPersonTrip::getACParametersMap(), GNERide::getACParametersMap(), GNERoute::getACParametersMap(), GNEStop::getACParametersMap(), GNEStopPlan::getACParametersMap(), GNETranship::getACParametersMap(), GNETransport::getACParametersMap(), GNEVehicle::getACParametersMap(), GNEVType::getACParametersMap(), GNEWalk::getACParametersMap(), GNEConnection::getACParametersMap(), GNECrossing::getACParametersMap(), GNEEdge::getACParametersMap(), GNEEdgeType::getACParametersMap(), GNEJunction::getACParametersMap(), GNELane::getACParametersMap(), GNELaneType::getACParametersMap(), GNEPOI::getACParametersMap(), GNEPoly::getACParametersMap(), MSRailSignalConstraint_Predecessor::getDescription(), NWWriter_OpenDrive::getDividerType(), GUILane::getParameterWindow(), GNESingleParametersDialog::GNESingleParametersDialog(), MSRailCrossing::init(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), MSPModel_JuPedSim::initialize(), MSBaseVehicle::initTransientModelParams(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), GUIParameterTableWindow::numParams(), GNESingleParametersDialog::onCmdReset(), GNEVType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), Parameterised::setParameters(), LIBSUMO_NAMESPACE::TrafficLight::swapConstraints(), GNEEdgeData::writeGenericData(), GNEEdgeRelData::writeGenericData(), and GNETAZRelData::writeGenericData().
|
inherited |
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
Definition at line 151 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEContainerStop::getAttribute(), GNEMultiEntryExitDetector::getAttribute(), GNEOverheadWire::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingSpace::getAttribute(), GNERerouter::getAttribute(), GNERouteProbe::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNETractionSubstation::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEEdgeData::getAttribute(), GNEEdgeRelData::getAttribute(), GNETAZRelData::getAttribute(), GNEContainer::getAttribute(), GNEPerson::getAttribute(), GNERoute::getAttribute(), GNEStop::getAttribute(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNELaneType::getAttribute(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), and GNEDetector::getDetectorAttribute().
Returns the position of the container.
Implements MSStage.
Definition at line 76 of file MSStageMoving.cpp.
References MSTransportableStateAdapter::getPosition(), Position::INVALID, and MSStageMoving::myPState.
|
inlineinherited |
Definition at line 49 of file MSStageMoving.h.
References MSStageMoving::myPState.
Referenced by GUIPerson::drawAction_drawWalkingareaPath(), MSPModel_NonInteracting::MoveToNextEdge::execute(), MSPerson::getNextEdgePtr(), MSPerson::isJammed(), LIBSUMO_NAMESPACE::Person::moveTo(), and MSPerson::Influencer::postProcessRemoteControl().
|
inlineinherited |
Definition at line 109 of file MSStageMoving.h.
References MSStageMoving::myRoute.
Referenced by MSPModel_JuPedSim::add(), GUIPerson::drawGLAdditional(), MSPModel_JuPedSim::execute(), MSPModel_Striping::getNextLane(), LIBSUMO_NAMESPACE::Person::moveToXY(), MSPModel_Striping::PState::PState(), and MSTransportable::reroute().
|
inlinevirtualinherited |
return index of current edge within route
Reimplemented in MSStageWalking.
Definition at line 196 of file MSStage.h.
Referenced by MSPModel_Striping::getNextLane().
|
inlineinherited |
Definition at line 113 of file MSStageMoving.h.
References MSStageMoving::myRouteStep.
Referenced by MSPModel_JuPedSim::execute(), LIBSUMO_NAMESPACE::Person::moveToXY(), and MSTransportable::reroute().
|
virtualinherited |
Returns the speed of the container.
Reimplemented from MSStage.
Definition at line 91 of file MSStageMoving.cpp.
References MSTransportableStateAdapter::getSpeed(), and MSStageMoving::myPState.
|
inlinevirtual |
Returns the current stage description as a string.
Implements MSStage.
Definition at line 75 of file MSStageTranship.h.
References UNUSED_PARAMETER.
|
virtual |
return string summary of the current stage
Implements MSStage.
Definition at line 158 of file MSStageTranship.cpp.
References MSStage::getDestination(), MSStage::getDestinationStop(), and Named::getID().
|
inlineinherited |
Definition at line 127 of file MSStage.h.
References MSStage::myType.
Referenced by MSRouteHandler::addFlowTransportable(), MSPerson::checkAccess(), LIBSUMO_NAMESPACE::Person::getStage(), MSStageDriving::loadState(), MSStageWalking::proceed(), MSStageDriving::proceed(), MSTransportable::proceed(), MSTransportable::rerouteParkingArea(), MSStageDriving::routeOutput(), and MSStageTrip::routeOutput().
|
virtualinherited |
Reimplemented in MSStageDriving, and MSStageWalking.
Definition at line 155 of file MSStage.cpp.
|
virtualinherited |
Reimplemented in MSStageDriving, MSStageTrip, and MSStageWaiting.
Definition at line 145 of file MSStage.cpp.
References MSStage::getDuration().
|
inlineinherited |
Definition at line 268 of file MSStage.h.
References MSStage::myTrip.
Referenced by MSPerson::checkAccess(), and MSTransportable::reroute().
|
inlinevirtualinherited |
Current vehicle in which the transportable is driving (or nullptr)
Reimplemented in MSStageDriving.
Definition at line 182 of file MSStage.h.
Referenced by GUIPerson::getGUIPosition(), and GUIPerson::getVehicleID().
|
virtualinherited |
Reimplemented in MSStageDriving.
Definition at line 150 of file MSStage.cpp.
Returns the time the container spent waiting.
Reimplemented from MSStage.
Definition at line 86 of file MSStageMoving.cpp.
References MSTransportableStateAdapter::getWaitingTime(), and MSStageMoving::myPState.
|
inherited |
Returns whether the parameter is set.
[in] | key | The key to ask for |
Definition at line 84 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSStageWalking::activateEntryReminders(), NBEdge::append(), MSVehicleType::build(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), GUINet::createTLWrapper(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), NWWriter_DlrNavteq::getBrunnelType(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSStoppingPlaceRerouter::getWeight(), MSStageDriving::init(), SUMOVTypeParameter::initRailVisualizationParameters(), MSEdge::insertVehicle(), NIImporter_OpenStreetMap::load(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSVehicle::slowDownForSchedule(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().
|
inlinevirtualinherited |
initialization, e.g. for param-related events
Reimplemented in MSStageDriving.
|
staticprivateinherited |
check if given string can be parsed to a parameter of type "key=value"
Definition at line 254 of file Parameterised.cpp.
References StringTokenizer::getVector(), and SUMOXMLDefinitions::isValidParameterKey().
Referenced by Parameterised::areAttributesValid(), and Parameterised::areParametersValid().
|
inlinevirtualinherited |
Whether the transportable waits for a vehicle.
Reimplemented in MSStageDriving.
|
virtualinherited |
Whether the transportable waits for the given vehicle.
Reimplemented in MSStageDriving.
Definition at line 167 of file MSStage.cpp.
|
inlinevirtualinherited |
Whether the transportable is walking.
Reimplemented in MSStageTrip, and MSStageWalking.
|
inlinevirtualinherited |
Reconstructs the current state, standard implementation does nothing.
Reimplemented in MSStageDriving, MSStageWaiting, and MSStageWalking.
Definition at line 239 of file MSStage.h.
References UNUSED_PARAMETER.
|
inlineinherited |
Definition at line 248 of file MSStage.h.
References MSStage::myParametersSet.
|
inherited |
Adds or appends all given parameters from the map.
[in] | mapArg | The keys/values to insert |
Definition at line 65 of file Parameterised.cpp.
References Parameterised::getParameter(), Parameterised::hasParameter(), and Parameterised::setParameter().
Referenced by NBEdge::append().
|
virtual |
move forward and return whether the container arrived
Implements MSStageMoving.
Definition at line 140 of file MSStageTranship.cpp.
References MSStoppingPlace::addTransportable(), MSTransportableControl::erase(), MSNet::getContainerControl(), MSStageMoving::getEdge(), MSNet::getInstance(), MSNet::getPersonControl(), MSTransportable::isPerson(), MSStage::myDestinationStop, MSTransportable::proceed(), and MSEdge::removeTransportable().
|
private |
Invalidated assignment operator.
|
virtual |
proceeds to the next step
Implements MSStage.
Definition at line 72 of file MSStageTranship.cpp.
References MSPModel::add(), MSNet::getContainerControl(), MSStage::getEdgePos(), MSTransportableControl::getNonInteractingModel(), MSNet::getPersonControl(), MSTransportable::isPerson(), MSStage::myDeparted, MSStageMoving::myDepartPos, MSStageMoving::myPState, MSStageMoving::myRoute, and MSStageMoving::myRouteStep.
|
virtualinherited |
Definition at line 110 of file MSStageMoving.cpp.
References MSEdge::addTransportable(), MSStageMoving::getEdge(), MSStageMoving::myRoute, MSStageMoving::myRouteStep, and MSEdge::removeTransportable().
|
virtual |
Called on writing vehroute output.
[in] | isPerson | Whether we are writing person or container info |
[in] | os | The stream to write the information into |
[in] | withRouteLength | whether route length shall be written |
[in] | previous | The previous stage for additional info such as from edge |
IOError | not yet implemented |
Implements MSStage.
Definition at line 115 of file MSStageTranship.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), OptionsCont::getBool(), MSStage::getCosts(), MSStoppingPlace::getElement(), Named::getID(), MSStoppingPlace::getMyName(), OptionsCont::getOptions(), MSStage::myArrived, MSStage::myDeparted, MSStage::myDestinationStop, MSStageMoving::myRoute, MSStageMoving::mySpeed, OutputDevice::openTag(), STEPS2TIME, SUMO_ATTR_COST, SUMO_ATTR_EDGES, SUMO_ATTR_ENDED, SUMO_ATTR_SPEED, SUMO_ATTR_STARTED, time2string(), toString(), and OutputDevice::writeAttr().
|
inlinevirtualinherited |
Saves the current state into the given stream, standard implementation does nothing.
Reimplemented in MSStageDriving, MSStageWaiting, and MSStageWalking.
Definition at line 233 of file MSStage.h.
References UNUSED_PARAMETER.
|
inlineinherited |
Definition at line 102 of file MSStage.h.
References MSStage::myArrivalPos.
Referenced by MSStageTrip::reroute(), and MSTransportable::rerouteParkingArea().
|
virtualinherited |
logs end of the step
Reimplemented in MSStageDriving, and MSStageTrip.
Definition at line 161 of file MSStage.cpp.
References MSStage::myArrived.
Referenced by MSTransportable::proceed(), MSStageDriving::setArrived(), and MSStageTrip::setArrived().
|
inlineinherited |
Sets the costs of the stage.
[in] | costs | The new stage costs |
Definition at line 264 of file MSStage.h.
References MSStage::myCosts.
Referenced by MSStageTrip::reroute().
|
inherited |
|
inlineinherited |
Definition at line 121 of file MSStageMoving.h.
References MSStageMoving::myDepartPos.
Referenced by MSRouteHandler::addFlowTransportable().
|
inherited |
Definition at line 189 of file MSStage.cpp.
References MSStoppingPlace::getBeginLanePosition(), MSStoppingPlace::getEndLanePosition(), MSStage::myArrivalPos, MSStage::myDestination, and MSStage::myDestinationStop.
Referenced by MSTransportable::rerouteParkingArea().
|
virtualinherited |
Sets a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Reimplemented in MSRailCrossing, MSActuatedTrafficLightLogic, MSRailSignal, MSSimpleTrafficLightLogic, and NEMALogic.
Definition at line 45 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdge(), NLHandler::addDistrict(), RONetHandler::addParam(), ShapeHandler::addPOI(), NBOwnTLDef::buildNemaPhases(), MSParkingArea::enter(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSStateHandler::myStartElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), MSDevice_Bluelight::notifyMove(), GNESingleParametersDialog::onCmdAccept(), NBRailwayTopologyAnalyzer::reverseEdges(), GNEVType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSRailCrossing::setParameter(), MSActuatedTrafficLightLogic::setParameter(), MSRailSignal::setParameter(), MSSimpleTrafficLightLogic::setParameter(), NEMALogic::setParameter(), LIBSUMO_NAMESPACE::Simulation::setParameter(), Parameterised::setParametersStr(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), Parameterised::updateParameters(), NWWriter_OpenDrive::writeNetwork(), and NIImporter_OpenDrive::writeRoadObjects().
|
inherited |
set the inner key/value map in map<string, string> format
Definition at line 167 of file Parameterised.cpp.
References Parameterised::getParametersMap(), and Parameterised::myMap.
Referenced by MSStageDriving::clone(), clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), and MSStageTrip::reroute().
|
inherited |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
[in] | paramsString | A serialized key-value map |
[in] | kvsep | The separater between key and value |
[in] | sep | The separater between map entries |
Definition at line 173 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, and Parameterised::setParameter().
Referenced by MSDevice_Taxi::initDispatch(), GNEAccess::setAttribute(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEContainerStop::setAttribute(), GNEMultiEntryExitDetector::setAttribute(), GNEOverheadWire::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingSpace::setAttribute(), GNERerouter::setAttribute(), GNERouteProbe::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNETractionSubstation::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEEdgeData::setAttribute(), GNEEdgeRelData::setAttribute(), GNETAZRelData::setAttribute(), GNEContainer::setAttribute(), GNEPerson::setAttribute(), GNERoute::setAttribute(), GNEStop::setAttribute(), GNEVehicle::setAttribute(), GNEVType::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNELane::setAttribute(), GNELaneType::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), and GNEDetector::setDetectorAttribute().
|
inlineinherited |
Definition at line 53 of file MSStageMoving.h.
References MSStageMoving::myPState.
Referenced by MSPModel_JuPedSim::remove().
|
virtualinherited |
place transportable on a previously passed edge
Definition at line 101 of file MSStageMoving.cpp.
References MSEdge::addTransportable(), MSStageMoving::getEdge(), MSStageMoving::myRoute, MSStageMoving::myRouteStep, and MSEdge::removeTransportable().
|
inlinevirtualinherited |
sets the walking speed (ignored in other stages)
Reimplemented in MSStageWalking.
|
inlineinherited |
Definition at line 272 of file MSStage.h.
References MSStage::myTrip.
Referenced by MSPerson::checkAccess(), and MSStageTrip::reroute().
|
virtual |
Called on writing tripinfo output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implements MSStage.
Definition at line 101 of file MSStageTranship.cpp.
References OutputDevice::closeTag(), getDistance(), MSStage::getDuration(), MSStage::myArrivalPos, MSStage::myArrived, MSStage::myDeparted, MSStageMoving::myDepartPos, MSStageMoving::mySpeed, OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
inherited |
Removes a parameter.
[in] | key | The parameter's name |
Definition at line 51 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_OpenStreetMap::insertEdge(), MSLane::isInsertionSuccess(), NIImporter_OpenStreetMap::load(), GNEVType::setAttribute(), and LIBSUMO_NAMESPACE::TrafficLight::swapParameters().
|
inherited |
Adds or updates all given parameters from the map.
[in] | mapArg | The keys/values to insert |
Definition at line 57 of file Parameterised.cpp.
References Parameterised::setParameter().
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::addCrossing(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NLJunctionControlBuilder::closeTrafficLightLogic(), NBTrafficLightDefinition::compute(), NLDetectorBuilder::endE3Detector(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), and LIBSUMO_NAMESPACE::TrafficLight::swapConstraints().
|
inlineinherited |
Definition at line 244 of file MSStage.h.
References MSStage::myParametersSet.
Referenced by MSStageTrip::reroute(), MSStageTrip::routeOutput(), and MSStageWalking::routeOutput().
|
inherited |
write Params in the given outputdevice
Definition at line 188 of file Parameterised.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().
Referenced by MSStageWaiting::routeOutput(), MSTransportable::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), MSStop::write(), SUMOVTypeParameter::write(), SUMOVehicleParameter::Stop::write(), NBPTStop::write(), MSRailSignalConstraint_Predecessor::write(), GNEBusStop::writeAdditional(), GNECalibrator::writeAdditional(), GNECalibratorFlow::writeAdditional(), GNEChargingStation::writeAdditional(), GNEContainerStop::writeAdditional(), GNEEntryExitDetector::writeAdditional(), GNEInductionLoopDetector::writeAdditional(), GNEInstantInductionLoopDetector::writeAdditional(), GNELaneAreaDetector::writeAdditional(), GNEMultiEntryExitDetector::writeAdditional(), GNEOverheadWire::writeAdditional(), GNEParkingArea::writeAdditional(), GNEParkingSpace::writeAdditional(), GNERerouter::writeAdditional(), GNERouteProbe::writeAdditional(), GNETAZ::writeAdditional(), GNETractionSubstation::writeAdditional(), GNEVaporizer::writeAdditional(), GNEVariableSpeedSign::writeAdditional(), NWWriter_SUMO::writeConnection(), GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), GNERoute::writeDemandElement(), GNEVehicle::writeDemandElement(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), MSDevice_Vehroutes::writeOutput(), NWWriter_SUMO::writeTrafficLight(), SUMOPolygon::writeXML(), and PointOfInterest::writeXML().
|
protectedinherited |
the longitudinal position at which we want to arrive
Definition at line 293 of file MSStage.h.
Referenced by MSStageDriving::clone(), clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), MSStage::equals(), MSStageDriving::getAngle(), MSStageWaiting::getAngle(), MSStage::getArrivalPos(), MSStageDriving::getArrivalPos(), getArrivalPos(), MSStageWalking::getArrivalPos(), MSStage::getEdgePos(), MSStageDriving::getEdgePos(), MSStageDriving::getPosition(), MSStageWaiting::getPosition(), MSStageTranship(), MSStageWalking::MSStageWalking(), MSStageTrip::reroute(), MSStageDriving::routeOutput(), MSStageTrip::routeOutput(), MSStageWalking::routeOutput(), MSStage::setArrivalPos(), MSStageDriving::setArrived(), MSStage::setDestination(), tripInfoOutput(), MSStageWaiting::tripInfoOutput(), MSStageWalking::tripInfoOutput(), MSStageDriving::unspecifiedArrivalPos(), and MSStageWalking::walkDistance().
|
protectedinherited |
the lateral position at which we want to arrive
Definition at line 296 of file MSStage.h.
Referenced by MSStageDriving::clone(), MSStage::equals(), MSStage::getArrivalPosLat(), MSStage::getEdgePosLat(), and MSStageDriving::setArrived().
|
protectedinherited |
the time at which this stage ended
Definition at line 302 of file MSStage.h.
Referenced by MSStageDriving::getAngle(), MSStage::getArrived(), MSStageDriving::getDirection(), getDistance(), MSStage::getDuration(), MSStageDriving::getDuration(), MSStageDriving::getEdge(), MSStageDriving::getEdgePos(), MSStageDriving::getPosition(), MSStageDriving::getTimeLoss(), MSStageWalking::getTimeLoss(), MSStageDriving::getTravelTime(), MSStageDriving::isWaiting4Vehicle(), MSStageDriving::loadState(), MSStageDriving::routeOutput(), routeOutput(), MSStageTrip::routeOutput(), MSStageWaiting::routeOutput(), MSStageWalking::routeOutput(), MSStageDriving::saveState(), MSStage::setArrived(), MSStageDriving::tripInfoOutput(), tripInfoOutput(), MSStageWaiting::tripInfoOutput(), MSStageWalking::tripInfoOutput(), and MSStageWalking::walkDistance().
|
protectedinherited |
The assigned or calculated costs.
Definition at line 311 of file MSStage.h.
Referenced by MSStage::getCosts(), and MSStage::setCosts().
|
protectedinherited |
The current internal edge this transportable is on or nullptr.
Definition at line 164 of file MSStageMoving.h.
Referenced by MSStageMoving::getEdge(), MSStageWalking::loadState(), and MSStageWalking::moveToNextEdge().
|
protectedinherited |
the time at which this stage started
Definition at line 299 of file MSStage.h.
Referenced by MSStage::getDeparted(), getDistance(), MSStage::getDuration(), MSStageDriving::getTravelTime(), MSStageDriving::getWaitingTime(), MSStageDriving::loadState(), MSStageWaiting::loadState(), MSStageWalking::loadState(), MSStageWalking::proceed(), MSStageDriving::proceed(), proceed(), MSStageWaiting::proceed(), MSStageDriving::routeOutput(), routeOutput(), MSStageWaiting::routeOutput(), MSStageWalking::routeOutput(), MSStageDriving::saveState(), MSStageWaiting::saveState(), MSStageWalking::saveState(), MSStage::setDeparted(), MSStageDriving::tripInfoOutput(), tripInfoOutput(), and MSStageWalking::tripInfoOutput().
|
protectedinherited |
the depart lane or -1
Definition at line 176 of file MSStageMoving.h.
Referenced by MSStageWalking::clone(), MSStageMoving::equals(), and MSStageMoving::getDepartLane().
|
protectedinherited |
the depart position
Definition at line 170 of file MSStageMoving.h.
Referenced by clone(), MSStageWalking::clone(), MSStageMoving::equals(), MSStageMoving::getDepartPos(), MSStageMoving::getEdgePos(), MSStageTranship(), MSStageWalking::MSStageWalking(), MSStageWalking::proceed(), proceed(), MSStageMoving::setDepartPos(), tripInfoOutput(), MSStageWalking::tripInfoOutput(), and MSStageWalking::walkDistance().
|
protectedinherited |
the lateral depart position
Definition at line 173 of file MSStageMoving.h.
Referenced by MSStageWalking::clone(), MSStageMoving::equals(), MSStageMoving::getDepartPosLat(), and MSStageWalking::proceed().
|
protectedinherited |
the next edge to reach by getting transported
Definition at line 287 of file MSStage.h.
Referenced by MSStageDriving::abort(), MSStageDriving::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStage::equals(), MSStageDriving::getAngle(), MSStageWaiting::getAngle(), MSStage::getDestination(), MSStageTrip::getDestinationDescription(), MSStage::getEdge(), MSStageDriving::getEdge(), MSStage::getFromEdge(), MSStageDriving::getPosition(), MSStageWaiting::getPosition(), MSStageDriving::isWaitingFor(), MSStageWaiting::loadState(), MSStageTrip::routeOutput(), MSStageTrip::setArrived(), and MSStage::setDestination().
|
protectedinherited |
the stop to reach by getting transported (if any)
Definition at line 290 of file MSStage.h.
Referenced by MSStageDriving::abort(), MSStageDriving::canLeaveVehicle(), MSStageDriving::clone(), clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), MSStage::equals(), MSStageDriving::BookReservation::execute(), MSStageTrip::getDestinationDescription(), MSStage::getDestinationStop(), MSStageDriving::isWaitingFor(), MSStageWaiting::loadState(), moveToNextEdge(), MSStageWalking::moveToNextEdge(), MSStageWaiting::proceed(), MSStageDriving::registerWaiting(), MSStageTrip::reroute(), MSStageDriving::routeOutput(), routeOutput(), MSStageTrip::routeOutput(), MSStageWaiting::routeOutput(), MSStageWalking::routeOutput(), and MSStage::setDestination().
|
protectedinherited |
The id of the group of transportables traveling together.
Definition at line 308 of file MSStage.h.
Referenced by MSStageDriving::abort(), MSStageDriving::clone(), MSStageTrip::clone(), MSStage::equals(), MSStageDriving::BookReservation::execute(), MSStage::getGroup(), MSStageDriving::registerWaiting(), MSStageTrip::reroute(), and MSStageTrip::routeOutput().
|
privateinherited |
The key->value map.
Definition at line 139 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getDoubles(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::hasParameter(), Parameterised::setParameter(), Parameterised::setParameters(), Parameterised::setParametersStr(), Parameterised::unsetParameter(), and Parameterised::writeParams().
|
protectedinherited |
Information on which parameter were set (mainly for vehroute output)
Definition at line 314 of file MSStage.h.
Referenced by MSStage::markSet(), and MSStage::wasSet().
|
protectedinherited |
state that is to be manipulated by MSPModel
Definition at line 152 of file MSStageMoving.h.
Referenced by MSStageWalking::abort(), MSStageMoving::getAngle(), MSStageMoving::getDirection(), MSStageMoving::getEdgePos(), MSStageMoving::getLane(), MSStageMoving::getPosition(), MSStageMoving::getPState(), MSStageMoving::getSpeed(), MSStageMoving::getWaitingTime(), MSStageWalking::loadState(), MSStageWalking::moveToNextEdge(), MSStageWalking::proceed(), proceed(), MSStageWalking::saveState(), MSStageMoving::setPState(), and MSStageMoving::~MSStageMoving().
|
protectedinherited |
The route of the container.
Definition at line 155 of file MSStageMoving.h.
Referenced by clone(), MSStageWalking::clone(), MSStageMoving::equals(), MSStageMoving::getEdge(), MSStageMoving::getEdges(), MSStageMoving::getFromEdge(), getNextRouteEdge(), MSStageWalking::getNextRouteEdge(), MSStageMoving::getRoute(), MSStageWalking::getRoutePosition(), MSStageWalking::loadState(), MSStageWalking::moveToNextEdge(), MSStageTranship(), MSStageWalking::proceed(), proceed(), MSStageMoving::replaceRoute(), routeOutput(), MSStageWalking::routeOutput(), MSStageWalking::saveState(), MSStageMoving::setRouteIndex(), and MSStageWalking::walkDistance().
|
protectedinherited |
The original route id.
Definition at line 158 of file MSStageMoving.h.
Referenced by MSStageWalking::clone(), and MSStageMoving::equals().
|
protectedinherited |
current step
Definition at line 161 of file MSStageMoving.h.
Referenced by MSStageMoving::getEdge(), getNextRouteEdge(), MSStageWalking::getNextRouteEdge(), MSStageWalking::getRoutePosition(), MSStageMoving::getRouteStep(), MSStageWalking::loadState(), MSStageWalking::moveToNextEdge(), MSStageWalking::proceed(), proceed(), MSStageMoving::replaceRoute(), MSStageWalking::saveState(), MSStageMoving::setRouteIndex(), and MSStageWalking::walkDistance().
|
protectedinherited |
the speed of the transportable
Definition at line 167 of file MSStageMoving.h.
Referenced by clone(), MSStageWalking::clone(), MSStageMoving::equals(), MSStageMoving::getConfiguredSpeed(), getDistance(), MSStageWalking::getMaxSpeed(), getMaxSpeed(), MSStageWalking::MSStageWalking(), MSStageWalking::proceed(), routeOutput(), MSStageWalking::routeOutput(), MSStageWalking::setSpeed(), and tripInfoOutput().
|
protectedinherited |
Definition at line 316 of file MSStage.h.
Referenced by MSStage::getTrip(), and MSStage::setTrip().
|
protectedinherited |
The type of this stage.
Definition at line 305 of file MSStage.h.
Referenced by MSStageWaiting::abort(), MSStageWaiting::clone(), MSStage::equals(), MSStageWaiting::getDuration(), MSStage::getStageType(), MSStageWaiting::routeOutput(), and MSStageWaiting::tripInfoOutput().
|
staticprotectedinherited |
the offset for computing positions when standing at an edge
Definition at line 319 of file MSStage.h.
Referenced by MSStageDriving::getPosition(), MSStageTrip::getPosition(), and MSStageWaiting::getPosition().