SUMO - Simulation of Urban MObility
MSSOTLPolicy5DStimulus Class Reference

#include <MSSOTLPolicy5DStimulus.h>

Inheritance diagram for MSSOTLPolicy5DStimulus:
Inheritance graph
Collaboration diagram for MSSOTLPolicy5DStimulus:
Collaboration graph

Public Member Functions

void addParameter (const std::string &key, const std::string &value)
 Adds a parameter. More...
 
void addParameter (const std::map< std::string, std::string > &mapArg)
 Adds all given parameter. More...
 
void addParameter (const Parameterised &p)
 Adds all given parameter. More...
 
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...
 
 MSSOTLPolicy5DStimulus (std::string keyPrefix, const std::map< std::string, std::string > &parameters)
 
void setKeyPrefix (std::string val)
 
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 writeParams (OutputDevice &out) const
 

Protected Member Functions

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

Private Attributes

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 48 of file MSSOTLPolicy5DStimulus.h.

Constructor & Destructor Documentation

◆ MSSOTLPolicy5DStimulus()

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

Member Function Documentation

◆ addParameter() [1/3]

◆ addParameter() [2/3]

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

Adds all given parameter.

Parameters
[in]mapArgThe keys/values to insert

Definition at line 57 of file Parameterised.cpp.

References Parameterised::myMap.

◆ addParameter() [3/3]

void Parameterised::addParameter ( const Parameterised p)
inherited

Adds all given parameter.

Parameters
[in]pThe keys/values to insert

Definition at line 65 of file Parameterised.cpp.

References Parameterised::myMap.

◆ clearParameter()

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 99 of file Parameterised.cpp.

References Parameterised::myMap.

◆ 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 81 of file MSSOTLPolicy5DStimulus.cpp.

Referenced by setStimCoxExpDispersionOutDefVal().

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

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

Referenced by MSDevice_Battery::buildVehicleDevices().

◆ getKeyPrefix()

◆ getMap()

const std::map<std::string, std::string>& Parameterised::getMap ( ) const
inlineinherited

◆ getMessage()

std::string MSSOTLPolicy5DStimulus::getMessage ( )
virtual

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

References Parameterised::myMap.

Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSDevice_SSM::getLoggingFrequency(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), TraCI_Polygon::getParameter(), TraCI_VehicleType::getParameter(), TraCI_Route::getParameter(), TraCI_POI::getParameter(), TraCI_Lane::getParameter(), TraCI_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(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Person::processGet(), MSSOTLPolicyDesirability::readParameter(), MSDevice_SSM::requestsTrajectories(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), TraCIServerAPI_Vehicle::vtdMap(), and NWWriter_DlrNavteq::writeLinksUnsplitted().

◆ getStimCox()

double MSSOTLPolicy5DStimulus::getStimCox ( )
inline

◆ getStimCoxExpDispersionIn()

double MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn ( )
inline

◆ getStimCoxExpDispersionOut()

double MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut ( )
inline

◆ getStimCoxExpIn()

double MSSOTLPolicy5DStimulus::getStimCoxExpIn ( )
inline

◆ getStimCoxExpOut()

double MSSOTLPolicy5DStimulus::getStimCoxExpOut ( )
inline

◆ getStimDivisorDispersionIn()

double MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn ( )
inline

◆ getStimDivisorDispersionOut()

double MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut ( )
inline

◆ getStimDivisorIn()

double MSSOTLPolicy5DStimulus::getStimDivisorIn ( )
inline

◆ getStimDivisorOut()

double MSSOTLPolicy5DStimulus::getStimDivisorOut ( )
inline

◆ getStimOffsetDispersionIn()

double MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn ( )
inline

◆ getStimOffsetDispersionOut()

double MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut ( )
inline

◆ getStimOffsetIn()

double MSSOTLPolicy5DStimulus::getStimOffsetIn ( )
inline

◆ getStimOffsetOut()

double MSSOTLPolicy5DStimulus::getStimOffsetOut ( )
inline

◆ knowsParameter()

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

◆ readParameter()

◆ setKeyPrefix()

◆ setStimCoxDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxDefVal ( double  defVal)
inline

Definition at line 65 of file MSSOTLPolicy5DStimulus.h.

◆ setStimCoxExpDispersionInDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpDispersionInDefVal ( double  defVal)
inline

◆ setStimCoxExpDispersionOutDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpDispersionOutDefVal ( double  defVal)
inline

◆ setStimCoxExpInDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpInDefVal ( double  defVal)
inline

Definition at line 136 of file MSSOTLPolicy5DStimulus.h.

◆ setStimCoxExpOutDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpOutDefVal ( double  defVal)
inline

Definition at line 143 of file MSSOTLPolicy5DStimulus.h.

◆ setStimDivisorDispersionInDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorDispersionInDefVal ( double  defVal)
inline

Definition at line 121 of file MSSOTLPolicy5DStimulus.h.

◆ setStimDivisorDispersionOutDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorDispersionOutDefVal ( double  defVal)
inline

Definition at line 129 of file MSSOTLPolicy5DStimulus.h.

◆ setStimDivisorInDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorInDefVal ( double  defVal)
inline

Definition at line 103 of file MSSOTLPolicy5DStimulus.h.

◆ setStimDivisorOutDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorOutDefVal ( double  defVal)
inline

Definition at line 112 of file MSSOTLPolicy5DStimulus.h.

◆ setStimOffsetDispersionInDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetDispersionInDefVal ( double  defVal)
inline

Definition at line 88 of file MSSOTLPolicy5DStimulus.h.

◆ setStimOffsetDispersionOutDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetDispersionOutDefVal ( double  defVal)
inline

Definition at line 95 of file MSSOTLPolicy5DStimulus.h.

◆ setStimOffsetInDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetInDefVal ( double  defVal)
inline

Definition at line 72 of file MSSOTLPolicy5DStimulus.h.

◆ setStimOffsetOutDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetOutDefVal ( double  defVal)
inline

Definition at line 80 of file MSSOTLPolicy5DStimulus.h.

◆ writeParams()

Field Documentation

◆ stimCoxDVal

double MSSOTLPolicy5DStimulus::stimCoxDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().

◆ stimCoxExpDispersionInDVal

double MSSOTLPolicy5DStimulus::stimCoxExpDispersionInDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().

◆ stimCoxExpDispersionOutDVal

double MSSOTLPolicy5DStimulus::stimCoxExpDispersionOutDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().

◆ stimCoxExpInDVal

double MSSOTLPolicy5DStimulus::stimCoxExpInDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().

◆ stimCoxExpOutDVal

double MSSOTLPolicy5DStimulus::stimCoxExpOutDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().

◆ stimDivDispersionInDVal

double MSSOTLPolicy5DStimulus::stimDivDispersionInDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().

◆ stimDivDispersionOutDVal

double MSSOTLPolicy5DStimulus::stimDivDispersionOutDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().

◆ stimDivInDVal

double MSSOTLPolicy5DStimulus::stimDivInDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().

◆ stimDivOutDVal

double MSSOTLPolicy5DStimulus::stimDivOutDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().

◆ stimOffsetDispersionInDVal

double MSSOTLPolicy5DStimulus::stimOffsetDispersionInDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().

◆ stimOffsetDispersionOutDVal

double MSSOTLPolicy5DStimulus::stimOffsetDispersionOutDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().

◆ stimOffsetInDVal

double MSSOTLPolicy5DStimulus::stimOffsetInDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().

◆ stimOffsetOutDVal

double MSSOTLPolicy5DStimulus::stimOffsetOutDVal
private

Definition at line 52 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy5DStimulus().


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