Eclipse SUMO - Simulation of Urban MObility
MSSOTLPolicy3DStimulus Class Reference

#include <MSSOTLPolicy3DStimulus.h>

Inheritance diagram for MSSOTLPolicy3DStimulus:
Collaboration diagram for MSSOTLPolicy3DStimulus:

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 ()
 
std::string getMessage ()
 
const std::string getParameter (const std::string &key, const std::string &defaultValue="") const
 Returns the value for a given key. More...
 
const std::map< std::string, std::string > & getParametersMap () const
 Returns the inner key/value map. 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 &device) const
 write Params in the given outputdevice More...
 

Private Attributes

std::string myKeyPrefix
 
std::map< std::string, std::string > 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 40 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()

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

◆ computeDesirability() [2/2]

◆ getDouble()

◆ getKeyPrefix()

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

References Parameterised::myMap.

Referenced by NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), libsumo::Simulation::findIntermodalRoute(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), MSDevice::getBoolParam(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSSwarmTrafficLightLogic::getChangePlanProbability(), GNELane::getColorValue(), GUILane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSSwarmTrafficLightLogic::getForgettingCox(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), GUIBaseVehicle::getOptionalName(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), libsumo::Route::getParameter(), libsumo::Polygon::getParameter(), libsumo::POI::getParameter(), libsumo::Person::getParameter(), libsumo::TrafficLight::getParameter(), libsumo::Edge::getParameter(), libsumo::Lane::getParameter(), libsumo::VehicleType::getParameter(), libsumo::Vehicle::getParameter(), libsumo::Simulation::getParameter(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSSwarmTrafficLightLogic::getReinforcementMode(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSDevice::getStringParam(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), GNEVehicleType::initRailVisualizationParameters(), MSVehicleType::initRailVisualizationParameters(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), libsumo::Helper::moveToXYMap(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), GNEVehicleType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBEdgeCont::splitAt(), MSDevice_SSM::useGeoCoords(), NWWriter_DlrNavteq::writeLinksUnsplitted(), and NWWriter_OpenDrive::writeRoadObjects().

◆ getParametersMap()

const std::map< std::string, std::string > & Parameterised::getParametersMap ( ) const
inherited

Returns the inner key/value map.

Definition at line 105 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_SUMO::_loadNetwork(), NBEdge::addLane(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEVehicleType::getGenericParameters(), GNELane::getGenericParameters(), GNEPoly::getGenericParameters(), GNEStop::getGenericParameters(), GNEPOI::getGenericParameters(), GNEJunction::getGenericParameters(), GNERide::getGenericParameters(), GNEPersonTrip::getGenericParameters(), GNEWalk::getGenericParameters(), GNEEdge::getGenericParameters(), GNERoute::getGenericParameters(), GNEPerson::getGenericParameters(), GNEAdditional::getGenericParameters(), GNEVehicle::getGenericParameters(), GNEVehicleType::getGenericParametersStr(), GNELane::getGenericParametersStr(), GNEPoly::getGenericParametersStr(), GNEStop::getGenericParametersStr(), GNEPOI::getGenericParametersStr(), GNEJunction::getGenericParametersStr(), GNERide::getGenericParametersStr(), GNEPersonTrip::getGenericParametersStr(), GNEWalk::getGenericParametersStr(), GNEEdge::getGenericParametersStr(), GNERoute::getGenericParametersStr(), GNEPerson::getGenericParametersStr(), GNEAdditional::getGenericParametersStr(), GNEVehicle::getGenericParametersStr(), GUITrafficLightLogicWrapper::getParameterWindow(), GUIPolygon::getParameterWindow(), GUIJunctionWrapper::getParameterWindow(), GUIPointOfInterest::getParameterWindow(), GUILane::getParameterWindow(), GUIPerson::getTypeParameterWindow(), GUIContainer::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), NIImporter_OpenStreetMap::insertEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), GUIParameterTableWindow::numParams(), GNEVehicleType::overwriteVType(), and TraCIServerAPI_TrafficLight::processGet().

◆ getStimCox()

◆ getStimCoxExpDispersionIn()

double MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn ( )
inlineinherited

◆ getStimCoxExpDispersionOut()

double MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut ( )
inlineinherited

◆ getStimCoxExpIn()

◆ getStimCoxExpOut()

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

◆ getStimOffsetOut()

◆ knowsParameter()

◆ setKeyPrefix()

◆ setParameter()

void Parameterised::setParameter ( const std::string &  key,
const std::string &  value 
)
inherited

Sets a parameter.

Parameters
[in]keyThe parameter's name
[in]valueThe parameter's value

Definition at line 45 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NLHandler::addDistrict(), SUMORouteHandler::addParam(), ShapeHandler::addPOI(), NBEdge::append(), NIImporter_OpenStreetMap::insertNodeChecking(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NIImporter_OpenDrive::loadNetwork(), NIXMLTrafficLightsHandler::myStartElement(), MSStateHandler::myStartElement(), ShapeHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), GNEAdditionalHandler::parseGenericParameter(), GNEVehicleType::setAttribute(), GNEConnection::setGenericParametersStr(), GNEVehicleType::setGenericParametersStr(), GNELane::setGenericParametersStr(), GNEPoly::setGenericParametersStr(), GNEStop::setGenericParametersStr(), GNEPOI::setGenericParametersStr(), GNEJunction::setGenericParametersStr(), GNERide::setGenericParametersStr(), GNEPersonTrip::setGenericParametersStr(), GNEWalk::setGenericParametersStr(), GNEEdge::setGenericParametersStr(), GNERoute::setGenericParametersStr(), GNEPerson::setGenericParametersStr(), GNEAdditional::setGenericParametersStr(), GNEVehicle::setGenericParametersStr(), NIImporter_OpenDrive::setLaneAttributes(), libsumo::Route::setParameter(), libsumo::Polygon::setParameter(), libsumo::TrafficLight::setParameter(), libsumo::POI::setParameter(), libsumo::Edge::setParameter(), and libsumo::Lane::setParameter().

◆ setStimCoxDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxDefVal ( double  defVal)
inlineinherited

Definition at line 58 of file MSSOTLPolicy5DStimulus.h.

References MSSOTLPolicy5DStimulus::stimCoxDVal.

◆ setStimCoxExpDispersionInDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpDispersionInDefVal ( double  defVal)
inlineinherited

◆ setStimCoxExpDispersionOutDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpDispersionOutDefVal ( double  defVal)
inlineinherited

◆ setStimCoxExpInDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpInDefVal ( double  defVal)
inlineinherited

◆ setStimCoxExpOutDefVal()

void MSSOTLPolicy5DStimulus::setStimCoxExpOutDefVal ( double  defVal)
inlineinherited

◆ setStimDivisorDispersionInDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorDispersionInDefVal ( double  defVal)
inlineinherited

◆ setStimDivisorDispersionOutDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorDispersionOutDefVal ( double  defVal)
inlineinherited

◆ setStimDivisorInDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorInDefVal ( double  defVal)
inlineinherited

Definition at line 96 of file MSSOTLPolicy5DStimulus.h.

References MSSOTLPolicy5DStimulus::stimDivInDVal.

◆ setStimDivisorOutDefVal()

void MSSOTLPolicy5DStimulus::setStimDivisorOutDefVal ( double  defVal)
inlineinherited

Definition at line 105 of file MSSOTLPolicy5DStimulus.h.

References MSSOTLPolicy5DStimulus::stimDivOutDVal.

◆ setStimOffsetDispersionInDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetDispersionInDefVal ( double  defVal)
inlineinherited

◆ setStimOffsetDispersionOutDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetDispersionOutDefVal ( double  defVal)
inlineinherited

◆ setStimOffsetInDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetInDefVal ( double  defVal)
inlineinherited

Definition at line 65 of file MSSOTLPolicy5DStimulus.h.

References MSSOTLPolicy5DStimulus::stimOffsetInDVal.

◆ setStimOffsetOutDefVal()

void MSSOTLPolicy5DStimulus::setStimOffsetOutDefVal ( double  defVal)
inlineinherited

◆ 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 GNEVehicleType::setAttribute().

◆ updateParameter()

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

◆ writeParams()

Field Documentation

◆ myKeyPrefix

std::string MSSOTLPolicyDesirability::myKeyPrefix
privateinherited

◆ myMap

◆ stimCoxDVal

double MSSOTLPolicy5DStimulus::stimCoxDVal
privateinherited

◆ stimCoxExpDispersionInDVal

double MSSOTLPolicy5DStimulus::stimCoxExpDispersionInDVal
privateinherited

◆ stimCoxExpDispersionOutDVal

double MSSOTLPolicy5DStimulus::stimCoxExpDispersionOutDVal
privateinherited

◆ stimCoxExpInDVal

double MSSOTLPolicy5DStimulus::stimCoxExpInDVal
privateinherited

◆ stimCoxExpOutDVal

double MSSOTLPolicy5DStimulus::stimCoxExpOutDVal
privateinherited

◆ stimDivDispersionInDVal

double MSSOTLPolicy5DStimulus::stimDivDispersionInDVal
privateinherited

◆ stimDivDispersionOutDVal

double MSSOTLPolicy5DStimulus::stimDivDispersionOutDVal
privateinherited

◆ stimDivInDVal

double MSSOTLPolicy5DStimulus::stimDivInDVal
privateinherited

◆ stimDivOutDVal

double MSSOTLPolicy5DStimulus::stimDivOutDVal
privateinherited

◆ stimOffsetDispersionInDVal

double MSSOTLPolicy5DStimulus::stimOffsetDispersionInDVal
privateinherited

◆ stimOffsetDispersionOutDVal

double MSSOTLPolicy5DStimulus::stimOffsetDispersionOutDVal
privateinherited

◆ stimOffsetInDVal

double MSSOTLPolicy5DStimulus::stimOffsetInDVal
privateinherited

◆ stimOffsetOutDVal

double MSSOTLPolicy5DStimulus::stimOffsetOutDVal
privateinherited

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