Eclipse SUMO - Simulation of Urban MObility
SUMOVehicleParameter::Stop Struct Reference

Definition of vehicle stop (position and duration) More...

#include <SUMOVehicleParameter.h>

Inheritance diagram for SUMOVehicleParameter::Stop:
[legend]
Collaboration diagram for SUMOVehicleParameter::Stop:
[legend]

Public Types

typedef std::map< std::string, std::string > Map
 parameters map More...
 

Public Member Functions

void clearParameter ()
 Clears the parameter map. More...
 
double getDouble (const std::string &key, const double defaultValue) const
 Returns the value for a given key converted to a double. More...
 
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. More...
 
int getFlags () const
 return flags as per Vehicle::getStops More...
 
virtual const std::string getParameter (const std::string &key, const std::string defaultValue="") const
 Returns the value for a given key. More...
 
const Parameterised::MapgetParametersMap () const
 Returns the inner key/value map. More...
 
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". More...
 
std::vector< std::string > getStoppingPlaceIDs () const
 return list of stopping place ids More...
 
std::vector< std::string > getTriggers () const
 write trigger attribute More...
 
bool hasParameter (const std::string &key) const
 Returns whether the parameter is set. More...
 
void mergeParameters (const Parameterised::Map &mapArg, const std::string separator=" ", bool uniqueValues=true)
 Adds or appends all given parameters from the map. More...
 
virtual void setParameter (const std::string &key, const std::string &value)
 Sets a parameter. More...
 
void setParameters (const Parameterised &params)
 set the inner key/value map in map<string, string> format More...
 
void setParametersStr (const std::string &paramsString, const std::string kvsep="=", const std::string sep="|")
 set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN" More...
 
void unsetParameter (const std::string &key)
 Removes a parameter. More...
 
void updateParameters (const Parameterised::Map &mapArg)
 Adds or updates all given parameters from the map. More...
 
void write (OutputDevice &dev, const bool close=true, const bool writeTagAndParents=true) const
 Writes the stop as XML. More...
 
void writeParams (OutputDevice &device) const
 write Params in the given outputdevice More...
 
virtual ~Stop ()
 Destructor. More...
 

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) More...
 
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" More...
 

Data Fields

std::vector< std::tuple< std::string, double, double > > accessPos
 lanes and positions connected to this stop (only used by duarouter where Stop is used to store stopping places) More...
 
std::string actType
 act Type (only used by Persons) (used by netedit) More...
 
SUMOTime arrival = -1
 The (expected) time at which the vehicle reaches the stop. More...
 
std::set< std::string > awaitedContainers
 IDs of containers the vehicle has to wait for until departing. More...
 
std::set< std::string > awaitedPersons
 IDs of persons the vehicle has to wait for until departing. More...
 
std::string busstop
 (Optional) bus stop if one is assigned to the stop More...
 
std::string chargingStation
 (Optional) charging station if one is assigned to the stop More...
 
bool collision = false
 Whether this stop was triggered by a collision. More...
 
std::string containerstop
 (Optional) container stop if one is assigned to the stop More...
 
bool containerTriggered = false
 whether an arriving container lets the vehicle continue More...
 
SUMOTime duration = -1
 The stopping duration. More...
 
std::string edge
 The edge to stop at. More...
 
SUMOTime ended = -1
 the time at which this stop was ended More...
 
double endPos = 0.
 The stopping position end. More...
 
SUMOTime extension = -1
 The maximum time extension for boarding / loading. More...
 
bool friendlyPos = false
 enable or disable friendly position (used by netedit) More...
 
int index = 0
 at which position in the stops list More...
 
std::string join
 the id of the vehicle (train portion) to which this vehicle shall be joined More...
 
bool joinTriggered = false
 whether an joined vehicle lets this vehicle continue More...
 
SUMOTime jump = -1
 transfer time if there shall be a jump from this stop to the next route edge More...
 
std::string lane
 The lane to stop at. More...
 
std::string line
 the new line id of the trip within a cyclical public transport route More...
 
bool onDemand = false
 whether the stop may be skipped More...
 
std::string overheadWireSegment
 (Optional) overhead line segment if one is assigned to the stop More...
 
int parametersSet = 0
 Information for the output which parameter were set. More...
 
