![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MSStageDriving.h>
Data Structures | |
| class | BookReservation |
Public Types | |
| typedef std::map< std::string, std::string > | Map |
| parameters map | |
Public Member Functions | |
| void | abort (MSTransportable *t) |
| abort this stage (TraCI) | |
| bool | canLeaveVehicle (const MSTransportable *t, const SUMOVehicle &veh, const MSStop &stop) |
| checks whether the person may exit at the current vehicle position | |
| 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 transportable | |
| double | getArrivalPos () const |
| return default value for undefined arrivalPos | |
| virtual double | getArrivalPosLat () const |
| SUMOTime | getArrived () const |
| get arrival time of stage | |
| double | getCosts () const |
| Returns the costs of the stage. | |
| SUMOTime | getDeparted () const |
| get departure time of stage | |
| 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. | |
| 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 |
| 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 |
| const std::string & | getGroup () const |
| return the id of the group of transportables traveling together | |
| SUMOTime | getIntendedDepart () const |
| std::string | getIntendedVehicleID () const |
| virtual SUMOTime | getJumpDuration () const |
| Return the current jump duration (if applicable) | |
| const MSLane * | getLane () const |
| Returns the current lane (if applicable) | |
| Position | getLanePosition (const MSLane *lane, double at, double offset) const |
| get position on lane at length at with orthogonal offset | |
| const std::set< std::string > & | getLines () const |
| 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 transportable | |
| virtual int | getRoutePosition () const |
| return index of current edge within route | |
| double | getSpeed () const |
| the speed of the transportable | |
| std::string | getStageDescription (const bool isPerson) const |
| return (brief) string representation of the current stage | |
| std::string | getStageSummary (const bool isPerson) const |
| return string summary of the current stage | |
| MSStageType | getStageType () const |
| SUMOTime | getTimeLoss (const MSTransportable *transportable) const |
| virtual SUMOTime | getTotalWaitingTime () const |
| SUMOTime | getTravelTime () const |
| MSStageTrip * | getTrip () const |
| SUMOVehicle * | getVehicle () const |
| Current vehicle in which the transportable is driving (or nullptr) | |
| std::string | getVehicleType () const |
| std::string | getWaitingDescription () const |
| Return where the person waits and for what. | |
| SUMOTime | getWaitingTime () const |
| SUMOTime | getWaitingTime (SUMOTime now) const |
| time spent waiting for a ride | |
| bool | hasParameter (const std::string &key) const |
| Returns whether the parameter is set. | |
| void | init (MSTransportable *transportable) |
| initialization, e.g. for param-related events | |
| bool | isWaiting4Vehicle () const |
| Whether the person waits for a vehicle. | |
| bool | isWaitingFor (const SUMOVehicle *vehicle) const |
| Whether the person waits for the given vehicle. | |
| virtual bool | isWalk () const |
| Whether the transportable is walking. | |
| void | loadState (MSTransportable *transportable, std::istringstream &state) |
| Reconstructs the current state. | |
| 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. | |
| MSStageDriving (const MSEdge *origin, const MSEdge *destination, MSStoppingPlace *toStop, const double arrivalPos, const double arrivalPosLat, const std::vector< std::string > &lines, const std::string &group="", const std::string &intendedVeh="", SUMOTime intendedDepart=-1) | |
| constructor | |
| void | proceed (MSNet *net, MSTransportable *transportable, SUMOTime now, MSStage *previous) |
| proceeds to this stage | |
| void | routeOutput (const bool isPerson, OutputDevice &os, const bool withRouteLength, const MSStage *const previous) const |
| Called on writing vehroute output. | |
| void | saveState (std::ostringstream &out, MSTransportable *transportable) |
| Saves the current state into the given stream. | |
| void | setArrivalPos (double arrivalPos) |
| const std::string | setArrived (MSNet *net, MSTransportable *transportable, SUMOTime now, const bool vehicleArrived) |
| marks arrival time and records driven distance | |
| void | setCosts (double costs) |
| Sets the costs of the stage. | |
| void | setDeparted (SUMOTime now) |
| logs beginning of stage | |
| void | setDestination (const MSEdge *newDestination, MSStoppingPlace *newDestStop) |
| void | setEnded (SUMOTime t) |
| sets end of stage | |
| void | setOrigin (const MSEdge *origin, MSStoppingPlace *originStop, double departPos) |
| change origin for parking area rerouting | |
| virtual void | setParameter (const std::string &key, const std::string &value) |
| Sets a parameter. | |
| void | setParameters (const Parameterised ¶ms) |
| set the given key/value map in map<string, string> format | |
| void | setParameters (const std::vector< std::pair< std::string, std::string > > ¶ms) |
| set the given key/value vector 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" | |
| virtual void | setSpeed (double) |
| sets the walking speed (ignored in other stages) | |
| void | setTrip (MSStageTrip *trip) |
| void | setVehicle (SUMOVehicle *v) |
| void | setVehicleID (const std::string vehID) |
| void | tripInfoOutput (OutputDevice &os, const MSTransportable *const transportable) const |
| Called on writing tripinfo output. | |
| void | unsetParameter (const std::string &key) |
| Removes a parameter. | |
| bool | unspecifiedArrivalPos () const |
| 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 | |
| virtual | ~MSStageDriving () |
| 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 Public Attributes | |
| static const double | ARRIVALPOS_UNSPECIFIED |
| sentinel value | |
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. | |
| SUMOTime | myDeparted |
| the time at which this stage started | |
| 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. | |
| SUMOTime | myIntendedDepart |
| std::string | myIntendedVehicleID |
| const std::set< std::string > | myLines |
| the lines to choose from | |
| const MSEdge * | myOrigin |
| the origin edge | |
| MSStoppingPlace * | myOriginStop |
| the stop at which this ride starts (or nullptr) | |
| int | myParametersSet |
| Information on which parameter were set (mainly for vehroute output) | |
| double | myReservationWaitingPos = INVALID_DOUBLE |
| Position | myStopWaitPos |
| SUMOTime | myTimeLoss |
| While driving, this is the timeLoss of the vehicle when the ride started, after arrival this is the timeLoss which the vehicle accumulated during the ride. | |
| MSStageTrip * | myTrip = nullptr |
| MSStageType | myType |
| The type of this stage. | |
| SUMOVehicle * | myVehicle |
| The taken vehicle. | |
| double | myVehicleDistance |
| std::string | myVehicleID |
| cached vehicle data for output after the vehicle has been removed | |
| std::string | myVehicleLine |
| std::string | myVehicleType |
| SUMOVehicleClass | myVehicleVClass |
| const MSEdge * | myWaitingEdge |
| double | myWaitingPos |
| SUMOTime | myWaitingSince |
| The time since which this person is waiting for a ride. | |
Static Protected Attributes | |
| static const double | ROADSIDE_OFFSET |
| the offset for computing positions when standing at an edge | |
Private Member Functions | |
| MSStageDriving (const MSStageDriving &) | |
| Invalidated copy constructor. | |
| MSStageDriving & | operator= (const MSStageDriving &)=delete |
| Invalidated assignment operator. | |
| void | registerWaiting (MSTransportable *transportable, SUMOTime now) |
| brief register waiting person (on proceed or loadState) | |
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 travelling by a transport system The given route will be chosen. The travel time is computed by the simulation
Definition at line 60 of file MSStageDriving.h.
|
inherited |
parameters map
Definition at line 45 of file Parameterised.h.
| MSStageDriving::MSStageDriving | ( | const MSEdge * | origin, |
| const MSEdge * | destination, | ||
| MSStoppingPlace * | toStop, | ||
| const double | arrivalPos, | ||
| const double | arrivalPosLat, | ||
| const std::vector< std::string > & | lines, | ||
| const std::string & | group = "", |
||
| const std::string & | intendedVeh = "", |
||
| SUMOTime | intendedDepart = -1 |
||
| ) |
constructor
Definition at line 53 of file MSStageDriving.cpp.
|
virtual |
destructor
Definition at line 84 of file MSStageDriving.cpp.
|
private |
Invalidated copy constructor.
|
virtual |
abort this stage (TraCI)
Reimplemented from MSStage.
Definition at line 573 of file MSStageDriving.cpp.
References MSTransportableControl::abortWaitingForVehicle(), getArrivalPos(), MSNet::getContainerControl(), MSLane::getEdge(), SUMOTrafficObject::getEdge(), MSNet::getInstance(), SUMOTrafficObject::getLane(), getLines(), MSNet::getPersonControl(), SUMOTrafficObject::getPositionOnLane(), MSTransportable::isPerson(), MSStage::myArrivalPos, MSStage::myDestination, MSStage::myDestinationStop, MSStage::myGroup, myOriginStop, myVehicle, myWaitingEdge, myWaitingPos, MSDevice_Taxi::removeReservation(), and SUMOVehicle::removeTransportable().
|
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 207 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
|
staticinherited |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 188 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
Referenced by GNEAttributeCarrier::isCommonAttributeValid(), and GNETLSEditorFrame::TLSAttributes::isValidParameters().
| bool MSStageDriving::canLeaveVehicle | ( | const MSTransportable * | t, |
| const SUMOVehicle & | veh, | ||
| const MSStop & | stop | ||
| ) |
checks whether the person may exit at the current vehicle position
Definition at line 605 of file MSStageDriving.cpp.
References SUMOVehicleParameter::arrivalPos, MSStoppingPlace::getAccessPos(), getArrivalPos(), MSStoppingPlace::getBeginLanePosition(), MSTransportable::getDestination(), MSLane::getEdge(), MSStop::getEdge(), SUMOTrafficObject::getEdge(), MSStoppingPlace::getEndLanePosition(), Named::getID(), MSStoppingPlace::getLane(), MSEdge::getLength(), SUMOVehicle::getLength(), MSTransportable::getNumRemainingStages(), MSTransportable::getParameter(), MSGlobals::gStopTolerance, SUMOVehicleParameter::interpretEdgePos(), MSStop::isInRange(), MSStage::myDestinationStop, SUMO_ATTR_ARRIVALPOS, MSStage::unspecifiedArrivalPos(), VEHPARS_ARRIVALPOS_SET, and SUMOVehicleParameter::wasSet().
Referenced by MSDevice_Transportable::anyLeavingAtStop(), MSBaseVehicle::getLeavingPersonNumber(), MSDevice_Transportable::notifyMove(), and MSDevice_Transportable::transferAtSplitOrJoin().
|
inherited |
Clears the parameter map.
Definition at line 118 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing().
|
virtual |
Implements MSStage.
Definition at line 75 of file MSStageDriving.cpp.
References MSStage::myArrivalPos, MSStage::myArrivalPosLat, MSStage::myDestination, MSStage::myDestinationStop, MSStage::myGroup, myIntendedDepart, myIntendedVehicleID, myLines, myOrigin, and Parameterised::setParameters().
|
inlinevirtual |
Reimplemented from MSStage.
Definition at line 195 of file MSStageDriving.h.
References MSStage::equals(), myIntendedVehicleID, myLines, myOrigin, and sd.
|
virtual |
returns the angle of the transportable
Implements MSStage.
Definition at line 176 of file MSStageDriving.cpp.
References MSStoppingPlace::getAngle(), MSVehicle::getAngle(), MSStage::getEdgeAngle(), MSGlobals::gLefthand, isWaiting4Vehicle(), M_PI, MSStage::myArrivalPos, MSStage::myArrived, MSStage::myDestination, myOriginStop, myVehicle, myWaitingEdge, and myWaitingPos.
|
virtual |
return default value for undefined arrivalPos
Reimplemented from MSStage.
Definition at line 479 of file MSStageDriving.cpp.
References MSStage::getDestination(), MSEdge::getLength(), MSStage::myArrivalPos, and MSStage::unspecifiedArrivalPos().
Referenced by abort(), canLeaveVehicle(), MSStageDriving::BookReservation::execute(), registerWaiting(), MSTransportable::rerouteParkingArea(), and tripInfoOutput().
|
inlinevirtualinherited |
Definition at line 104 of file MSStage.h.
References MSStage::myArrivalPosLat.
Referenced by MSPerson::checkAccess().
|
inherited |
get arrival time of stage
Definition at line 134 of file MSStage.cpp.
References MSStage::myArrived.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inlineinherited |
Returns the costs of the stage.
Definition at line 275 of file MSStage.h.
References MSStage::myCosts.
Referenced by routeOutput(), MSStageTranship::routeOutput(), MSStageTrip::routeOutput(), and MSStageWalking::routeOutput().
|
inherited |
get departure time of stage
Definition at line 129 of file MSStage.cpp.
References MSStage::myDeparted.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inherited |
returns the destination edge
Definition at line 65 of file MSStage.cpp.
References MSStage::myDestination.
Referenced by MSPModel_JuPedSim::add(), MSPerson::checkAccess(), LIBSUMO_NAMESPACE::Person::convertTraCIStage(), MSStageDriving::BookReservation::execute(), getArrivalPos(), MSStage::getEdges(), getEdges(), getStageSummary(), MSStageTranship::getStageSummary(), MSStageWaiting::getStageSummary(), MSStageWalking::getStageSummary(), MSTransportable::loadState(), MSPModel_Striping::moveInDirectionOnLane(), MSRouteHandler::parseWalkPositions(), MSTransportable::proceed(), registerWaiting(), MSStageTrip::reroute(), MSTransportable::rerouteParkingArea(), routeOutput(), and MSStageWaiting::routeOutput().
|
inlineinherited |
returns the destination stop (if any)
Definition at line 88 of file MSStage.h.
References MSStage::myDestinationStop.
Referenced by MSRouteHandler::addFlowTransportable(), MSPerson::checkAccess(), LIBSUMO_NAMESPACE::Person::convertTraCIStage(), GUIPerson::getDestinationStopID(), LIBSUMO_NAMESPACE::Person::getStage(), getStageSummary(), MSStageTranship::getStageSummary(), MSStageWaiting::getStageSummary(), MSStageWalking::getStageSummary(), MSTransportable::loadState(), loadState(), MSPModel_Striping::moveInDirectionOnLane(), MSDevice_Transportable::notifyMove(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), MSRouteHandler::parseWalkPositions(), proceed(), MSTransportable::proceed(), registerWaiting(), MSPerson::replaceWalk(), MSStageTrip::reroute(), MSTransportable::rerouteParkingArea(), and setArrived().
|
virtual |
Return the movement directon on the edge.
Reimplemented from MSStage.
Definition at line 142 of file MSStageDriving.cpp.
References MSPModel::FORWARD, isWaiting4Vehicle(), MSStage::myArrived, and MSPModel::UNDEFINED_DIRECTION.
|
virtual |
get travel distance in this stage
Implements MSStage.
Definition at line 194 of file MSStageDriving.cpp.
References SUMOVehicle::getOdometer(), myVehicle, and myVehicleDistance.
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(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), and MSDevice_Battery::readParameterValue().
|
virtual |
Reimplemented from MSStage.
Definition at line 351 of file MSStageDriving.cpp.
References MSStage::myArrived, myWaitingSince, and SUMOTime_MAX.
|
virtual |
Returns the current edge.
Reimplemented from MSStage.
Definition at line 109 of file MSStageDriving.cpp.
References MSLane::getEdge(), SUMOTrafficObject::getEdge(), SUMOTrafficObject::getLane(), MSStage::myArrived, MSStage::myDestination, myVehicle, and myWaitingEdge.
Referenced by getEdgePos().
|
inherited |
get angle of the edge at a certain position
Definition at line 189 of file MSStage.cpp.
References MSEdge::getLanes().
Referenced by MSPModel_NonInteracting::PState::getAngle(), MSPModel_NonInteracting::CState::getAngle(), getAngle(), MSStageTrip::getAngle(), and MSStageWaiting::getAngle().
|
virtual |
Reimplemented from MSStage.
Definition at line 130 of file MSStageDriving.cpp.
References getEdge(), SUMOTrafficObject::getPositionOnLane(), isWaiting4Vehicle(), MIN2(), MSStage::myArrivalPos, MSStage::myArrived, myVehicle, and myWaitingPos.
get position on edge e at length at with orthogonal offset
Definition at line 178 of file MSStage.cpp.
References MSStage::getLanePosition(), and MSEdge::getLanes().
Referenced by 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().
|
virtual |
the edges of the current stage
Reimplemented from MSStage.
Definition at line 470 of file MSStageDriving.cpp.
References MSStage::getDestination(), and getFromEdge().
|
virtual |
Reimplemented from MSStage.
Definition at line 124 of file MSStageDriving.cpp.
References myWaitingEdge.
Referenced by getEdges(), and routeOutput().
|
inlineinherited |
return the id of the group of transportables traveling together
Definition at line 143 of file MSStage.h.
References MSStage::myGroup.
|
inline |
Definition at line 164 of file MSStageDriving.h.
References myIntendedDepart.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inline |
Definition at line 160 of file MSStageDriving.h.
References myIntendedVehicleID.
Referenced by GUIBusStop::getParameterWindow(), and LIBSUMO_NAMESPACE::Person::getStage().
|
inlinevirtualinherited |
Return the current jump duration (if applicable)
Reimplemented in MSStageWaiting.
Definition at line 133 of file MSStage.h.
Referenced by MSPerson::checkAccess(), and MSPerson::MSPersonStage_Access::proceed().
|
virtual |
Returns the current lane (if applicable)
Reimplemented from MSStage.
Definition at line 153 of file MSStageDriving.cpp.
References SUMOTrafficObject::getLane(), and myVehicle.
get position on lane at length at with orthogonal offset
Definition at line 183 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().
|
inline |
Definition at line 156 of file MSStageDriving.h.
References myLines.
Referenced by abort(), MSStageDriving::BookReservation::execute(), GUIBusStop::getParameterWindow(), LIBSUMO_NAMESPACE::Person::getStage(), registerWaiting(), and MSTransportable::rerouteParkingArea().
|
inlinevirtual |
returns the origin stop (if any). only needed for MSStageTrip
Reimplemented from MSStage.
Definition at line 92 of file MSStageDriving.h.
References myOriginStop.
Referenced by MSTransportable::~MSTransportable().
|
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(), NBEdge::append(), NBEdgeCont::attachRemoved(), 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(), GUIPointOfInterest::drawGL(), GNEPOI::drawPOI(), EnergyParams::EnergyParams(), MSPModel_JuPedSim::execute(), MSDevice_SSM::filterByConflictType(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSStoppingPlace::finishedLoading(), GUIBusStop::finishedLoading(), GUIEdge::getColorValue(), GUILane::getColorValue(), GUIVehicle::getColorValue(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), 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(), GNETAZRelData::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), SUMOTrafficObject::getStringParam(), MSRailSignalConstraint::getVeh(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSStoppingPlaceRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSInsertionControl::hasTaxiDeviceType(), MSRailSignalControl::haveDeadlock(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), init(), PushButtonLogic::init(), SigmoidLogic::init(), MSTrafficLightLogic::initMesoTLSPenalties(), SUMOVTypeParameter::initRailVisualizationParameters(), NIImporter_OpenStreetMap::insertNodeChecking(), MSAbstractLaneChangeModel::laneChangeOutput(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), NBRailwayTopologyAnalyzer::reverseEdge(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), MSVehicle::slowDownForSchedule(), NBEdgeCont::splitAt(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), NBEdge::updateRemovedNodes(), 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 124 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(), MSRailSignalConstraint_Predecessor::getDescription(), NWWriter_OpenDrive::getDividerType(), GUILane::getParameterWindow(), MSRailCrossing::init(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), MSBaseVehicle::initTransientModelParams(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), GUIParameterTableWindow::numParams(), GNEVType::overwriteVType(), MSPModel_JuPedSim::polygonChanged(), 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 130 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by GNEAttributeCarrier::getCommonAttribute().
returns the position of the transportable
Implements MSStage.
Definition at line 159 of file MSStageDriving.cpp.
References MSStage::getEdgePosition(), SUMOTrafficObject::getPosition(), MSGlobals::gLefthand, Position::INVALID, isWaiting4Vehicle(), MSStage::myArrivalPos, MSStage::myArrived, MSStage::myDestination, myStopWaitPos, myVehicle, myWaitingEdge, myWaitingPos, and MSStage::ROADSIDE_OFFSET.
|
inlinevirtualinherited |
return index of current edge within route
Reimplemented in MSStageWalking.
Definition at line 208 of file MSStage.h.
Referenced by MSPModel_Striping::getNextLane().
|
virtual |
the speed of the transportable
Reimplemented from MSStage.
Definition at line 464 of file MSStageDriving.cpp.
References SUMOTrafficObject::getSpeed(), and myVehicle.
|
virtual |
return (brief) string representation of the current stage
Implements MSStage.
Definition at line 204 of file MSStageDriving.cpp.
References isWaiting4Vehicle(), joinToString(), and myLines.
|
virtual |
return string summary of the current stage
Implements MSStage.
Definition at line 210 of file MSStageDriving.cpp.
References MSStage::getDestination(), MSStage::getDestinationStop(), Named::getID(), MSStoppingPlace::getMyName(), isWaiting4Vehicle(), joinToString(), myIntendedDepart, myIntendedVehicleID, myLines, and time2string().
|
inlineinherited |
Definition at line 138 of file MSStage.h.
References MSStage::myType.
Referenced by MSRouteHandler::addFlowTransportable(), MSPerson::checkAccess(), LIBSUMO_NAMESPACE::Person::getStage(), loadState(), MSStageWalking::proceed(), proceed(), MSTransportable::proceed(), MSTransportable::rerouteParkingArea(), routeOutput(), and MSStageTrip::routeOutput().
|
virtual |
Reimplemented from MSStage.
Definition at line 370 of file MSStageDriving.cpp.
References MSStage::myArrived, myTimeLoss, and SUMOTime_MAX.
Referenced by tripInfoOutput().
|
virtualinherited |
Reimplemented in MSStageMoving.
Definition at line 156 of file MSStage.cpp.
References MSStage::getWaitingTime().
|
virtual |
Reimplemented from MSStage.
Definition at line 357 of file MSStageDriving.cpp.
References MSStage::myArrived, MSStage::myDeparted, and SUMOTime_MAX.
|
inlineinherited |
Definition at line 287 of file MSStage.h.
References MSStage::myTrip.
Referenced by MSPerson::checkAccess(), and MSTransportable::reroute().
|
inlinevirtual |
Current vehicle in which the transportable is driving (or nullptr)
Reimplemented from MSStage.
Definition at line 137 of file MSStageDriving.h.
References myVehicle.
Referenced by MSTransportable::rerouteParkingArea(), and MSTransportable::~MSTransportable().
|
inline |
Definition at line 168 of file MSStageDriving.h.
References myVehicleType.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
| std::string MSStageDriving::getWaitingDescription | ( | ) | const |
Return where the person waits and for what.
Definition at line 595 of file MSStageDriving.cpp.
References MSStoppingPlace::getElement(), Named::getID(), isWaiting4Vehicle(), joinToString(), myLines, myOriginStop, myWaitingEdge, and toString().
Referenced by MSTransportableControl::abortAnyWaitingForVehicle().
|
virtual |
Reimplemented from MSStage.
Definition at line 363 of file MSStageDriving.cpp.
References MSStage::myDeparted, myWaitingSince, SIMSTEP, and SUMOTime_MAX.
Referenced by tripInfoOutput().
time spent waiting for a ride
Definition at line 458 of file MSStageDriving.cpp.
References isWaiting4Vehicle(), and myWaitingSince.
|
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(), GUIBusStop::finishedLoading(), NWWriter_DlrNavteq::getBrunnelType(), GUILane::getColorValue(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GNETAZRelData::getScaleValue(), MSStoppingPlaceRerouter::getWeight(), init(), SUMOVTypeParameter::initRailVisualizationParameters(), MSEdge::insertVehicle(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), 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().
|
virtual |
initialization, e.g. for param-related events
Reimplemented from MSStage.
Definition at line 88 of file MSStageDriving.cpp.
References MSEventControl::addEvent(), SUMOVehicleParameter::departPos, MSNet::getBeginOfTimestepEvents(), MSNet::getCurrentTimeStep(), MSNet::getInstance(), MSEdge::getLength(), MSTransportable::getNextStage(), MSTransportable::getParameter(), Parameterised::getParameter(), Parameterised::hasParameter(), myOrigin, myReservationWaitingPos, myWaitingPos, and string2time().
|
staticprivateinherited |
check if given string can be parsed to a parameter of type "key=value"
Definition at line 242 of file Parameterised.cpp.
References StringTokenizer::getVector(), and SUMOXMLDefinitions::isValidParameterKey().
Referenced by Parameterised::areAttributesValid(), and Parameterised::areParametersValid().
|
virtual |
Whether the person waits for a vehicle.
Reimplemented from MSStage.
Definition at line 452 of file MSStageDriving.cpp.
References MSStage::myArrived, and myVehicle.
Referenced by getAngle(), getDirection(), getEdgePos(), getPosition(), getStageDescription(), getStageSummary(), getWaitingDescription(), and getWaitingTime().
|
virtual |
Whether the person waits for the given vehicle.
Reimplemented from MSStage.
Definition at line 438 of file MSStageDriving.cpp.
References MSDevice_Taxi::compatibleLine(), Named::getID(), SUMOTrafficObject::getParameter(), SUMOVehicleParameter::line, LINE_ANY, MSStage::myDestination, MSStage::myDestinationStop, myLines, SUMOVehicle::stopsAt(), and SUMOVehicle::stopsAtEdge().
Referenced by MSDevice_Transportable::transferAtSplitOrJoin(), and MSDevice_Transportable::willTransferAtJoin().
|
inlinevirtualinherited |
Whether the transportable is walking.
Reimplemented in MSStageTrip, and MSStageWalking.
|
virtual |
Reconstructs the current state.
Reimplemented from MSStage.
Definition at line 655 of file MSStageDriving.cpp.
References MSStoppingPlace::addTransportable(), SUMOVehicle::addTransportable(), MSStage::getArrivalPos(), MSStage::getDestinationStop(), MSLane::getEdge(), MSStage::getEdge(), MSNet::getInstance(), MSStoppingPlace::getLane(), MSTransportable::getNextStage(), MSStage::getOriginStop(), MSStage::getStageType(), MSVehicleControl::getVehicle(), MSNet::getVehicleControl(), Position::INVALID, MSStage::myArrived, MSStage::myDeparted, myOriginStop, myStopWaitPos, myTimeLoss, myVehicle, myVehicleDistance, myWaitingEdge, myWaitingPos, myWaitingSince, registerWaiting(), setVehicle(), and TRIP.
|
inlineinherited |
Definition at line 267 of file MSStage.h.
References MSStage::myParametersSet.
Referenced by MSRouteHandler::addWalk().
|
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().
|
privatedelete |
Invalidated assignment operator.
|
virtual |
proceeds to this stage
Implements MSStage.
Definition at line 226 of file MSStageDriving.cpp.
References MSInsertionControl::add(), SUMOVehicle::addTransportable(), CONTAINER_TRIGGERED, SUMOVTypeParameter::containerCapacity, SUMOVehicleParameter::departProcedure, MSStoppingPlace::getAccessPos(), SUMOVehicle::getContainerNumber(), MSTransportable::getCurrentStageIndex(), MSStage::getDestinationStop(), MSLane::getEdge(), MSStage::getEdge(), MSStage::getEdgePos(), Named::getID(), MSNet::getInsertionControl(), MSStoppingPlace::getLane(), MSInsertionControl::getLastFlowVehicle(), MSStage::getOriginStop(), MSVehicleType::getParameter(), SUMOTrafficObject::getParameter(), MSTransportable::getParameter(), SUMOVehicle::getPersonNumber(), MSStage::getStageType(), MSVehicleControl::getVehicle(), MSNet::getVehicleControl(), SUMOTrafficObject::getVehicleType(), MSStoppingPlace::getWaitingPositionOnLane(), MSEdge::getWaitingVehicle(), MSStoppingPlace::getWaitPosition(), MSVehicleControl::handleTriggeredDepart(), SUMOVehicle::hasDeparted(), MSNet::hasFlow(), Position::INVALID, MSTransportable::isPerson(), MSStage::myDeparted, myLines, myOrigin, myOriginStop, myStopWaitPos, myVehicle, myWaitingEdge, myWaitingPos, myWaitingSince, SUMOVTypeParameter::personCapacity, registerWaiting(), MSStoppingPlace::removeTransportable(), setVehicle(), SIMSTEP, time2string(), TLF, TRIGGERED, TRIP, and WRITE_WARNING.
|
private |
brief register waiting person (on proceed or loadState)
Definition at line 303 of file MSStageDriving.cpp.
References MSDevice_Taxi::addReservation(), MSEdge::addTransportable(), MSTransportableControl::addWaiting(), MSStoppingPlace::getAllAccessPos(), getArrivalPos(), MSNet::getContainerControl(), MSStage::getDestination(), MSStage::getDestinationStop(), MSNet::getInstance(), getLines(), MSEdge::getPermissions(), MSNet::getPersonControl(), Position::INVALID, INVALID_DOUBLE, MSTransportable::isPerson(), MSDevice_Taxi::isReservation(), MSStage::myDestinationStop, MSStage::myGroup, myOriginStop, myReservationWaitingPos, myStopWaitPos, myVehicle, myWaitingEdge, myWaitingPos, SVC_TAXI, and MSDevice_Taxi::updateReservationFromPos().
Referenced by loadState(), and proceed().
|
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 395 of file MSStageDriving.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), OptionsCont::getBool(), MSStage::getCosts(), MSStage::getDestination(), MSStage::getEdge(), MSStoppingPlace::getElement(), getFromEdge(), Named::getID(), MSStoppingPlace::getMyName(), OptionsCont::getOptions(), MSStage::getStageType(), LINE_ANY, MSStage::myArrivalPos, MSStage::myArrived, MSStage::myDeparted, MSStage::myDestinationStop, myIntendedDepart, myIntendedVehicleID, myLines, myVehicleDistance, myVehicleID, OutputDevice::openTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_COST, SUMO_ATTR_DEPART, SUMO_ATTR_ENDED, SUMO_ATTR_FROM, SUMO_ATTR_INTENDED, SUMO_ATTR_LINES, SUMO_ATTR_STARTED, SUMO_ATTR_TO, SUMO_TAG_RIDE, SUMO_TAG_TRANSPORT, time2string(), toString(), MSStage::unspecifiedArrivalPos(), WAITING_FOR_DEPART, and OutputDevice::writeAttr().
|
virtual |
Saves the current state into the given stream.
Reimplemented from MSStage.
Definition at line 640 of file MSStageDriving.cpp.
References MSStoppingPlace::checkWaitingSpot(), Named::getID(), gPrecision, MSStage::myArrived, MSStage::myDeparted, myOriginStop, myStopWaitPos, myTimeLoss, myVehicle, myVehicleDistance, myWaitingPos, myWaitingSince, Position::x(), and Position::y().
|
inlineinherited |
Definition at line 108 of file MSStage.h.
References MSStage::myArrivalPos.
Referenced by MSStageTrip::reroute(), and MSTransportable::rerouteParkingArea().
|
virtual |
marks arrival time and records driven distance
Reimplemented from MSStage.
Definition at line 485 of file MSStageDriving.cpp.
References Position::add(), MSTrainHelper::Carriage::back, SUMOVTypeParameter::carriageDoorWidth, MSTrainHelper::computeDoorPositions(), MSTrainHelper::computeUnboardingPositions(), DEFAULT_PEDTYPE_ID, MSTrainHelper::Carriage::doorPositions, MSTrainHelper::Carriage::front, MSStoppingPlace::getAllAccessPos(), SUMOVehicle::getArrivalPos(), MSTrainHelper::getCarriageDoors(), MSTrainHelper::getCarriages(), MSStage::getDestinationStop(), MSBaseVehicle::getDevice(), SUMOTrafficObject::getEdge(), MSTrainHelper::getFirstPassengerCarriage(), MSNet::getInstance(), SUMOTrafficObject::getLane(), MSEdge::getLength(), MSVehicleType::getLength(), MSTrainHelper::getNumCarriages(), SUMOVehicle::getOdometer(), OptionsCont::getOptions(), MSVehicleType::getParameter(), SUMOTrafficObject::getPositionOnLane(), MSLane::getShape(), SUMOVehicle::getTimeLoss(), MSNet::getVehicleControl(), MSBaseVehicle::getVehicleType(), MSVehicleControl::getVType(), MSVehicleType::getWidth(), MSLane::interpolateGeometryPosToLanePos(), MAX2(), MIN2(), MSStage::myArrivalPos, MSStage::myArrivalPosLat, myTimeLoss, myVehicle, myVehicleDistance, PositionVector::nearest_offset_to_point2D(), Position::norm2D(), MSStoppingPlace::PLATFORM, RandHelper::rand(), MSStage::setArrived(), PositionVector::transformToVectorCoordinates(), Position::x(), and Position::y().
|
inlineinherited |
Sets the costs of the stage.
| [in] | costs | The new stage costs |
Definition at line 283 of file MSStage.h.
References MSStage::myCosts.
Referenced by MSStageTrip::reroute().
|
inherited |
logs beginning of stage
Definition at line 115 of file MSStage.cpp.
References MSStage::myDeparted.
Referenced by MSRouteHandler::addRideOrTransport(), and MSRouteHandler::addWalk().
|
inherited |
Definition at line 195 of file MSStage.cpp.
References MSStoppingPlace::getBeginLanePosition(), MSStoppingPlace::getEndLanePosition(), MSStage::myArrivalPos, MSStage::myDestination, and MSStage::myDestinationStop.
Referenced by MSTransportable::rerouteParkingArea().
|
inherited |
sets end of stage
Definition at line 123 of file MSStage.cpp.
References MSStage::myArrived.
Referenced by MSRouteHandler::addRideOrTransport(), and MSRouteHandler::addWalk().
|
inlinevirtual |
change origin for parking area rerouting
Reimplemented from MSStage.
Definition at line 173 of file MSStageDriving.h.
References myOrigin, myOriginStop, and myWaitingPos.
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(), NLJunctionControlBuilder::closeTrafficLightLogic(), MSStateHandler::closeVehicle(), MSParkingArea::enter(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), MSStateHandler::myStartElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), MSDevice_Bluelight::notifyMove(), NBRailwayTopologyAnalyzer::reverseEdge(), 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(), NBEdge::updateRemovedNodes(), NWWriter_OpenDrive::writeNetwork(), and NIImporter_OpenDrive::writeRoadObjects().
|
inherited |
set the given key/value map in map<string, string> format
Definition at line 146 of file Parameterised.cpp.
References Parameterised::getParametersMap(), and Parameterised::myMap.
Referenced by GNEVehicleFrame::buildVehicleOverRoute(), clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), GNEVehicleFrame::createPath(), and MSStageTrip::reroute().
|
inherited |
set the given key/value vector in map<string, string> format
Definition at line 152 of file Parameterised.cpp.
References Parameterised::myMap.
|
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 161 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, and Parameterised::setParameter().
Referenced by MSDevice_Taxi::initDispatch(), and GNEAttributeCarrier::setCommonAttribute().
|
inlinevirtualinherited |
sets the walking speed (ignored in other stages)
Reimplemented in MSStageWalking.
|
inlineinherited |
Definition at line 291 of file MSStage.h.
References MSStage::myTrip.
Referenced by MSPerson::checkAccess(), and MSStageTrip::reroute().
| void MSStageDriving::setVehicle | ( | SUMOVehicle * | v | ) |
Definition at line 553 of file MSStageDriving.cpp.
References MSVehicleType::getID(), Named::getID(), SUMOVehicle::getOdometer(), SUMOTrafficObject::getParameter(), SUMOVehicle::getTimeLoss(), SUMOTrafficObject::getVClass(), SUMOTrafficObject::getVehicleType(), SUMOVehicle::hasDeparted(), SUMOVehicleParameter::line, myTimeLoss, myVehicle, myVehicleDistance, myVehicleID, myVehicleLine, myVehicleType, and myVehicleVClass.
Referenced by loadState(), proceed(), MSDevice_Transportable::transferAtSplitOrJoin(), and MSDevice_Transportable::~MSDevice_Transportable().
|
inline |
Definition at line 149 of file MSStageDriving.h.
References myVehicleID.
Referenced by MSRouteHandler::addRideOrTransport().
|
virtual |
Called on writing tripinfo output.
| [in] | os | The stream to write the information into |
| IOError | not yet implemented |
Implements MSStage.
Definition at line 375 of file MSStageDriving.cpp.
References MSDevice_Tripinfo::addRideTransportData(), OutputDevice::closeTag(), getArrivalPos(), MSNet::getCurrentTimeStep(), getDistance(), MSNet::getInstance(), getTimeLoss(), getWaitingTime(), MSTransportable::isPerson(), MSStage::myArrived, MSStage::myDeparted, myVehicle, myVehicleDistance, myVehicleID, myVehicleLine, myVehicleVClass, OutputDevice::openTag(), SUMOTime_MAX, time2string(), toString(), 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(), GNEVType::setAttribute(), and LIBSUMO_NAMESPACE::TrafficLight::swapParameters().
|
inherited |
Definition at line 204 of file MSStage.cpp.
References MSStage::ARRIVALPOS_UNSPECIFIED, and MSStage::myArrivalPos.
Referenced by canLeaveVehicle(), getArrivalPos(), MSStageWaiting::proceed(), and routeOutput().
|
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 263 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 176 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(), GNEPOI::writeAdditional(), GNEPoly::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().
|
staticinherited |
sentinel value
Definition at line 72 of file MSStage.h.
Referenced by MSRouteHandler::addStop(), and MSStage::unspecifiedArrivalPos().
|
protectedinherited |
the longitudinal position at which we want to arrive
Definition at line 312 of file MSStage.h.
Referenced by abort(), clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), MSStage::equals(), getAngle(), MSStageWaiting::getAngle(), MSStage::getArrivalPos(), getArrivalPos(), MSStageTranship::getArrivalPos(), MSStageWalking::getArrivalPos(), MSStage::getEdgePos(), getEdgePos(), getPosition(), MSStageWaiting::getPosition(), MSStageTranship::MSStageTranship(), MSStageWalking::MSStageWalking(), MSStageWaiting::proceed(), MSStageTrip::reroute(), routeOutput(), MSStageTrip::routeOutput(), MSStageWalking::routeOutput(), MSStage::setArrivalPos(), setArrived(), MSStage::setDestination(), MSStageTranship::tripInfoOutput(), MSStageWaiting::tripInfoOutput(), MSStageWalking::tripInfoOutput(), MSStage::unspecifiedArrivalPos(), and MSStageWalking::walkDistance().
|
protectedinherited |
the lateral position at which we want to arrive
Definition at line 315 of file MSStage.h.
Referenced by clone(), MSStage::equals(), MSStage::getArrivalPosLat(), MSStage::getEdgePosLat(), and setArrived().
|
protectedinherited |
the time at which this stage ended
Definition at line 321 of file MSStage.h.
Referenced by getAngle(), MSStage::getArrived(), getDirection(), MSStageTranship::getDistance(), MSStage::getDuration(), getDuration(), getEdge(), getEdgePos(), getPosition(), getTimeLoss(), MSStageWalking::getTimeLoss(), getTravelTime(), isWaiting4Vehicle(), loadState(), routeOutput(), MSStageTranship::routeOutput(), MSStageTrip::routeOutput(), MSStageWaiting::routeOutput(), MSStageWalking::routeOutput(), saveState(), MSStage::setArrived(), MSStage::setEnded(), tripInfoOutput(), MSStageTranship::tripInfoOutput(), MSStageWaiting::tripInfoOutput(), MSStageWalking::tripInfoOutput(), and MSStageWalking::walkDistance().
|
protectedinherited |
The assigned or calculated costs.
Definition at line 330 of file MSStage.h.
Referenced by MSStage::getCosts(), and MSStage::setCosts().
|
protectedinherited |
the time at which this stage started
Definition at line 318 of file MSStage.h.
Referenced by MSStage::getDeparted(), MSStageTranship::getDistance(), MSStage::getDuration(), getTravelTime(), getWaitingTime(), loadState(), MSStageWaiting::loadState(), MSStageWalking::loadState(), MSStageWalking::proceed(), proceed(), MSStageTranship::proceed(), MSStageWaiting::proceed(), routeOutput(), MSStageTranship::routeOutput(), MSStageWaiting::routeOutput(), MSStageWalking::routeOutput(), saveState(), MSStageWaiting::saveState(), MSStageWalking::saveState(), MSStage::setDeparted(), tripInfoOutput(), MSStageTranship::tripInfoOutput(), and MSStageWalking::tripInfoOutput().
|
protectedinherited |
the next edge to reach by getting transported
Definition at line 306 of file MSStage.h.
Referenced by abort(), clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStage::equals(), getAngle(), MSStageWaiting::getAngle(), MSStage::getDestination(), MSStageTrip::getDestinationDescription(), MSStage::getEdge(), getEdge(), MSStage::getFromEdge(), getPosition(), MSStageWaiting::getPosition(), isWaitingFor(), MSStageWaiting::loadState(), MSStageWaiting::proceed(), MSStageTrip::routeOutput(), MSStageTrip::setArrived(), and MSStage::setDestination().
|
protectedinherited |
the stop to reach by getting transported (if any)
Definition at line 309 of file MSStage.h.
Referenced by abort(), canLeaveVehicle(), clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), MSStage::equals(), MSStageDriving::BookReservation::execute(), MSStageWaiting::getAngle(), MSStageTrip::getDestinationDescription(), MSStage::getDestinationStop(), isWaitingFor(), MSStageWaiting::loadState(), MSStageTranship::moveToNextEdge(), MSStageWalking::moveToNextEdge(), MSStageWaiting::proceed(), registerWaiting(), MSStageTrip::reroute(), routeOutput(), MSStageTranship::routeOutput(), MSStageTrip::routeOutput(), MSStageWaiting::routeOutput(), MSStageWalking::routeOutput(), and MSStage::setDestination().
|
protectedinherited |
The id of the group of transportables traveling together.
Definition at line 327 of file MSStage.h.
Referenced by abort(), clone(), MSStageTrip::clone(), MSStage::equals(), MSStageDriving::BookReservation::execute(), MSStage::getGroup(), registerWaiting(), MSStageTrip::reroute(), and MSStageTrip::routeOutput().
|
protected |
Definition at line 234 of file MSStageDriving.h.
Referenced by clone(), getIntendedDepart(), getStageSummary(), and routeOutput().
|
protected |
Definition at line 233 of file MSStageDriving.h.
Referenced by clone(), equals(), getIntendedVehicleID(), getStageSummary(), and routeOutput().
|
protected |
the lines to choose from
Definition at line 211 of file MSStageDriving.h.
Referenced by clone(), equals(), getLines(), getStageDescription(), getStageSummary(), getWaitingDescription(), isWaitingFor(), proceed(), and routeOutput().
|
privateinherited |
The key->value map.
Definition at line 135 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::hasParameter(), Parameterised::setParameter(), Parameterised::setParameters(), Parameterised::setParameters(), Parameterised::setParametersStr(), Parameterised::unsetParameter(), and Parameterised::writeParams().
|
protected |
the origin edge
Definition at line 208 of file MSStageDriving.h.
Referenced by clone(), equals(), MSStageDriving::BookReservation::execute(), init(), proceed(), and setOrigin().
|
protected |
the stop at which this ride starts (or nullptr)
Definition at line 231 of file MSStageDriving.h.
Referenced by abort(), MSStageDriving::BookReservation::execute(), getAngle(), getOriginStop(), getWaitingDescription(), loadState(), proceed(), registerWaiting(), saveState(), and setOrigin().
|
protectedinherited |
Information on which parameter were set (mainly for vehroute output)
Definition at line 333 of file MSStage.h.
Referenced by MSStage::markSet(), and MSStage::wasSet().
|
protected |
Definition at line 235 of file MSStageDriving.h.
Referenced by init(), and registerWaiting().
|
protected |
Definition at line 229 of file MSStageDriving.h.
Referenced by getPosition(), loadState(), proceed(), registerWaiting(), and saveState().
|
protected |
While driving, this is the timeLoss of the vehicle when the ride started, after arrival this is the timeLoss which the vehicle accumulated during the ride.
Definition at line 223 of file MSStageDriving.h.
Referenced by getTimeLoss(), loadState(), saveState(), setArrived(), and setVehicle().
|
protectedinherited |
Definition at line 335 of file MSStage.h.
Referenced by MSStage::getTrip(), and MSStage::setTrip().
|
protectedinherited |
The type of this stage.
Definition at line 324 of file MSStage.h.
Referenced by MSStageWaiting::abort(), MSStageWaiting::clone(), MSStage::equals(), MSStageWaiting::getDuration(), MSStage::getStageType(), MSStageWaiting::routeOutput(), and MSStageWaiting::tripInfoOutput().
|
protected |
The taken vehicle.
Definition at line 214 of file MSStageDriving.h.
Referenced by abort(), getAngle(), getDistance(), getEdge(), getEdgePos(), getLane(), getPosition(), getSpeed(), getVehicle(), isWaiting4Vehicle(), loadState(), proceed(), registerWaiting(), saveState(), setArrived(), setVehicle(), and tripInfoOutput().
|
protected |
Definition at line 221 of file MSStageDriving.h.
Referenced by getDistance(), loadState(), routeOutput(), saveState(), setArrived(), setVehicle(), and tripInfoOutput().
|
protected |
cached vehicle data for output after the vehicle has been removed
Definition at line 216 of file MSStageDriving.h.
Referenced by routeOutput(), setVehicle(), setVehicleID(), and tripInfoOutput().
|
protected |
Definition at line 217 of file MSStageDriving.h.
Referenced by setVehicle(), and tripInfoOutput().
|
protected |
Definition at line 218 of file MSStageDriving.h.
Referenced by getVehicleType(), and setVehicle().
|
protected |
Definition at line 220 of file MSStageDriving.h.
Referenced by setVehicle(), and tripInfoOutput().
|
protected |
Definition at line 228 of file MSStageDriving.h.
Referenced by abort(), getAngle(), getEdge(), getFromEdge(), getPosition(), getWaitingDescription(), loadState(), proceed(), and registerWaiting().
|
protected |
Definition at line 225 of file MSStageDriving.h.
Referenced by abort(), MSStageDriving::BookReservation::execute(), getAngle(), getEdgePos(), getPosition(), init(), loadState(), proceed(), registerWaiting(), saveState(), and setOrigin().
|
protected |
The time since which this person is waiting for a ride.
Definition at line 227 of file MSStageDriving.h.
Referenced by getDuration(), getWaitingTime(), getWaitingTime(), loadState(), proceed(), and saveState().
|
staticprotectedinherited |
the offset for computing positions when standing at an edge
Definition at line 338 of file MSStage.h.
Referenced by getPosition(), MSStageTrip::getPosition(), and MSStageWaiting::getPosition().