![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MSStageDriving.h>
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 |
double | getAngle (SUMOTime now) const |
returns the angle of the transportable | |
double | getArrivalPos () const |
return default value for undefined arrivalPos | |
SUMOTime | getArrived () const |
get arrival time of 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. | |
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. | |
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 | |
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 |
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 |
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 (SUMOTime now) const |
time spent waiting for a ride | |
bool | isWaiting4Vehicle () const |
Whether the person waits for a vehicle. | |
bool | isWaitingFor (const SUMOVehicle *vehicle) const |
Whether the person waits for the given vehicle. | |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. | |
void | loadState (MSTransportable *transportable, std::istringstream &state) |
Reconstructs the current state. | |
void | markSet (int what) |
MSStageDriving (const MSEdge *origin, const MSEdge *destination, MSStoppingPlace *toStop, const double arrivalPos, 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) |
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 | setDeparted (SUMOTime now) |
logs end of the step | |
void | setDestination (const MSEdge *newDestination, MSStoppingPlace *newDestStop) |
void | setOrigin (const MSEdge *origin) |
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 inner key/value map in map<string, string> format | |
void | setParametersMap (const Parameterised::Map ¶msMap) |
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" | |
virtual void | setSpeed (double) |
sets the walking speed (ignored in other stages) | |
void | setVehicle (SUMOVehicle *v) |
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" | |
Protected Attributes | |
double | myArrivalPos |
the position at which we want to arrive | |
SUMOTime | myArrived |
the time at which this stage ended | |
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) | |
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. | |
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 59 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 std::vector< std::string > & | lines, | ||
const std::string & | group = "" , |
||
const std::string & | intendedVeh = "" , |
||
SUMOTime | intendedDepart = -1 |
||
) |
constructor
Definition at line 48 of file MSStageDriving.cpp.
|
virtual |
destructor
Definition at line 76 of file MSStageDriving.cpp.
|
private |
Invalidated copy constructor.
|
virtual |
abort this stage (TraCI)
Reimplemented from MSStage.
Definition at line 441 of file MSStageDriving.cpp.
References MSTransportableControl::abortWaitingForVehicle(), getArrivalPos(), MSNet::getContainerControl(), MSLane::getEdge(), SUMOTrafficObject::getEdge(), MSNet::getInstance(), SUMOTrafficObject::getLane(), getLines(), MSNet::getPersonControl(), MSTransportable::isPerson(), MSStage::myDestination, MSStage::myDestinationStop, MSStage::myGroup, 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 216 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 197 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
Referenced by GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEEntryExitDetector::isValid(), GNEInductionLoopDetector::isValid(), GNEInstantInductionLoopDetector::isValid(), GNELaneAreaDetector::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().
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 470 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, unspecifiedArrivalPos(), VEHPARS_ARRIVALPOS_SET, and SUMOVehicleParameter::wasSet().
Referenced by MSDevice_Transportable::anyLeavingAtStop(), and MSDevice_Transportable::notifyMove().
|
inherited |
Clears the parameter map.
Definition at line 120 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing().
|
virtual |
Implements MSStage.
Definition at line 70 of file MSStageDriving.cpp.
References MSStage::myArrivalPos, MSStage::myDestination, MSStage::myDestinationStop, MSStage::myGroup, myIntendedDepart, myIntendedVehicleID, myLines, and myOrigin.
|
virtual |
returns the angle of the transportable
Implements MSStage.
Definition at line 147 of file MSStageDriving.cpp.
References MSVehicle::getAngle(), MSStage::getEdgeAngle(), MSGlobals::gLefthand, isWaiting4Vehicle(), M_PI, MSStage::myArrivalPos, MSStage::myArrived, MSStage::myDestination, myVehicle, myWaitingEdge, and myWaitingPos.
|
virtual |
return default value for undefined arrivalPos
Reimplemented from MSStage.
Definition at line 391 of file MSStageDriving.cpp.
References MSStage::getDestination(), MSEdge::getLength(), MSStage::myArrivalPos, and unspecifiedArrivalPos().
Referenced by abort(), canLeaveVehicle(), registerWaiting(), MSTransportable::rerouteParkingArea(), and tripInfoOutput().
|
inherited |
get arrival time of stage
Definition at line 122 of file MSStage.cpp.
References MSStage::myArrived.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inherited |
get departure time of stage
Definition at line 117 of file MSStage.cpp.
References MSStage::myDeparted.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inherited |
returns the destination edge
Definition at line 61 of file MSStage.cpp.
References MSStage::myDestination.
Referenced by MSPerson::checkAccess(), getArrivalPos(), MSStage::getEdges(), getEdges(), getStageSummary(), MSStageTranship::getStageSummary(), MSStageWaiting::getStageSummary(), MSPModel_Striping::moveInDirectionOnLane(), MSRouteHandler::parseWalkPositions(), MSTransportable::proceed(), registerWaiting(), MSTransportable::rerouteParkingArea(), routeOutput(), MSStageWaiting::routeOutput(), and MSStageTrip::setArrived().
|
inlineinherited |
returns the destination stop (if any)
Definition at line 80 of file MSStage.h.
References MSStage::myDestinationStop.
Referenced by MSPerson::checkAccess(), GUIPerson::getDestinationStopID(), LIBSUMO_NAMESPACE::Person::getStage(), getStageSummary(), MSStageTranship::getStageSummary(), MSStageWaiting::getStageSummary(), loadState(), MSPModel_Striping::moveInDirectionOnLane(), MSDevice_Transportable::notifyMove(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), MSRouteHandler::parseWalkPositions(), proceed(), MSTransportable::proceed(), registerWaiting(), MSTransportable::rerouteParkingArea(), and MSStageTrip::setArrived().
|
virtual |
Return the movement directon on the edge.
Reimplemented from MSStage.
Definition at line 113 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 164 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 81 of file Parameterised.cpp.
References Parameterised::myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.
Referenced by MSDevice_Battery::buildVehicleDevices(), 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(), and MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus().
|
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 99 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.
Referenced by EnergyParams::EnergyParams().
|
virtual |
Returns the current edge.
Reimplemented from MSStage.
Definition at line 80 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 149 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 101 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 138 of file MSStage.cpp.
References MSStage::getLanePosition(), and MSEdge::getLanes().
Referenced by getPosition(), MSStageTrip::getPosition(), and MSStageWaiting::getPosition().
|
virtual |
the edges of the current stage
Reimplemented from MSStage.
Definition at line 383 of file MSStageDriving.cpp.
References MSStage::getDestination(), and getFromEdge().
|
virtual |
Reimplemented from MSStage.
Definition at line 95 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 122 of file MSStage.h.
References MSStage::myGroup.
|
inline |
Definition at line 159 of file MSStageDriving.h.
References myIntendedDepart.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inline |
Definition at line 155 of file MSStageDriving.h.
References myIntendedVehicleID.
Referenced by GUIBusStop::getParameterWindow(), and LIBSUMO_NAMESPACE::Person::getStage().
|
virtual |
Returns the current lane (if applicable)
Reimplemented from MSStage.
Definition at line 124 of file MSStageDriving.cpp.
References SUMOTrafficObject::getLane(), and myVehicle.
get position on lane at length at with orthogonal offset
Definition at line 143 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 151 of file MSStageDriving.h.
References myLines.
Referenced by abort(), 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 90 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 71 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice_Battery::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSRailSignal::constraintsAllow(), GUINet::createTLWrapper(), GNEEdge::drawEdgeName(), GNEGenericData::drawFilteredAttribute(), GNEConnection::drawGL(), 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_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSBaseVehicle::getPrefixedParameter(), GUIBaseVehicle::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), MSDevice::getStringParam(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSRailSignalConstraint::getVehID(), MSTriggeredRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), PushButtonLogic::init(), SigmoidLogic::init(), SUMOVTypeParameter::initRailVisualizationParameters(), MSAbstractLaneChangeModel::laneChangeOutput(), NWWriter_OpenDrive::mapmatchRoadObjects(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), 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 126 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBEdge::addLane(), 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(), 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(), MSBaseVehicle::initTransientModelParams(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), 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 132 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEContainerStop::getAttribute(), GNEEntryExitDetector::getAttribute(), GNEInductionLoopDetector::getAttribute(), GNEInstantInductionLoopDetector::getAttribute(), GNELaneAreaDetector::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(), and GNEPoly::getAttribute().
returns the position of the transportable
Implements MSStage.
Definition at line 130 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 MSPerson::MSPersonStage_Walking.
|
virtual |
the speed of the transportable
Reimplemented from MSStage.
Definition at line 377 of file MSStageDriving.cpp.
References SUMOTrafficObject::getSpeed(), and myVehicle.
|
virtual |
return (brief) string representation of the current stage
Implements MSStage.
Definition at line 174 of file MSStageDriving.cpp.
References isWaiting4Vehicle(), joinToString(), and myLines.
|
virtual |
return string summary of the current stage
Implements MSStage.
Definition at line 180 of file MSStageDriving.cpp.
References MSStage::getDestination(), MSStage::getDestinationStop(), Named::getID(), MSStoppingPlace::getMyName(), isWaiting4Vehicle(), joinToString(), myIntendedDepart, myIntendedVehicleID, myLines, and time2string().
|
inlineinherited |
Definition at line 117 of file MSStage.h.
References MSStage::myType.
Referenced by MSPerson::checkAccess(), LIBSUMO_NAMESPACE::Person::getStage(), loadState(), proceed(), MSTransportable::proceed(), MSTransportable::rerouteParkingArea(), routeOutput(), and MSStageTrip::routeOutput().
|
inlinevirtual |
Current vehicle in which the transportable is driving (or nullptr)
Reimplemented from MSStage.
Definition at line 135 of file MSStageDriving.h.
References myVehicle.
Referenced by MSTransportable::rerouteParkingArea(), and MSTransportable::~MSTransportable().
|
inline |
Definition at line 163 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 460 of file MSStageDriving.cpp.
References Named::getID(), isWaiting4Vehicle(), joinToString(), MSStage::myDestinationStop, myLines, and myWaitingEdge.
Referenced by MSTransportableControl::abortAnyWaitingForVehicle().
time spent waiting for a ride
Reimplemented from MSStage.
Definition at line 371 of file MSStageDriving.cpp.
References isWaiting4Vehicle(), and myWaitingSince.
|
staticprivateinherited |
check if given string can be parsed to a parameter of type "key=value"
Definition at line 251 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 365 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 352 of file MSStageDriving.cpp.
References MSDevice_Taxi::compatibleLine(), Named::getID(), SUMOTrafficObject::getParameter(), SUMOVehicleParameter::line, MSStage::myDestination, MSStage::myDestinationStop, myLines, SUMOVehicle::stopsAt(), and SUMOVehicle::stopsAtEdge().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 65 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::append(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), GUINet::createTLWrapper(), 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_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), SUMOVTypeParameter::initRailVisualizationParameters(), MSEdge::insertVehicle(), NIImporter_OpenStreetMap::load(), NWWriter_OpenDrive::mapmatchRoadObjects(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), 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 |
Reconstructs the current state.
Reimplemented from MSStage.
Definition at line 515 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(), MSStoppingPlace::getWaitingPositionOnLane(), MSStoppingPlace::getWaitPosition(), Position::INVALID, MSStage::myArrived, MSStage::myDeparted, myOriginStop, myStopWaitPos, myTimeLoss, myVehicle, myVehicleDistance, myWaitingEdge, myWaitingPos, myWaitingSince, registerWaiting(), setVehicle(), SIMSTEP, and TRIP.
|
inlineinherited |
Definition at line 228 of file MSStage.h.
References MSStage::myParametersSet.
Referenced by MSStageTrip::setArrived().
|
privatedelete |
Invalidated assignment operator.
|
virtual |
proceeds to this stage
Implements MSStage.
Definition at line 196 of file MSStageDriving.cpp.
References MSInsertionControl::add(), SUMOVehicle::addTransportable(), CONTAINER_TRIGGERED, SUMOVehicleParameter::departProcedure, MSStoppingPlace::getAccessPos(), MSStage::getDestinationStop(), MSLane::getEdge(), MSStage::getEdge(), MSStage::getEdgePos(), Named::getID(), MSNet::getInsertionControl(), MSStoppingPlace::getLane(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), MSStage::getOriginStop(), MSTransportable::getParameter(), SUMOTrafficObject::getParameter(), MSStage::getStageType(), MSVehicleControl::getVehicle(), MSNet::getVehicleControl(), MSStoppingPlace::getWaitingPositionOnLane(), MSEdge::getWaitingVehicle(), MSStoppingPlace::getWaitPosition(), MSVehicleControl::handleTriggeredDepart(), SUMOVehicle::hasDeparted(), Position::INVALID, MSTransportable::isPerson(), myLines, myOrigin, myOriginStop, myStopWaitPos, myVehicle, myWaitingEdge, myWaitingPos, myWaitingSince, registerWaiting(), MSStoppingPlace::removeTransportable(), setVehicle(), TRIGGERED, and TRIP.
|
private |
brief register waiting person (on proceed or loadState)
Definition at line 255 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, MSTransportable::isPerson(), MSDevice_Taxi::isReservation(), MSStage::myGroup, myOriginStop, myStopWaitPos, myWaitingEdge, myWaitingPos, and SVC_TAXI.
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 315 of file MSStageDriving.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), MSStage::getDestination(), MSStage::getEdge(), MSStoppingPlace::getElement(), getFromEdge(), Named::getID(), MSStoppingPlace::getMyName(), OptionsCont::getOptions(), MSStage::getStageType(), MSStage::myArrivalPos, MSStage::myArrived, MSStage::myDeparted, MSStage::myDestinationStop, myIntendedDepart, myIntendedVehicleID, myLines, myVehicleDistance, myVehicleID, OutputDevice::openTag(), SUMO_ATTR_ARRIVALPOS, 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(), unspecifiedArrivalPos(), WAITING_FOR_DEPART, and OutputDevice::writeAttr().
|
virtual |
Saves the current state into the given stream.
Reimplemented from MSStage.
Definition at line 505 of file MSStageDriving.cpp.
References Named::getID(), MSStage::myArrived, MSStage::myDeparted, myTimeLoss, myVehicle, myVehicleDistance, and myWaitingSince.
|
inlineinherited |
Definition at line 93 of file MSStage.h.
References MSStage::myArrivalPos.
Referenced by MSTransportable::rerouteParkingArea(), and MSStageTrip::setArrived().
|
virtual |
marks arrival time and records driven distance
Reimplemented from MSStage.
Definition at line 401 of file MSStageDriving.cpp.
References SUMOVehicle::getArrivalPos(), SUMOVehicle::getOdometer(), SUMOTrafficObject::getPositionOnLane(), SUMOVehicle::getTimeLoss(), MSStage::myArrivalPos, myTimeLoss, myVehicle, myVehicleDistance, and MSStage::setArrived().
|
inherited |
|
inherited |
Definition at line 155 of file MSStage.cpp.
References MSStoppingPlace::getBeginLanePosition(), MSStoppingPlace::getEndLanePosition(), MSStage::myArrivalPos, MSStage::myDestination, and MSStage::myDestinationStop.
Referenced by MSTransportable::rerouteParkingArea().
|
inline |
change origin for parking area rerouting
Definition at line 168 of file MSStageDriving.h.
References myOrigin.
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 NLHandler::addDistrict(), RONetHandler::addParam(), SUMORouteHandler::addParam(), ShapeHandler::addPOI(), NBEdge::append(), NBOwnTLDef::buildNemaPhases(), MSParkingArea::enter(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), MSStateHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), MSDevice_Bluelight::notifyMove(), GNEVType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSRailCrossing::setParameter(), MSActuatedTrafficLightLogic::setParameter(), MSRailSignal::setParameter(), MSSimpleTrafficLightLogic::setParameter(), NEMALogic::setParameter(), LIBSUMO_NAMESPACE::Simulation::setParameter(), Parameterised::setParameters(), Parameterised::setParametersMap(), 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 148 of file Parameterised.cpp.
References Parameterised::getParametersMap(), Parameterised::myMap, and Parameterised::setParameter().
|
inherited |
set the inner key/value map in map<string, string> format
Definition at line 159 of file Parameterised.cpp.
References Parameterised::myMap, and Parameterised::setParameter().
Referenced by GNESingleParametersDialog::onCmdAccept().
|
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 170 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(), GNEEntryExitDetector::setAttribute(), GNEInductionLoopDetector::setAttribute(), GNEInstantInductionLoopDetector::setAttribute(), GNELaneAreaDetector::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(), and GNEPoly::setAttribute().
|
inlinevirtualinherited |
sets the walking speed (ignored in other stages)
Reimplemented in MSPerson::MSPersonStage_Walking.
void MSStageDriving::setVehicle | ( | SUMOVehicle * | v | ) |
Definition at line 422 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(), and MSDevice_Transportable::~MSDevice_Transportable().
|
virtual |
Called on writing tripinfo output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implements MSStage.
Definition at line 294 of file MSStageDriving.cpp.
References MSDevice_Tripinfo::addRideTransportData(), OutputDevice::closeTag(), getArrivalPos(), MSNet::getCurrentTimeStep(), getDistance(), MSNet::getInstance(), MSTransportable::isPerson(), MSStage::myArrived, MSStage::myDeparted, myTimeLoss, myVehicle, myVehicleDistance, myVehicleID, myVehicleLine, myVehicleVClass, myWaitingSince, OutputDevice::openTag(), 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(), NIImporter_OpenStreetMap::load(), GNEVType::setAttribute(), and LIBSUMO_NAMESPACE::TrafficLight::swapParameters().
bool MSStageDriving::unspecifiedArrivalPos | ( | ) | const |
Definition at line 396 of file MSStageDriving.cpp.
References MSStage::myArrivalPos.
Referenced by canLeaveVehicle(), getArrivalPos(), 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(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NLJunctionControlBuilder::closeTrafficLightLogic(), NBTrafficLightDefinition::compute(), NLDetectorBuilder::endE3Detector(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), and LIBSUMO_NAMESPACE::TrafficLight::swapConstraints().
|
inlineinherited |
Definition at line 224 of file MSStage.h.
References MSStage::myParametersSet.
Referenced by MSStageTrip::routeOutput(), and MSStageTrip::setArrived().
|
inherited |
write Params in the given outputdevice
Definition at line 185 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(), 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 position at which we want to arrive
Definition at line 241 of file MSStage.h.
Referenced by clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), getAngle(), MSStageWaiting::getAngle(), MSPerson::MSPersonStage_Walking::getArrivalPos(), MSStage::getArrivalPos(), getArrivalPos(), MSStageTranship::getArrivalPos(), MSStage::getEdgePos(), getEdgePos(), getPosition(), MSStageWaiting::getPosition(), MSPerson::MSPersonStage_Walking::MSPersonStage_Walking(), MSStageTranship::MSStageTranship(), routeOutput(), MSStageTrip::routeOutput(), MSStage::setArrivalPos(), setArrived(), MSStageTrip::setArrived(), MSStage::setDestination(), MSStageTranship::tripInfoOutput(), MSStageWaiting::tripInfoOutput(), and unspecifiedArrivalPos().
|
protectedinherited |
the time at which this stage ended
Definition at line 247 of file MSStage.h.
Referenced by getAngle(), MSStage::getArrived(), getDirection(), MSStageTranship::getDistance(), getEdge(), getEdgePos(), getPosition(), isWaiting4Vehicle(), loadState(), routeOutput(), MSStageTranship::routeOutput(), MSStageTrip::routeOutput(), MSStageWaiting::routeOutput(), saveState(), MSStage::setArrived(), tripInfoOutput(), MSStageTranship::tripInfoOutput(), and MSStageWaiting::tripInfoOutput().
|
protectedinherited |
the time at which this stage started
Definition at line 244 of file MSStage.h.
Referenced by MSStage::getDeparted(), MSStageTranship::getDistance(), loadState(), MSStageWaiting::loadState(), MSStageTranship::proceed(), MSStageWaiting::proceed(), routeOutput(), MSStageTranship::routeOutput(), MSStageWaiting::routeOutput(), saveState(), MSStageWaiting::saveState(), MSStage::setDeparted(), tripInfoOutput(), MSStageTranship::tripInfoOutput(), and MSStageWaiting::tripInfoOutput().
|
protectedinherited |
the next edge to reach by getting transported
Definition at line 235 of file MSStage.h.
Referenced by abort(), clone(), MSStageTrip::clone(), MSStageWaiting::clone(), getAngle(), MSStageWaiting::getAngle(), MSStage::getDestination(), MSStageTrip::getDestinationDescription(), MSStage::getEdge(), getEdge(), MSStage::getFromEdge(), getPosition(), MSStageWaiting::getPosition(), isWaitingFor(), MSStageWaiting::loadState(), MSStageTrip::routeOutput(), MSStageTrip::setArrived(), and MSStage::setDestination().
|
protectedinherited |
the stop to reach by getting transported (if any)
Definition at line 238 of file MSStage.h.
Referenced by abort(), canLeaveVehicle(), clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageTrip::getDestinationDescription(), MSStage::getDestinationStop(), getWaitingDescription(), isWaitingFor(), MSStageWaiting::loadState(), MSStageTranship::moveToNextEdge(), MSPerson::MSPersonStage_Access::MSPersonStage_Access(), MSStageWaiting::proceed(), routeOutput(), MSStageTranship::routeOutput(), MSStageTrip::routeOutput(), MSStageWaiting::routeOutput(), MSStageTrip::setArrived(), and MSStage::setDestination().
|
protectedinherited |
The id of the group of transportables traveling together.
Definition at line 253 of file MSStage.h.
Referenced by abort(), clone(), MSStageTrip::clone(), MSStage::getGroup(), registerWaiting(), MSStageTrip::routeOutput(), and MSStageTrip::setArrived().
|
protected |
Definition at line 211 of file MSStageDriving.h.
Referenced by clone(), getIntendedDepart(), getStageSummary(), and routeOutput().
|
protected |
Definition at line 210 of file MSStageDriving.h.
Referenced by clone(), getIntendedVehicleID(), getStageSummary(), and routeOutput().
|
protected |
the lines to choose from
Definition at line 188 of file MSStageDriving.h.
Referenced by clone(), getLines(), getStageDescription(), getStageSummary(), getWaitingDescription(), isWaitingFor(), proceed(), and routeOutput().
|
privateinherited |
The key->value map.
Definition at line 137 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getDoubles(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::knowsParameter(), Parameterised::setParameter(), Parameterised::setParameters(), Parameterised::setParametersMap(), Parameterised::setParametersStr(), Parameterised::unsetParameter(), and Parameterised::writeParams().
|
protected |
the origin edge
Definition at line 185 of file MSStageDriving.h.
Referenced by clone(), proceed(), and setOrigin().
|
protected |
the stop at which this ride starts (or nullptr)
Definition at line 208 of file MSStageDriving.h.
Referenced by getOriginStop(), loadState(), proceed(), and registerWaiting().
|
protectedinherited |
Information on which parameter were set (mainly for vehroute output)
Definition at line 256 of file MSStage.h.
Referenced by MSStage::markSet(), and MSStage::wasSet().
|
protected |
Definition at line 206 of file MSStageDriving.h.
Referenced by getPosition(), loadState(), proceed(), and registerWaiting().
|
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 200 of file MSStageDriving.h.
Referenced by loadState(), saveState(), setArrived(), setVehicle(), and tripInfoOutput().
|
protectedinherited |
The type of this stage.
Definition at line 250 of file MSStage.h.
Referenced by MSStageWaiting::abort(), MSStageWaiting::clone(), MSStage::getStageType(), MSStageWaiting::routeOutput(), and MSStageWaiting::tripInfoOutput().
|
protected |
The taken vehicle.
Definition at line 191 of file MSStageDriving.h.
Referenced by abort(), getAngle(), getDistance(), getEdge(), getEdgePos(), getLane(), getPosition(), getSpeed(), getVehicle(), isWaiting4Vehicle(), loadState(), proceed(), saveState(), setArrived(), setVehicle(), and tripInfoOutput().
|
protected |
Definition at line 198 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 193 of file MSStageDriving.h.
Referenced by routeOutput(), setVehicle(), and tripInfoOutput().
|
protected |
Definition at line 194 of file MSStageDriving.h.
Referenced by setVehicle(), and tripInfoOutput().
|
protected |
Definition at line 195 of file MSStageDriving.h.
Referenced by getVehicleType(), and setVehicle().
|
protected |
Definition at line 197 of file MSStageDriving.h.
Referenced by setVehicle(), and tripInfoOutput().
|
protected |
Definition at line 205 of file MSStageDriving.h.
Referenced by abort(), getAngle(), getEdge(), getFromEdge(), getPosition(), getWaitingDescription(), loadState(), proceed(), and registerWaiting().
|
protected |
Definition at line 202 of file MSStageDriving.h.
Referenced by abort(), getAngle(), getEdgePos(), getPosition(), loadState(), proceed(), and registerWaiting().
|
protected |
The time since which this person is waiting for a ride.
Definition at line 204 of file MSStageDriving.h.
Referenced by getWaitingTime(), loadState(), proceed(), saveState(), and tripInfoOutput().
|
staticprotectedinherited |
the offset for computing positions when standing at an edge
Definition at line 259 of file MSStage.h.
Referenced by getPosition(), MSStageTrip::getPosition(), and MSStageWaiting::getPosition().