ParkingType parking = ParkingType::ONROAD
 whether the vehicle is removed from the net while stopping More...
 
std::string parkingarea
 (Optional) parking area if one is assigned to the stop More...
 
std::set< std::string > permitted
 IDs of persons or containers that may board/load at this stop. More...
 
double posLat = INVALID_DOUBLE
 the lateral offset when stopping More...
 
double speed = 0.
 the speed at which this stop counts as reached (waypoint mode) More...
 
std::string split
 the id of the vehicle (train portion) that splits of upon reaching this stop More...
 
SUMOTime started = -1
 the time at which this stop was reached More...
 
double startPos = 0.
 The stopping position start. More...
 
bool triggered = false
 whether an arriving person lets the vehicle continue More...
 
std::string tripId
 id of the trip within a cyclical public transport route More...
 
SUMOTime until = -1
 The time at which the vehicle may continue its journey. More...
 
SUMOTime waitUntil = -1
 The earliest pickup time for a taxi stop. More...
 

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" More...
 

Private Attributes

Parameterised::Map myMap
 The key->value map. More...
 

Detailed Description

Definition of vehicle stop (position and duration)

Definition at line 345 of file SUMOVehicleParameter.h.

Member Typedef Documentation

◆ Map

typedef std::map<std::string, std::string> Parameterised::Map
inherited

parameters map

Definition at line 45 of file Parameterised.h.

Constructor & Destructor Documentation

◆ ~Stop()

virtual SUMOVehicleParameter::Stop::~Stop ( )
inlinevirtual

Destructor.

Definition at line 348 of file SUMOVehicleParameter.h.

Member Function Documentation

◆ areAttributesValid()

bool Parameterised::areAttributesValid ( const std::string &  value,
bool  report = false,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
staticinherited

check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas)

Definition at line 219 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.

Referenced by GNEFrameAttributeModules::GenericDataAttributes::areAttributesValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), and GNETAZRelData::isValid().

Here is the caller graph for this function:

◆ areParametersValid()

