![]() |
SUMO - Simulation of Urban MObility
|
#include <MSSOTLPolicy5DStimulus.h>
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... | |
MSSOTLPolicy5DStimulus (std::string keyPrefix, const std::map< std::string, std::string > ¶meters) | |
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) |
Definition at line 48 of file MSSOTLPolicy5DStimulus.h.
MSSOTLPolicy5DStimulus::MSSOTLPolicy5DStimulus | ( | std::string | keyPrefix, |
const std::map< std::string, std::string > & | parameters | ||
) |
Definition at line 24 of file MSSOTLPolicy5DStimulus.cpp.
References stimCoxDVal, stimCoxExpDispersionInDVal, stimCoxExpDispersionOutDVal, stimCoxExpInDVal, stimCoxExpOutDVal, stimDivDispersionInDVal, stimDivDispersionOutDVal, stimDivInDVal, stimDivOutDVal, stimOffsetDispersionInDVal, stimOffsetDispersionOutDVal, stimOffsetInDVal, and stimOffsetOutDVal.
|
inherited |
Adds a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Definition at line 53 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by SUMORouteHandler::addParam(), NLHandler::addParam(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NBTrafficLightDefinition::compute(), NIImporter_OpenDrive::loadNetwork(), NIImporter_MATSim::EdgesHandler::myStartElement(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_POI::processSet(), TraCIServerAPI_TLS::processSet(), TraCIServerAPI_Polygon::processSet(), and TraCIServerAPI_Lane::processSet().
|
inherited |
Adds all given parameter.
[in] | mapArg | The keys/values to insert |
Definition at line 59 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Adds all given parameter.
[in] | p | The keys/values to insert |
Definition at line 67 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Clears the parameter map.
Definition at line 91 of file Parameterised.cpp.
References Parameterised::myMap.
|
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().
|
virtual |
Calculates the desirability of the policy.
Implements MSSOTLPolicyDesirability.
Definition at line 43 of file MSSOTLPolicy5DStimulus.cpp.
References DBG, getStimCox(), getStimCoxExpDispersionIn(), getStimCoxExpDispersionOut(), getStimCoxExpIn(), getStimCoxExpOut(), getStimDivisorDispersionIn(), getStimDivisorDispersionOut(), getStimDivisorIn(), getStimDivisorOut(), getStimOffsetDispersionIn(), getStimOffsetDispersionOut(), getStimOffsetIn(), getStimOffsetOut(), SUMOReal, WRITE_ERROR, and WRITE_MESSAGE.
|
inlineinherited |
Definition at line 74 of file MSSOTLPolicyDesirability.h.
References MSSOTLPolicyDesirability::myKeyPrefix.
Referenced by getStimCox(), getStimCoxExpDispersionIn(), getStimCoxExpDispersionOut(), getStimCoxExpIn(), getStimCoxExpOut(), getStimDivisorDispersionIn(), getStimDivisorDispersionOut(), getStimDivisorIn(), getStimDivisorOut(), getStimOffsetDispersionIn(), getStimOffsetDispersionOut(), getStimOffsetIn(), and getStimOffsetOut().
|
inlineinherited |
Returns the inner key/value map.
Definition at line 107 of file Parameterised.h.
References Parameterised::myMap.
Referenced by NBTrafficLightDefinition::compute(), GUIPerson::getParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), TraCIServerAPI_TLS::processGet(), ROVehicle::saveAsXML(), ROPerson::saveAsXML(), SUMOVTypeParameter::write(), PointOfInterest::writeXML(), and SUMO::Polygon::writeXML().
|
virtual |
Implements MSSOTLPolicyDesirability.
Definition at line 85 of file MSSOTLPolicy5DStimulus.cpp.
References getStimCox(), getStimCoxExpIn(), getStimCoxExpOut(), getStimDivisorIn(), getStimDivisorOut(), getStimOffsetIn(), and getStimOffsetOut().
Referenced by setStimCoxExpDispersionOutDefVal().
|
inherited |
Returns the value for a given key.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 81 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), MSDevice_Example::buildVehicleDevices(), MSDevice_Battery::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSOTLTrafficLightLogic::getDecayConstant(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSSOTLTrafficLightLogic::getThreshold(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Lane::processGet(), MSSOTLPolicyDesirability::readParameter(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), and TraCIServerAPI_Vehicle::vtdMap().
|
inline |
Definition at line 61 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability(), and getMessage().
|
inline |
Definition at line 147 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability().
|
inline |
Definition at line 154 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability().
|
inline |
Definition at line 132 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability(), and getMessage().
|
inline |
Definition at line 139 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability(), and getMessage().
|
inline |
Definition at line 116 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability().
|
inline |
Definition at line 124 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability().
|
inline |
Definition at line 98 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability(), and getMessage().
|
inline |
Definition at line 107 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability(), and getMessage().
|
inline |
Definition at line 84 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability().
|
inline |
Definition at line 91 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability().
|
inline |
Definition at line 68 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability(), and getMessage().
|
inline |
Definition at line 75 of file MSSOTLPolicy5DStimulus.h.
References MSSOTLPolicyDesirability::getKeyPrefix(), and MSSOTLPolicyDesirability::readParameter().
Referenced by computeDesirability(), and getMessage().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 75 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSDevice_Example::buildVehicleDevices(), and MSDevice::equippedByDefaultAssignmentOptions().
|
inlineprotectedinherited |
Definition at line 49 of file MSSOTLPolicyDesirability.h.
References TplConvert::_2SUMORealSec(), MSSOTLPolicyDesirability::computeDesirability(), MSSOTLPolicyDesirability::getMessage(), Parameterised::getParameter(), MSSOTLPolicyDesirability::MSSOTLPolicyDesirability(), SUMOReal, and MSSOTLPolicyDesirability::~MSSOTLPolicyDesirability().
Referenced by getStimCox(), getStimCoxExpDispersionIn(), getStimCoxExpDispersionOut(), getStimCoxExpIn(), getStimCoxExpOut(), getStimDivisorDispersionIn(), getStimDivisorDispersionOut(), getStimDivisorIn(), getStimDivisorOut(), getStimOffsetDispersionIn(), getStimOffsetDispersionOut(), getStimOffsetIn(), getStimOffsetOut(), and MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus().
|
inlineinherited |
|
inline |
Definition at line 65 of file MSSOTLPolicy5DStimulus.h.
|
inline |
Definition at line 151 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy3DStimulus::MSSOTLPolicy3DStimulus().
|
inline |
Definition at line 158 of file MSSOTLPolicy5DStimulus.h.
References computeDesirability(), getMessage(), and SUMOReal.
Referenced by MSSOTLPolicy3DStimulus::MSSOTLPolicy3DStimulus().
|
inline |
Definition at line 136 of file MSSOTLPolicy5DStimulus.h.
|
inline |
Definition at line 143 of file MSSOTLPolicy5DStimulus.h.
|
inline |
Definition at line 121 of file MSSOTLPolicy5DStimulus.h.
|
inline |
Definition at line 129 of file MSSOTLPolicy5DStimulus.h.
|
inline |
Definition at line 103 of file MSSOTLPolicy5DStimulus.h.
|
inline |
Definition at line 112 of file MSSOTLPolicy5DStimulus.h.
|
inline |
Definition at line 88 of file MSSOTLPolicy5DStimulus.h.
|
inline |
Definition at line 95 of file MSSOTLPolicy5DStimulus.h.
|
inline |
Definition at line 72 of file MSSOTLPolicy5DStimulus.h.
|
inline |
Definition at line 80 of file MSSOTLPolicy5DStimulus.h.
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().
|
private |
Definition at line 52 of file MSSOTLPolicy5DStimulus.h.
Referenced by MSSOTLPolicy5DStimulus().