Eclipse SUMO - Simulation of Urban MObility
MSSOTLPolicy5DStimulus Class Reference

#include <MSSOTLPolicy5DStimulus.h>

Inheritance diagram for MSSOTLPolicy5DStimulus:
[legend]
Collaboration diagram for MSSOTLPolicy5DStimulus:
[legend]

Public Types

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

Public Member Functions

void clearParameter ()
 Clears the parameter map. More...
 
virtual double computeDesirability (double vehInMeasure, double vehOutMeasure)
 Computes stimulus function stimulus = cox * exp(-pow(pheroIn - offsetIn, 2)/divisor -pow(pheroOut - offsetOut, 2)/divisor);. More...
 
virtual double computeDesirability (double vehInMeasure, double vehOutMeasure, double vehInDispersionMeasure, double vehOutDispersionMeasure)
 Calculates the desirability of the policy. 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...
 
std::string getKeyPrefix ()
 
std::string getMessage ()
 
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...
 
double getStimCox ()
 
double getStimCoxExpDispersionIn ()
 
double getStimCoxExpDispersionOut ()
 
double getStimCoxExpIn ()
 
double getStimCoxExpOut ()
 
double getStimDivisorDispersionIn ()
 
double getStimDivisorDispersionOut ()
 
double getStimDivisorIn ()
 
double getStimDivisorOut ()
 
double getStimOffsetDispersionIn ()
 
double getStimOffsetDispersionOut ()
 
double getStimOffsetIn ()
 
double getStimOffsetOut ()
 
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...
 
 MSSOTLPolicy5DStimulus (std::string keyPrefix, const Parameterised::Map &parameters)
 
void setKeyPrefix (std::string val)
 
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 setStimCoxDefVal (double defVal)
 
void setStimCoxExpDispersionInDefVal (double defVal)
 
void setStimCoxExpDispersionOutDefVal (double defVal)
 
void setStimCoxExpInDefVal (double defVal)
 
void setStimCoxExpOutDefVal (double defVal)
 
void setStimDivisorDispersionInDefVal (double defVal)
 
void setStimDivisorDispersionOutDefVal (double defVal)
 
void setStimDivisorInDefVal (double defVal)
 
void setStimDivisorOutDefVal (double defVal)
 
void setStimOffsetDispersionInDefVal (double defVal)
 
void setStimOffsetDispersionOutDefVal (double defVal)
 
void setStimOffsetInDefVal (double defVal)
 
void setStimOffsetOutDefVal (double defVal)
 
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 writeParams (OutputDevice &device) const
 write Params in the given outputdevice 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...
 

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

std::string myKeyPrefix
 
Parameterised::Map myMap
 The key->value map. More...
 
double stimCoxDVal
 
double stimCoxExpDispersionInDVal
 
double stimCoxExpDispersionOutDVal
 
double stimCoxExpInDVal
 
double stimCoxExpOutDVal
 
double stimDivDispersionInDVal
 
double stimDivDispersionOutDVal
 
double stimDivInDVal
 
double stimDivOutDVal
 
double stimOffsetDispersionInDVal
 
double stimOffsetDispersionOutDVal
 
double stimOffsetInDVal
 
double stimOffsetOutDVal
 

Detailed Description

Definition at line 36 of file MSSOTLPolicy5DStimulus.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

◆ MSSOTLPolicy5DStimulus()

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:

◆ computeDesirability() [1/2]

double MSSOTLPolicy5DStimulus::computeDesirability ( double  vehInMeasure,
double  vehOutMeasure 
)
virtual

Computes stimulus function stimulus = cox * exp(-pow(pheroIn - offsetIn, 2)/divisor -pow(pheroOut - offsetOut, 2)/divisor);.

Implements MSSOTLPolicyDesirability.

Definition at line 87 of file MSSOTLPolicy5DStimulus.cpp.

◆ computeDesirability() [2/2]

double MSSOTLPolicy5DStimulus::computeDesirability ( double  vehInMeasure,
double  vehOutMeasure,
double  vehInDispersionMeasure,
double  vehOutDispersionMeasure 
)
virtual

◆ getDouble()

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

Returns the value for a given key converted to a double.

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 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(), getStimCox(), getStimCoxExpDispersionIn(), getStimCoxExpDispersionOut(), getStimCoxExpIn(), getStimCoxExpOut(), getStimDivisorDispersionIn(), getStimDivisorDispersionOut(), getStimDivisorIn(), getStimDivisorOut(), getStimOffsetDispersionIn(), getStimOffsetDispersionOut(), getStimOffsetIn(), getStimOffsetOut(), MSActuatedTrafficLightLogic::init(), MSDevice_ElecHybrid::MSDevice_ElecHybrid(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), and MSDevice_Battery::readParameterValue().

Here is the caller graph for this function:

◆ 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:

◆ getKeyPrefix()

std::string MSSOTLPolicyDesirability::getKeyPrefix ( )
inlineinherited

◆ getMessage()

std::string MSSOTLPolicy5DStimulus::getMessage ( )
virtual

◆ 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:

◆ getStimCox()

double MSSOTLPolicy5DStimulus::getStimCox ( )
inline

Definition at line 49 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimCoxDVal.

Referenced by computeDesirability(), and getMessage().

Here is the caller graph for this function:

◆ getStimCoxExpDispersionIn()

double MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn ( )
inline

Definition at line 135 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimCoxExpDispersionInDVal.

Referenced by computeDesirability().

Here is the caller graph for this function:

◆ getStimCoxExpDispersionOut()

double MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut ( )
inline

Definition at line 142 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimCoxExpDispersionOutDVal.

Referenced by computeDesirability().

Here is the caller graph for this function:

◆ getStimCoxExpIn()

double MSSOTLPolicy5DStimulus::getStimCoxExpIn ( )
inline

Definition at line 120 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimCoxExpInDVal.

Referenced by computeDesirability(), and getMessage().

Here is the caller graph for this function:

◆ getStimCoxExpOut()

double MSSOTLPolicy5DStimulus::getStimCoxExpOut ( )
inline

Definition at line 127 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimCoxExpOutDVal.

Referenced by computeDesirability(), and getMessage().

Here is the caller graph for this function:

◆ getStimDivisorDispersionIn()

double MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn ( )
inline

Definition at line 104 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimDivDispersionInDVal.

Referenced by computeDesirability().

Here is the caller graph for this function:

◆ getStimDivisorDispersionOut()

double MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut ( )
inline

Definition at line 112 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimDivDispersionOutDVal.

Referenced by computeDesirability().

Here is the caller graph for this function:

◆ getStimDivisorIn()

double MSSOTLPolicy5DStimulus::getStimDivisorIn ( )
inline

Definition at line 86 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimDivInDVal.

Referenced by computeDesirability(), and getMessage().

Here is the caller graph for this function:

◆ getStimDivisorOut()

double MSSOTLPolicy5DStimulus::getStimDivisorOut ( )
inline

Definition at line 95 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimDivOutDVal.

Referenced by computeDesirability(), and getMessage().

Here is the caller graph for this function:

◆ getStimOffsetDispersionIn()

double MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn ( )
inline

Definition at line 72 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimOffsetDispersionInDVal.

Referenced by computeDesirability().

Here is the caller graph for this function:

◆ getStimOffsetDispersionOut()

double MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut ( )
inline

Definition at line 79 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimOffsetDispersionOutDVal.

Referenced by computeDesirability().

Here is the caller graph for this function:

◆ getStimOffsetIn()

double MSSOTLPolicy5DStimulus::getStimOffsetIn ( )
inline

Definition at line 56 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimOffsetInDVal.

Referenced by computeDesirability(), and getMessage().

Here is the caller graph for this function:

◆ getStimOffsetOut()

double MSSOTLPolicy5DStimulus::getStimOffsetOut ( )
inline

Definition at line 63 of file MSSOTLPolicy5DStimulus.h.

References Parameterised::getDouble(), MSSOTLPolicyDesirability::getKeyPrefix(), and stimOffsetOutDVal.

Referenced by computeDesirability(), and getMessage().

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:

◆ setKeyPrefix()

void MSSOTLPolicyDesirability::setKeyPrefix ( std::string  val)
inlineinherited

Definition at line 55 of file MSSOTLPolicyDesirability.h.

References MSSOTLPolicyDesirability::myKeyPrefix.

Referenced by MSSOTLCongestionPolicy::MSSOTLCongestionPolicy(), MSSOTLMarchingPolicy::MSSOTLMarchingPolicy(), MSSOTLPhasePolicy::MSSOTLPhasePolicy(), MSSOTLPlatoonPolicy::MSSOTLPlatoonPolicy(), and MSSOTLRequestPolicy::MSSOTLRequestPolicy().

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::reroute().

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:

◆ setStimCoxDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxDefVal ( double  defVal)
inline

Definition at line 53 of file MSSOTLPolicy5DStimulus.h.

References stimCoxDVal.

◆ setStimCoxExpDispersionInDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpDispersionInDefVal ( double  defVal)
inline

Definition at line 139 of file MSSOTLPolicy5DStimulus.h.

References stimCoxExpDispersionInDVal.

Referenced by MSSOTLPolicy3DStimulus::MSSOTLPolicy3DStimulus().

Here is the caller graph for this function:

◆ setStimCoxExpDispersionOutDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpDispersionOutDefVal ( double  defVal)
inline

Definition at line 146 of file MSSOTLPolicy5DStimulus.h.

References stimCoxExpDispersionOutDVal.

Referenced by MSSOTLPolicy3DStimulus::MSSOTLPolicy3DStimulus().

Here is the caller graph for this function:

◆ setStimCoxExpInDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpInDefVal ( double  defVal)
inline

Definition at line 124 of file MSSOTLPolicy5DStimulus.h.

References stimCoxExpInDVal.

◆ setStimCoxExpOutDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpOutDefVal ( double  defVal)
inline

Definition at line 131 of file MSSOTLPolicy5DStimulus.h.

References stimCoxExpOutDVal.

◆ setStimDivisorDispersionInDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorDispersionInDefVal ( double  defVal)
inline

Definition at line 109 of file MSSOTLPolicy5DStimulus.h.

References stimDivDispersionInDVal.

◆ setStimDivisorDispersionOutDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorDispersionOutDefVal ( double  defVal)
inline

Definition at line 117 of file MSSOTLPolicy5DStimulus.h.

References stimDivDispersionOutDVal.

◆ setStimDivisorInDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorInDefVal ( double  defVal)
inline

Definition at line 91 of file MSSOTLPolicy5DStimulus.h.

References stimDivInDVal.

◆ setStimDivisorOutDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorOutDefVal ( double  defVal)
inline

Definition at line 100 of file MSSOTLPolicy5DStimulus.h.

References stimDivOutDVal.

◆ setStimOffsetDispersionInDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetDispersionInDefVal ( double  defVal)
inline

Definition at line 76 of file MSSOTLPolicy5DStimulus.h.

References stimOffsetDispersionInDVal.

◆ setStimOffsetDispersionOutDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetDispersionOutDefVal ( double  defVal)
inline

Definition at line 83 of file MSSOTLPolicy5DStimulus.h.

References stimOffsetDispersionOutDVal.

◆ setStimOffsetInDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetInDefVal ( double  defVal)
inline

Definition at line 60 of file MSSOTLPolicy5DStimulus.h.

References stimOffsetInDVal.

◆ setStimOffsetOutDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetOutDefVal ( double  defVal)
inline

Definition at line 68 of file MSSOTLPolicy5DStimulus.h.

References stimOffsetOutDVal.

◆ 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

◆ 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(), 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().

Here is the caller graph for this function:

Field Documentation

◆ myKeyPrefix

std::string MSSOTLPolicyDesirability::myKeyPrefix
privateinherited

◆ myMap

◆ stimCoxDVal

double MSSOTLPolicy5DStimulus::stimCoxDVal
private

Definition at line 40 of file MSSOTLPolicy5DStimulus.h.

Referenced by getStimCox(), MSSOTLPolicy5DStimulus(), and setStimCoxDefVal().

◆ stimCoxExpDispersionInDVal

double MSSOTLPolicy5DStimulus::stimCoxExpDispersionInDVal
private

◆ stimCoxExpDispersionOutDVal

double MSSOTLPolicy5DStimulus::stimCoxExpDispersionOutDVal
private

◆ stimCoxExpInDVal

double MSSOTLPolicy5DStimulus::stimCoxExpInDVal
private

◆ stimCoxExpOutDVal

double MSSOTLPolicy5DStimulus::stimCoxExpOutDVal
private

◆ stimDivDispersionInDVal

double MSSOTLPolicy5DStimulus::stimDivDispersionInDVal
private

◆ stimDivDispersionOutDVal

double MSSOTLPolicy5DStimulus::stimDivDispersionOutDVal
private

◆ stimDivInDVal

double MSSOTLPolicy5DStimulus::stimDivInDVal
private

◆ stimDivOutDVal

double MSSOTLPolicy5DStimulus::stimDivOutDVal
private

◆ stimOffsetDispersionInDVal

double MSSOTLPolicy5DStimulus::stimOffsetDispersionInDVal
private

◆ stimOffsetDispersionOutDVal

double MSSOTLPolicy5DStimulus::stimOffsetDispersionOutDVal
private

◆ stimOffsetInDVal

double MSSOTLPolicy5DStimulus::stimOffsetInDVal
private

◆ stimOffsetOutDVal

double MSSOTLPolicy5DStimulus::stimOffsetOutDVal
private

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