SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MSSOTLPolicy3DStimulus Class Reference

#include <MSSOTLPolicy3DStimulus.h>

Inheritance diagram for MSSOTLPolicy3DStimulus:
Inheritance graph
Collaboration diagram for MSSOTLPolicy3DStimulus:
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 SUMOReal computeDesirability (SUMOReal vehInMeasure, SUMOReal vehOutMeasure)
 Computes stimulus function stimulus = cox * exp(-pow(pheroIn - offsetIn, 2)/divisor -pow(pheroOut - offsetOut, 2)/divisor);. More...
 
virtual SUMOReal computeDesirability (SUMOReal vehInMeasure, SUMOReal vehOutMeasure, SUMOReal vehInDispersionMeasure, SUMOReal vehOutDispersionMeasure)
 Calculates the desirability of the policy. 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...
 
SUMOReal getStimCox ()
 
SUMOReal getStimCoxExpDispersionIn ()
 
SUMOReal getStimCoxExpDispersionOut ()
 
SUMOReal getStimCoxExpIn ()
 
SUMOReal getStimCoxExpOut ()
 
SUMOReal getStimDivisorDispersionIn ()
 
SUMOReal getStimDivisorDispersionOut ()
 
SUMOReal getStimDivisorIn ()
 
SUMOReal getStimDivisorOut ()
 
SUMOReal getStimOffsetDispersionIn ()
 
SUMOReal getStimOffsetDispersionOut ()
 
SUMOReal getStimOffsetIn ()
 
SUMOReal 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 setStimCoxDefVal (SUMOReal defVal)
 
void setStimCoxExpDispersionInDefVal (SUMOReal defVal)
 
void setStimCoxExpDispersionOutDefVal (SUMOReal defVal)
 
void setStimCoxExpInDefVal (SUMOReal defVal)
 
void setStimCoxExpOutDefVal (SUMOReal defVal)
 
void setStimDivisorDispersionInDefVal (SUMOReal defVal)
 
void setStimDivisorDispersionOutDefVal (SUMOReal defVal)
 
void setStimDivisorInDefVal (SUMOReal defVal)
 
void setStimDivisorOutDefVal (SUMOReal defVal)
 
void setStimOffsetDispersionInDefVal (SUMOReal defVal)
 
void setStimOffsetDispersionOutDefVal (SUMOReal defVal)
 
void setStimOffsetInDefVal (SUMOReal defVal)
 
void setStimOffsetOutDefVal (SUMOReal defVal)
 

Protected Member Functions

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

Detailed Description

Definition at line 47 of file MSSOTLPolicy3DStimulus.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

References Parameterised::myMap.

void Parameterised::addParameter ( const Parameterised p)
inherited

Adds all given parameter.

Parameters
[in]pThe keys/values to insert

Definition at line 67 of file Parameterised.cpp.

References Parameterised::myMap.

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 91 of file Parameterised.cpp.

References Parameterised::myMap.

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

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.

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

References Parameterised::myMap.

Referenced by MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), MSSwarmTrafficLightLogic::getChangePlanProbability(), MSSOTLTrafficLightLogic::getDecayConstant(), MSSwarmTrafficLightLogic::getForgettingCox(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSSwarmTrafficLightLogic::getReinforcementMode(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Lane::processGet(), MSSOTLPolicyDesirability::readParameter(), and TraCIServerAPI_Vehicle::vtdMap().

SUMOReal MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn ( )
inlineinherited
SUMOReal MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut ( )
inlineinherited
SUMOReal MSSOTLPolicy5DStimulus::getStimCoxExpIn ( )
inlineinherited
SUMOReal MSSOTLPolicy5DStimulus::getStimCoxExpOut ( )
inlineinherited
SUMOReal MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn ( )
inlineinherited
SUMOReal MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut ( )
inlineinherited
SUMOReal MSSOTLPolicy5DStimulus::getStimDivisorIn ( )
inlineinherited
SUMOReal MSSOTLPolicy5DStimulus::getStimDivisorOut ( )
inlineinherited
SUMOReal MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn ( )
inlineinherited
SUMOReal MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut ( )
inlineinherited
SUMOReal MSSOTLPolicy5DStimulus::getStimOffsetIn ( )
inlineinherited
SUMOReal MSSOTLPolicy5DStimulus::getStimOffsetOut ( )
inlineinherited
bool Parameterised::knowsParameter ( const std::string &  key) const
inherited

Returns whether the parameter is known.

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

Definition at line 75 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSDevice_Example::buildVehicleDevices(), and MSDevice::equippedByDefaultAssignmentOptions().

void MSSOTLPolicy5DStimulus::setStimCoxDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 65 of file MSSOTLPolicy5DStimulus.h.

void MSSOTLPolicy5DStimulus::setStimCoxExpDispersionInDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 151 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy3DStimulus().

void MSSOTLPolicy5DStimulus::setStimCoxExpDispersionOutDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 158 of file MSSOTLPolicy5DStimulus.h.

Referenced by MSSOTLPolicy3DStimulus().

void MSSOTLPolicy5DStimulus::setStimCoxExpInDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 136 of file MSSOTLPolicy5DStimulus.h.

void MSSOTLPolicy5DStimulus::setStimCoxExpOutDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 143 of file MSSOTLPolicy5DStimulus.h.

void MSSOTLPolicy5DStimulus::setStimDivisorDispersionInDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 121 of file MSSOTLPolicy5DStimulus.h.

void MSSOTLPolicy5DStimulus::setStimDivisorDispersionOutDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 129 of file MSSOTLPolicy5DStimulus.h.

void MSSOTLPolicy5DStimulus::setStimDivisorInDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 103 of file MSSOTLPolicy5DStimulus.h.

void MSSOTLPolicy5DStimulus::setStimDivisorOutDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 112 of file MSSOTLPolicy5DStimulus.h.

void MSSOTLPolicy5DStimulus::setStimOffsetDispersionInDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 88 of file MSSOTLPolicy5DStimulus.h.

void MSSOTLPolicy5DStimulus::setStimOffsetDispersionOutDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 95 of file MSSOTLPolicy5DStimulus.h.

void MSSOTLPolicy5DStimulus::setStimOffsetInDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 72 of file MSSOTLPolicy5DStimulus.h.

void MSSOTLPolicy5DStimulus::setStimOffsetOutDefVal ( SUMOReal  defVal)
inlineinherited

Definition at line 80 of file MSSOTLPolicy5DStimulus.h.


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