SUMO - Simulation of Urban MObility
MSSOTLPolicy3DStimulus Class Reference

#include <MSSOTLPolicy3DStimulus.h>

Inheritance diagram for MSSOTLPolicy3DStimulus:
Inheritance graph
Collaboration diagram for MSSOTLPolicy3DStimulus:
Collaboration graph

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::string getKeyPrefix ()
 
const std::map< std::string, std::string > & getMap () const
 Returns the inner key/value map. More...
 
std::string getMessage ()
 
const std::string getParameter (const std::string &key, const std::string &defaultValue="") const
 Returns the value for a given key. 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 knowsParameter (const std::string &key) const
 Returns whether the parameter is known. More...
 
 MSSOTLPolicy3DStimulus (std::string keyPrefix, const std::map< std::string, std::string > &parameters)
 
void setKeyPrefix (std::string val)
 
void setParameter (const std::string &key, const std::string &value)
 Sets a parameter. 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 updateParameter (const std::map< std::string, std::string > &mapArg)
 Adds or updates all given parameters from the map. More...
 
void writeParams (OutputDevice &out) const
 

Protected Member Functions

double readParameter (std::string parName, double defValue)
 

Detailed Description

Definition at line 46 of file MSSOTLPolicy3DStimulus.h.

Constructor & Destructor Documentation

◆ MSSOTLPolicy3DStimulus()

MSSOTLPolicy3DStimulus::MSSOTLPolicy3DStimulus ( std::string  keyPrefix,
const std::map< std::string, std::string > &  parameters 
)

Member Function Documentation

◆ clearParameter()

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 97 of file Parameterised.cpp.

References Parameterised::myMap.

◆ computeDesirability() [1/2]

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

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

Implements MSSOTLPolicyDesirability.

Definition at line 80 of file MSSOTLPolicy5DStimulus.cpp.

Referenced by MSSOTLPolicy5DStimulus::setStimCoxExpDispersionOutDefVal().

◆ computeDesirability() [2/2]

◆ 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 87 of file Parameterised.cpp.

References TplConvert::_2double(), and Parameterised::myMap.

Referenced by MSDevice_Battery::buildVehicleDevices().

◆ getKeyPrefix()

◆ getMap()

◆ getMessage()

◆ getParameter()

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

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

Definition at line 77 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), NBEdge::addRestrictedLane(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), libsumo::Edge::getParameter(), libsumo::Polygon::getParameter(), libsumo::Route::getParameter(), libsumo::POI::getParameter(), libsumo::TrafficLight::getParameter(), libsumo::VehicleType::getParameter(), libsumo::Person::getParameter(), libsumo::Lane::getParameter(), libsumo::Vehicle::getParameter(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_OpenStreetMap::insertEdge(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), libsumo::Helper::moveToXYMap(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSSOTLPolicyDesirability::readParameter(), MSDevice_SSM::requestsTrajectories(), NBEdgeCont::splitAt(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), MSDevice_SSM::useGeoCoords(), and NWWriter_DlrNavteq::writeLinksUnsplitted().

◆ getStimCox()

double MSSOTLPolicy5DStimulus::getStimCox ( )
inlineinherited

◆ getStimCoxExpDispersionIn()

double MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn ( )
inlineinherited

◆ getStimCoxExpDispersionOut()

double MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut ( )
inlineinherited

◆ getStimCoxExpIn()

double MSSOTLPolicy5DStimulus::getStimCoxExpIn ( )
inlineinherited

◆ getStimCoxExpOut()

double MSSOTLPolicy5DStimulus::getStimCoxExpOut ( )
inlineinherited

◆ getStimDivisorDispersionIn()

double MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn ( )
inlineinherited

◆ getStimDivisorDispersionOut()

double MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut ( )
inlineinherited

◆ getStimDivisorIn()

double MSSOTLPolicy5DStimulus::getStimDivisorIn ( )
inlineinherited

◆ getStimDivisorOut()

double MSSOTLPolicy5DStimulus::getStimDivisorOut ( )
inlineinherited

◆ getStimOffsetDispersionIn()

double MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn ( )
inlineinherited

◆ getStimOffsetDispersionOut()

double MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut ( )
inlineinherited

◆ getStimOffsetIn()

double MSSOTLPolicy5DStimulus::getStimOffsetIn ( )
inlineinherited

◆ getStimOffsetOut()

double MSSOTLPolicy5DStimulus::getStimOffsetOut ( )
inlineinherited

◆ knowsParameter()

◆ readParameter()

◆ setKeyPrefix()

◆ setParameter()

◆ setStimCoxDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxDefVal ( double  defVal)
inlineinherited

Definition at line 64 of file MSSOTLPolicy5DStimulus.h.

◆ setStimCoxExpDispersionInDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpDispersionInDefVal ( double  defVal)
inlineinherited

Definition at line 150 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy3DStimulus().

◆ setStimCoxExpDispersionOutDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpDispersionOutDefVal ( double  defVal)
inlineinherited

◆ setStimCoxExpInDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpInDefVal ( double  defVal)
inlineinherited

Definition at line 135 of file MSSOTLPolicy5DStimulus.h.

◆ setStimCoxExpOutDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpOutDefVal ( double  defVal)
inlineinherited

Definition at line 142 of file MSSOTLPolicy5DStimulus.h.

◆ setStimDivisorDispersionInDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorDispersionInDefVal ( double  defVal)
inlineinherited

Definition at line 120 of file MSSOTLPolicy5DStimulus.h.

◆ setStimDivisorDispersionOutDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorDispersionOutDefVal ( double  defVal)
inlineinherited

Definition at line 128 of file MSSOTLPolicy5DStimulus.h.

◆ setStimDivisorInDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorInDefVal ( double  defVal)
inlineinherited

Definition at line 102 of file MSSOTLPolicy5DStimulus.h.

◆ setStimDivisorOutDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorOutDefVal ( double  defVal)
inlineinherited

Definition at line 111 of file MSSOTLPolicy5DStimulus.h.

◆ setStimOffsetDispersionInDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetDispersionInDefVal ( double  defVal)
inlineinherited

Definition at line 87 of file MSSOTLPolicy5DStimulus.h.

◆ setStimOffsetDispersionOutDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetDispersionOutDefVal ( double  defVal)
inlineinherited

Definition at line 94 of file MSSOTLPolicy5DStimulus.h.

◆ setStimOffsetInDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetInDefVal ( double  defVal)
inlineinherited

Definition at line 71 of file MSSOTLPolicy5DStimulus.h.

◆ setStimOffsetOutDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetOutDefVal ( double  defVal)
inlineinherited

Definition at line 79 of file MSSOTLPolicy5DStimulus.h.

◆ unsetParameter()

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

Removes a parameter.

Parameters
[in]keyThe parameter's name

Definition at line 57 of file Parameterised.cpp.

References Parameterised::myMap.

◆ updateParameter()

void Parameterised::updateParameter ( const std::map< std::string, std::string > &  mapArg)
inherited

Adds or updates all given parameters from the map.

Parameters
[in]mapArgThe keys/values to insert

Definition at line 63 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_SUMO::_loadNetwork(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLJunctionControlBuilder::closeJunction(), NBTrafficLightDefinition::compute(), and NIImporter_OpenStreetMap::insertEdge().

◆ writeParams()


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