bool Parameterised::areParametersValid ( const std::string &  value,
bool  report = false,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
staticinherited

◆ clearParameter()

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 139 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NLHandler::beginEdgeParsing(), and GNESingleParametersDialog::onCmdAccept().

Here is the caller graph for this function:

◆ getDouble()

double Parameterised::getDouble ( const std::string &  key,
const double  defaultValue 
) const
inherited

◆ getDoubles()

std::vector< double > Parameterised::getDoubles ( const std::string &  key,
std::vector< double >  defaultValue = std::vector<double>() 
) const
inherited

Returns the value for a given key converted to a list of doubles.

Parameters
[in]keyThe key to ask for
[in]defaultValueThe default value to return if no value is stored under the key
Returns
The value stored under the key

Definition at line 118 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.

Referenced by EnergyParams::EnergyParams().

Here is the caller graph for this function:

◆ getFlags()

int SUMOVehicleParameter::Stop::getFlags ( ) const

return flags as per Vehicle::getStops

Definition at line 767 of file SUMOVehicleParameter.cpp.

References OFFROAD.

Referenced by libsumo::Helper::buildStopData(), MSStop::getStateFlagsOld(), and LIBSUMO_NAMESPACE::Vehicle::setStopParameter().

Here is the caller graph for this function:

◆ getParameter()

const std::string Parameterised::getParameter ( const std::string &  key,
const std::string  defaultValue = "" 
) const
virtualinherited

Returns the value for a given key.

Parameters
[in]keyThe key to ask for
[in]defaultValueThe default value to return if no value is stored under the key
Returns
The value stored under the key

Reimplemented in NEMALogic, MSSimpleTrafficLightLogic, and MSActuatedTrafficLightLogic.

Definition at line 90 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSPModel_JuPedSim::add(), NBRailwayTopologyAnalyzer::addBidiEdge(), NBEdge::addRestrictedLane(), FareModul::addStop(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSVehicleType::check(), MSRailSignal::constraintsAllow(), GUINet::createTLWrapper(), GNEEdge::drawEdgeName(), GNEConnection::drawEdgeValues(), GNEGenericData::drawFilteredAttribute(), GUIEdge::drawGL(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), 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(), MSStageDriving::init(), PushButtonLogic::init(), SigmoidLogic::init(), SUMOVTypeParameter::initRailVisualizationParameters(), NIImporter_OpenStreetMap::insertNodeChecking(), MSAbstractLaneChangeModel::laneChangeOutput(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), MSVehicle::slowDownForSchedule(), NBEdgeCont::splitAt(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), NWWriter_DlrNavteq::writeLinksUnsplitted(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPOI(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().

◆ getParametersMap()

const Parameterised::Map & Parameterised::getParametersMap ( ) const
inherited

Returns the inner key/value map.

Definition at line 145 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::addCrossing(), NBEdge::addLane(), NBEdge::append(), LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), NLDetectorBuilder::endE3Detector(), GNEAccess::getACParametersMap(), GNECalibrator::getACParametersMap(), GNEDetector::getACParametersMap(), GNEMultiEntryExitDetector::getACParametersMap(), GNEOverheadWire::getACParametersMap(), GNEParkingSpace::getACParametersMap(), GNERerouter::getACParametersMap(), GNERouteProbe::getACParametersMap(), GNEStoppingPlace::getACParametersMap(), GNETAZ::getACParametersMap(), GNEVaporizer::getACParametersMap(), GNEVariableSpeedSign::getACParametersMap(), GNEDataInterval::getACParametersMap(), GNEDataSet::getACParametersMap(), GNEGenericData::getACParametersMap(), GNEContainer::getACParametersMap(), GNEPerson::getACParametersMap(), GNEPersonTrip::getACParametersMap(), GNERide::getACParametersMap(), GNERoute::getACParametersMap(), GNEStop::getACParametersMap(), GNEStopPlan::getACParametersMap(), GNETranship::getACParametersMap(), GNETransport::getACParametersMap(), GNEVehicle::getACParametersMap(), GNEVType::getACParametersMap(), GNEWalk::getACParametersMap(), GNEConnection::getACParametersMap(), GNECrossing::getACParametersMap(), GNEEdge::getACParametersMap(), GNEEdgeType::getACParametersMap(), GNEJunction::getACParametersMap(), GNELane::getACParametersMap(), GNELaneType::getACParametersMap(), GNEPOI::getACParametersMap(), GNEPoly::getACParametersMap(), MSRailSignalConstraint_Predecessor::getDescription(), NWWriter_OpenDrive::getDividerType(), GUILane::getParameterWindow(), GNESingleParametersDialog::GNESingleParametersDialog(), MSRailCrossing::init(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), MSPModel_JuPedSim::initialize(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), GUIParameterTableWindow::numParams(), GNESingleParametersDialog::onCmdReset(), GNEVType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), Parameterised::setParameters(), LIBSUMO_NAMESPACE::TrafficLight::swapConstraints(), GNEEdgeData::writeGenericData(), GNEEdgeRelData::writeGenericData(), and GNETAZRelData::writeGenericData().

◆ getParametersStr()

std::string Parameterised::getParametersStr ( const std::string  kvsep = "=",
const std::string  sep = "|" 
) const
inherited

Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".

Definition at line 151 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEContainerStop::getAttribute(), 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().

Here is the caller graph for this function:

◆ getStoppingPlaceIDs()

std::vector< std::string > SUMOVehicleParameter::Stop::getStoppingPlaceIDs ( ) const

return list of stopping place ids

Definition at line 322 of file SUMOVehicleParameter.cpp.

◆ getTriggers()

std::vector< std::string > SUMOVehicleParameter::Stop::getTriggers ( ) const

write trigger attribute

Definition at line 752 of file SUMOVehicleParameter.cpp.

References SUMO_ATTR_JOIN, SUMO_TAG_CONTAINER, SUMO_TAG_PERSON, and toString().

Referenced by LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), and write().

Here is the caller graph for this function:

◆ hasParameter()

bool Parameterised::hasParameter ( const std::string &  key) const
inherited

Returns whether the parameter is set.

Parameters
[in]keyThe key to ask for
Returns
Whether the key is known

Definition at line 84 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSStageWalking::activateEntryReminders(), NBEdge::append(), MSVehicleType::build(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), GUINet::createTLWrapper(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), NWWriter_DlrNavteq::getBrunnelType(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), MSStageDriving::init(), SUMOVTypeParameter::initRailVisualizationParameters(), MSEdge::insertVehicle(), NIImporter_OpenStreetMap::load(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSVehicle::slowDownForSchedule(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().

Here is the caller graph for this function:

◆ isParameterValid()

bool Parameterised::isParameterValid ( const std::string &  value,
const std::string &  kvsep,
const std::string &  sep 
)
staticprivateinherited

check if given string can be parsed to a parameter of type "key=value"

Definition at line 254 of file Parameterised.cpp.

References StringTokenizer::getVector(), and SUMOXMLDefinitions::isValidParameterKey().

Referenced by Parameterised::areAttributesValid(), and Parameterised::areParametersValid().

Here is the caller graph for this function:

◆ mergeParameters()

void Parameterised::mergeParameters ( const Parameterised::Map mapArg,
const std::string  separator = " ",
bool  uniqueValues = true 
)
inherited

Adds or appends all given parameters from the map.

Parameters
[in]mapArgThe keys/values to insert

Definition at line 65 of file Parameterised.cpp.

References Parameterised::getParameter(), Parameterised::hasParameter(), and Parameterised::setParameter().

Referenced by NBEdge::append().

Here is the caller graph for this function:

◆ setParameter()

void Parameterised::setParameter ( const std::string &  key,
const std::string &  value 
)
virtualinherited

Sets a parameter.

Parameters
[in]keyThe parameter's name
[in]valueThe parameter's value

Reimplemented in NEMALogic, MSSimpleTrafficLightLogic, MSRailSignal, MSActuatedTrafficLightLogic, and MSRailCrossing.

Definition at line 45 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NBRailwayTopologyAnalyzer::addBidiEdge(), NLHandler::addDistrict(), RONetHandler::addParam(), ShapeHandler::addPOI(), NBOwnTLDef::buildNemaPhases(), MSParkingArea::enter(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSStateHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), GNESingleParametersDialog::onCmdAccept(), NBRailwayTopologyAnalyzer::reverseEdges(), GNEVType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSRailCrossing::setParameter(), MSActuatedTrafficLightLogic::setParameter(), MSRailSignal::setParameter(), MSSimpleTrafficLightLogic::setParameter(), NEMALogic::setParameter(), LIBSUMO_NAMESPACE::Simulation::setParameter(), Parameterised::setParametersStr(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), Parameterised::updateParameters(), NWWriter_OpenDrive::writeNetwork(), and NIImporter_OpenDrive::writeRoadObjects().

Here is the caller graph for this function:

◆ setParameters()

void Parameterised::setParameters ( const Parameterised params)
inherited

set the inner key/value map in map<string, string> format

Definition at line 167 of file Parameterised.cpp.

References Parameterised::getParametersMap(), and Parameterised::myMap.

Referenced by MSStageDriving::clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), and MSStageTrip::setArrived().

Here is the caller graph for this function:

◆ setParametersStr()

void Parameterised::setParametersStr ( const std::string &  paramsString,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
inherited

set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"

Parameters
[in]paramsStringA serialized key-value map
[in]kvsepThe separater between key and value
[in]sepThe separater between map entries

Definition at line 173 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::myMap, and Parameterised::setParameter().

Referenced by MSDevice_Taxi::initDispatch(), GNEAccess::setAttribute(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEContainerStop::setAttribute(), 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().

Here is the caller graph for this function:

◆ unsetParameter()

void Parameterised::unsetParameter ( const std::string &  key)
inherited

Removes a parameter.

Parameters
[in]keyThe 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().

Here is the caller graph for this function:

◆ updateParameters()

void Parameterised::updateParameters ( const Parameterised::Map mapArg)
inherited

◆ write()

void SUMOVehicleParameter::Stop::write ( OutputDevice dev,
const bool  close = true,
const bool  writeTagAndParents = true 
) const

Writes the stop as XML.

Parameters
[in,out]devThe device to write into
Exceptions
IOErrornot yet implemented

Definition at line 214 of file SUMOVehicleParameter.cpp.

References actType, arrival, awaitedContainers, awaitedPersons, busstop, chargingStation, OutputDevice::closeTag(), collision, containerstop, duration, edge, ended, endPos, extension, friendlyPos, getTriggers(), INVALID_DOUBLE, join, jump, lane, line, onDemand, OutputDevice::openTag(), parametersSet, parking, parkingarea, permitted, posLat, speed, split, started, startPos, STOP_ARRIVAL_SET, STOP_DURATION_SET, STOP_END_SET, STOP_ENDED_SET, STOP_EXPECTED_CONTAINERS_SET, STOP_EXPECTED_SET, STOP_EXTENSION_SET, STOP_JOIN_SET, STOP_JUMP_SET, STOP_LINE_SET, STOP_ONDEMAND_SET, STOP_PARKING_SET, STOP_PERMITTED_SET, STOP_POSLAT_SET, STOP_SPEED_SET, STOP_SPLIT_SET, STOP_START_SET, STOP_STARTED_SET, STOP_TRIGGER_SET, STOP_TRIP_ID_SET, STOP_UNTIL_SET, SUMO_ATTR_ACTTYPE, SUMO_ATTR_ARRIVAL, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_COLLISION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_DURATION, SUMO_ATTR_EDGE, SUMO_ATTR_ENDED, SUMO_ATTR_ENDPOS, SUMO_ATTR_EXPECTED, SUMO_ATTR_EXPECTED_CONTAINERS, SUMO_ATTR_EXTENSION, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_JOIN, SUMO_ATTR_JUMP, SUMO_ATTR_LANE, SUMO_ATTR_LINE, SUMO_ATTR_ONDEMAND, SUMO_ATTR_PARKING, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_PERMITTED, SUMO_ATTR_POSITION_LAT, SUMO_ATTR_SPEED, SUMO_ATTR_SPLIT, SUMO_ATTR_STARTED, SUMO_ATTR_STARTPOS, SUMO_ATTR_TRIGGERED, SUMO_ATTR_TRIP_ID, SUMO_ATTR_UNTIL, SUMO_TAG_STOP, time2string(), tripId, until, OutputDevice::writeAttr(), and Parameterised::writeParams().

Referenced by MSDevice_Vehroutes::notifyStopEnded(), MSStop::write(), and GNEStop::writeDemandElement().

Here is the caller graph for this function:

◆ writeParams()

void Parameterised::writeParams ( OutputDevice device) const
inherited

write Params in the given outputdevice

Definition at line 188 of file Parameterised.cpp.

References OutputDevice::closeTag(), StringUtils::escapeXML(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().

Referenced by MSStageWaiting::routeOutput(), MSTransportable::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), MSStop::write(), SUMOVTypeParameter::write(), 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().

Here is the caller graph for this function:

Field Documentation

◆ accessPos

std::vector<std::tuple<std::string, double, double> > SUMOVehicleParameter::Stop::accessPos

lanes and positions connected to this stop (only used by duarouter where Stop is used to store stopping places)

Definition at line 463 of file SUMOVehicleParameter.h.

Referenced by RONetHandler::parseAccess().

◆ actType

◆ arrival

◆ awaitedContainers

std::set<std::string> SUMOVehicleParameter::Stop::awaitedContainers

◆ awaitedPersons

std::set<std::string> SUMOVehicleParameter::Stop::awaitedPersons

◆ busstop

◆ chargingStation

◆ collision

bool SUMOVehicleParameter::Stop::collision = false

◆ containerstop

◆ containerTriggered

◆ duration

◆ edge

◆ ended

◆ endPos

double SUMOVehicleParameter::Stop::endPos = 0.

The stopping position end.

Definition at line 388 of file SUMOVehicleParameter.h.

Referenced by RORouteHandler::addRide(), MSRouteHandler::addStop(), RORouteHandler::addStop(), ROVehicle::addStop(), MSBaseVehicle::addStop(), MSBaseVehicle::addTraciStop(), MSRouteHandler::addVehicleStopsToImplicitRoute(), GNERouteHandler::buildStop(), libsumo::Helper::buildStopData(), libsumo::Helper::buildStopParameters(), GNEStop::drawGeometryPoints(), MSVehicle::estimateTimeToNextStop(), GNEStop::getAttribute(), GNEStop::getAttributeDouble(), GNEStop::getAttributePosition(), GNEStop::getDemandElementProblem(), MSStop::getDescription(), ROPerson::Stop::getDestinationPos(), GNEStop::getEndGeometryPositionOverLane(), MSStop::getEndPos(), GNEStop::getMoveOperation(), GNEStop::getPositionInView(), MSStop::getReachedThreshold(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), GNEStopFrame::getStopParameter(), MSEdge::getStopPosition(), ROEdge::getStopPosition(), MSLane::handleCollisionBetween(), MSVehicle::handleCollisionStop(), MSLane::handleIntermodalCollisionBetween(), MSIdling_Stop::idle(), MSIdling_TaxiStand::idle(), MSBaseVehicle::insertJump(), MSBaseVehicle::insertStop(), GNEStop::isDemandElementValid(), MSStop::isInRange(), MSLane::isInsertionSuccess(), MSBaseVehicle::isLineStop(), MSBaseVehicle::isStoppedInRange(), GNEStop::isValid(), MSDevice_StationFinder::notifyMove(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdToggleStop(), RONetHandler::parseAccess(), RouteHandler::parseStopParameters(), RONetHandler::parseStoppingPlace(), MSVehicle::planMoveInternal(), MSDevice_Taxi::prepareStop(), MSVehicle::processNextStop(), MEVehicle::processStop(), MSBaseVehicle::replaceParkingArea(), MSBaseVehicle::replaceStop(), GUIVehicle::rerouteDRTStop(), GNEStop::setAttribute(), GNEStop::setMoveShape(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), MSDevice_ToC::triggerMRM(), write(), and GNEStop::writeDemandElement().

◆ extension

◆ friendlyPos

bool SUMOVehicleParameter::Stop::friendlyPos = false

◆ index

◆ join

◆ joinTriggered

bool SUMOVehicleParameter::Stop::joinTriggered = false

◆ jump

◆ lane

◆ line

◆ myMap

◆ onDemand

◆ overheadWireSegment

std::string SUMOVehicleParameter::Stop::overheadWireSegment

◆ parametersSet

◆ parking

◆ parkingarea

◆ permitted

◆ posLat

◆ speed

◆ split

◆ started

◆ startPos

double SUMOVehicleParameter::Stop::startPos = 0.

The stopping position start.

Definition at line 385 of file SUMOVehicleParameter.h.

Referenced by MSRouteHandler::addStop(), RORouteHandler::addStop(), MSBaseVehicle::addStop(), libsumo::Helper::buildStopData(), libsumo::Helper::buildStopParameters(), GNEStop::drawGeometryPoints(), GNEStop::getAttribute(), GNEStop::getAttributeDouble(), GNEStop::getDemandElementProblem(), ROPerson::Stop::getDestinationPos(), GNEStop::getMoveOperation(), GNEStop::getPositionInView(), MSStop::getReachedThreshold(), GNEStop::getStartGeometryPositionOverLane(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), GNEStopFrame::getStopParameter(), MSEdge::getStopPosition(), ROEdge::getStopPosition(), MSLane::handleCollisionBetween(), MSLane::handleIntermodalCollisionBetween(), MSIdling_Stop::idle(), MSIdling_TaxiStand::idle(), GNEStop::isDemandElementValid(), MSStop::isInRange(), MSBaseVehicle::isLineStop(), MSBaseVehicle::isStoppedInRange(), GNEStop::isValid(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdToggleStop(), RONetHandler::parseAccess(), RouteHandler::parseStopParameters(), RONetHandler::parseStoppingPlace(), MSVehicle::planMoveInternal(), MSDevice_Taxi::prepareStop(), MSVehicle::processNextStop(), MSBaseVehicle::replaceParkingArea(), GUIVehicle::rerouteDRTStop(), LIBSUMO_NAMESPACE::Vehicle::resume(), GNEStop::setAttribute(), GNEStop::setMoveShape(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), MSDevice_ToC::triggerMRM(), MSVehicle::updateBestLanes(), write(), and GNEStop::writeDemandElement().

◆ triggered

◆ tripId

◆ until

◆ waitUntil

SUMOTime SUMOVehicleParameter::Stop::waitUntil = -1

The earliest pickup time for a taxi stop.

Definition at line 403 of file SUMOVehicleParameter.h.

Referenced by MSDevice_Taxi::prepareStop(), and MSVehicle::processNextStop().


The documentation for this struct was generated from the following files: