Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSSOTLPlatoonPolicy Class Reference

Class for low-level platoon policy. More...

#include <MSSOTLPlatoonPolicy.h>

Inheritance diagram for MSSOTLPlatoonPolicy:
[legend]
Collaboration diagram for MSSOTLPlatoonPolicy:
[legend]

Public Types

typedef std::map< std::string, std::string > Map
 parameters map

Public Member Functions

bool canRelease (SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)
void clearParameter ()
 Clears the parameter map.
double computeDesirability (double vehInMeasure, double vehOutMeasure)
double computeDesirability (double vehInMeasure, double vehOutMeasure, double vehInDispersionMeasure, double vehOutDispersionMeasure)
 Computes the desirability of this policy, necessary when used in combination with an high level policy.
virtual int decideNextPhase (SUMOTime elapsed, const MSPhaseDefinition *stage, int currentPhaseIndex, int phaseMaxCTS, bool thresholdPassed, bool pushButtonPressed, int vehicleCount)
MSSOTLPolicyDesirabilitygetDesirabilityAlgorithm ()
double getDouble (const std::string &key, const double defaultValue) const
 Returns the value for a given key converted to a double.
std::string getName ()
virtual const std::string getParameter (const std::string &key, const std::string defaultValue="") const
 Returns the value for a given key.
const Parameterised::MapgetParametersMap () const
 Returns the inner key/value map.
std::string getParametersStr (const std::string kvsep="=", const std::string sep="|") const
 Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
virtual double getThetaSensitivity ()
bool hasParameter (const std::string &key) const
 Returns whether the parameter is set.
void mergeParameters (const Parameterised::Map &mapArg, const std::string separator=" ", bool uniqueValues=true)
 Adds or appends all given parameters from the map.
 MSSOTLPlatoonPolicy (const Parameterised::Map &parameters)
 MSSOTLPlatoonPolicy (MSSOTLPolicyDesirability *desirabilityAlgorithm)
 MSSOTLPlatoonPolicy (MSSOTLPolicyDesirability *desirabilityAlgorithm, const Parameterised::Map &parameters)
virtual void setParameter (const std::string &key, const std::string &value)
 Sets a parameter.
void setParameters (const Parameterised &params)
 set the given key/value map in map<string, string> format
void setParameters (const std::vector< std::pair< std::string, std::string > > &params)
 set the given key/value vector in map<string, string> format
void setParametersStr (const std::string &paramsString, const std::string kvsep="=", const std::string sep="|")
 set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
virtual void setThetaSensitivity (double val)
void unsetParameter (const std::string &key)
 Removes a parameter.
void updateParameters (const Parameterised::Map &mapArg)
 Adds or updates all given parameters from the map.
void writeParams (OutputDevice &device) const
 write Params in the given outputdevice

Static Public Member Functions

static bool areAttributesValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|")
 check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas)
static bool areParametersValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|")
 check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"

Protected Member Functions

void init ()
void init (std::string prefix, const Parameterised *parameterised)
void init (std::string prefix, const Parameterised *parameterised)
bool pushButtonLogic (SUMOTime elapsed, bool pushButtonPressed, const MSPhaseDefinition *stage)
bool sigmoidLogic (SUMOTime elapsed, const MSPhaseDefinition *stage, int vehicleCount)

Protected Attributes

double m_k
std::string m_prefix
std::string m_prefix
double m_pushButtonScaleFactor
bool m_useSigmoid

Static Private Member Functions

static bool isParameterValid (const std::string &value, const std::string &kvsep, const std::string &sep)
 check if given string can be parsed to a parameter of type "key=value"

Private Attributes

MSSOTLPolicyDesirabilitymyDesirabilityAlgorithm
 A pointer to the policy desirability object.\nIt's an optional component related to the computeDesirability() method and it's necessary only when the policy is used in combination with an high level policy.
Parameterised::Map myMap
 The key->value map.
std::string myName
 The name of the policy.
double theta_sensitivity
 The sensitivity of this policy.

Detailed Description

Class for low-level platoon policy.

Definition at line 32 of file MSSOTLPlatoonPolicy.h.

Member Typedef Documentation

◆ Map

typedef std::map<std::string, std::string> Parameterised::Map
inherited

parameters map

Definition at line 45 of file Parameterised.h.

Constructor & Destructor Documentation

◆ MSSOTLPlatoonPolicy() [1/3]

MSSOTLPlatoonPolicy::MSSOTLPlatoonPolicy ( const Parameterised::Map & parameters)

Definition at line 29 of file MSSOTLPlatoonPolicy.cpp.

References init(), and MSSOTLPolicy::MSSOTLPolicy().

◆ MSSOTLPlatoonPolicy() [2/3]

MSSOTLPlatoonPolicy::MSSOTLPlatoonPolicy ( MSSOTLPolicyDesirability * desirabilityAlgorithm)

◆ MSSOTLPlatoonPolicy() [3/3]

MSSOTLPlatoonPolicy::MSSOTLPlatoonPolicy ( MSSOTLPolicyDesirability * desirabilityAlgorithm,
const Parameterised::Map & parameters )

Member Function Documentation

◆ areAttributesValid()

bool Parameterised::areAttributesValid ( const std::string & value,
bool report = false,
const std::string kvsep = "=",
const std::string sep = "|" )
staticinherited

check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas)

Definition at line 207 of file Parameterised.cpp.

References StringTokenizer::getVector(), invalid_return< std::string >::value, isParameterValid(), TL, and WRITE_WARNINGF.

◆ areParametersValid()

bool Parameterised::areParametersValid ( const std::string & value,
bool report = false,
const std::string kvsep = "=",
const std::string sep = "|" )
staticinherited

check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"

Definition at line 188 of file Parameterised.cpp.

References StringTokenizer::getVector(), invalid_return< std::string >::value, isParameterValid(), TL, and WRITE_WARNINGF.

Referenced by GNEAttributeCarrier::isCommonAttributeValid(), and GNETLSEditorFrame::TLSAttributes::isValidParameters().

Here is the caller graph for this function:

◆ canRelease()

bool MSSOTLPlatoonPolicy::canRelease ( SUMOTime elapsed,
bool thresholdPassed,
bool pushButtonPressed,
const MSPhaseDefinition * stage,
int vehicleCount )
virtual

◆ clearParameter()

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 118 of file Parameterised.cpp.

References myMap.

◆ computeDesirability() [1/2]

double MSSOTLPolicy::computeDesirability ( double vehInMeasure,
double vehOutMeasure )
inherited

Definition at line 120 of file MSSOTLPolicy.cpp.

References getName(), myDesirabilityAlgorithm, and WRITE_MESSAGE.

◆ computeDesirability() [2/2]

double MSSOTLPolicy::computeDesirability ( double vehInMeasure,
double vehOutMeasure,
double vehInDispersionMeasure,
double vehOutDispersionMeasure )
inherited

Computes the desirability of this policy, necessary when used in combination with an high level policy.

Definition at line 111 of file MSSOTLPolicy.cpp.

References getName(), myDesirabilityAlgorithm, and WRITE_MESSAGE.

◆ decideNextPhase()

int MSSOTLPolicy::decideNextPhase ( SUMOTime elapsed,
const MSPhaseDefinition * stage,
int currentPhaseIndex,
int phaseMaxCTS,
bool thresholdPassed,
bool pushButtonPressed,
int vehicleCount )
virtualinherited

◆ getDesirabilityAlgorithm()

◆ getDouble()

◆ getName()

std::string MSSOTLPolicy::getName ( )
inlineinherited

Definition at line 114 of file MSSOTLPolicy.h.

References myName.

Referenced by computeDesirability(), computeDesirability(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSSOTLPolicyBasedTrafficLightLogic::MSSOTLPolicyBasedTrafficLightLogic(), and MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic().

Here is the caller graph for this function:

◆ getParameter()

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

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

Reimplemented in MSActuatedTrafficLightLogic, MSSimpleTrafficLightLogic, and NEMALogic.

Definition at line 90 of file Parameterised.cpp.

References myMap.

Referenced by MSPModel_JuPedSim::add(), NBRailwayTopologyAnalyzer::addBidiEdge(), NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), NBEdgeCont::attachRemoved(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSRailSignal::constraintsAllow(), GUINet::createTLWrapper(), GNEEdge::drawEdgeName(), GNEConnection::drawEdgeValues(), GNEGenericData::drawFilteredAttribute(), GUIEdge::drawGL(), GUIPointOfInterest::drawGL(), GNEPOI::drawPOI(), EnergyParams::EnergyParams(), MSPModel_JuPedSim::execute(), MSDevice_SSM::filterByConflictType(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), GUIBusStop::finishedLoading(), MSStoppingPlace::finishedLoading(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GUIEdge::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), RORoutable::getMaxSpeed(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), MSBaseVehicle::getPrefixedParameter(), GNETAZRelData::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), SUMOTrafficObject::getStringParam(), MSRailSignalConstraint::getVeh(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSStoppingPlaceRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSInsertionControl::hasTaxiDeviceType(), MSRailSignalControl::haveDeadlock(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), MSStageDriving::init(), PushButtonLogic::init(), SigmoidLogic::init(), SUMOVTypeParameter::initRailVisualizationParameters(), NWWriter_OpenDrive::mapmatchRoadObjects(), mergeParameters(), MSDispatch_Greedy::MSDispatch_Greedy(), MSDispatch_GreedyShared::MSDispatch_GreedyShared(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), MSVehicle::slowDownForSchedule(), NBEdgeCont::splitAt(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), NBEdge::updateRemovedNodes(), MSDevice_SSM::useGeoCoords(), MSDevice_SSM::writeLanesPositions(), NWWriter_DlrNavteq::writeLinksUnsplitted(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPOI(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().

◆ getParametersMap()

const Parameterised::Map & Parameterised::getParametersMap ( ) const
inherited

◆ getParametersStr()

std::string Parameterised::getParametersStr ( const std::string kvsep = "=",
const std::string sep = "|" ) const
inherited

Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".

Definition at line 130 of file Parameterised.cpp.

References myMap.

Referenced by GNEAttributeCarrier::getCommonAttribute().

Here is the caller graph for this function:

◆ getThetaSensitivity()

virtual double MSSOTLPolicy::getThetaSensitivity ( )
inlinevirtualinherited

Definition at line 108 of file MSSOTLPolicy.h.

References theta_sensitivity.

Referenced by MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic().

Here is the caller graph for this function:

◆ hasParameter()

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

Returns whether the parameter is set.

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

Definition at line 84 of file Parameterised.cpp.

References myMap.

Referenced by MSStageWalking::activateEntryReminders(), NBEdge::append(), MSVehicleType::build(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), GUINet::createTLWrapper(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), GUIBusStop::finishedLoading(), NWWriter_DlrNavteq::getBrunnelType(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GNETAZRelData::getScaleValue(), MSStoppingPlaceRerouter::getWeight(), MSStageDriving::init(), SUMOVTypeParameter::initRailVisualizationParameters(), MSEdge::insertVehicle(), NWWriter_OpenDrive::mapmatchRoadObjects(), mergeParameters(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSVehicle::slowDownForSchedule(), MSDevice_SSM::useGeoCoords(), MSDevice_SSM::writeLanesPositions(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().

Here is the caller graph for this function:

◆ init() [1/3]

void MSSOTLPlatoonPolicy::init ( )
protectedvirtual

Reimplemented from MSSOTLPolicy.

Definition at line 74 of file MSSOTLPlatoonPolicy.cpp.

References PushButtonLogic::init(), and SigmoidLogic::init().

Referenced by MSSOTLPlatoonPolicy(), MSSOTLPlatoonPolicy(), and MSSOTLPlatoonPolicy().

Here is the caller graph for this function:

◆ init() [2/3]

void PushButtonLogic::init ( std::string prefix,
const Parameterised * parameterised )
protectedinherited

Definition at line 33 of file MSSOTLPolicy.cpp.

References Parameterised::getParameter(), m_prefix, m_pushButtonScaleFactor, StringUtils::toDouble(), and WRITE_MESSAGE.

Referenced by MSSOTLMarchingPolicy::init(), MSSOTLPhasePolicy::init(), and MSSOTLPlatoonPolicy::init().

Here is the caller graph for this function:

◆ init() [3/3]

void SigmoidLogic::init ( std::string prefix,
const Parameterised * parameterised )
protectedinherited

Definition at line 53 of file MSSOTLPolicy.cpp.

References Parameterised::getParameter(), m_k, m_prefix, m_useSigmoid, StringUtils::toDouble(), and WRITE_MESSAGE.

Referenced by MSSOTLPhasePolicy::init(), and MSSOTLPlatoonPolicy::init().

Here is the caller graph for this function:

◆ isParameterValid()

bool Parameterised::isParameterValid ( const std::string & value,
const std::string & kvsep,
const std::string & sep )
staticprivateinherited

check if given string can be parsed to a parameter of type "key=value"

Definition at line 242 of file Parameterised.cpp.

References StringTokenizer::getVector(), invalid_return< std::string >::value, and SUMOXMLDefinitions::isValidParameterKey().

Referenced by areAttributesValid(), and areParametersValid().

Here is the caller graph for this function:

◆ mergeParameters()

void Parameterised::mergeParameters ( const Parameterised::Map & mapArg,
const std::string separator = " ",
bool uniqueValues = true )
inherited

Adds or appends all given parameters from the map.

Parameters
[in]mapArgThe keys/values to insert

Definition at line 65 of file Parameterised.cpp.

References getParameter(), hasParameter(), and setParameter().

Referenced by NBEdge::append().

Here is the caller graph for this function:

◆ pushButtonLogic()

bool PushButtonLogic::pushButtonLogic ( SUMOTime elapsed,
bool pushButtonPressed,
const MSPhaseDefinition * stage )
protectedinherited

Definition at line 39 of file MSSOTLPolicy.cpp.

References MSPhaseDefinition::duration, m_prefix, m_pushButtonScaleFactor, and WRITE_MESSAGE.

Referenced by MSSOTLMarchingPolicy::canRelease(), MSSOTLPhasePolicy::canRelease(), and MSSOTLPlatoonPolicy::canRelease().

Here is the caller graph for this function:

◆ setParameter()

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

Sets a parameter.

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

Reimplemented in MSActuatedTrafficLightLogic, MSRailCrossing, MSRailSignal, MSSimpleTrafficLightLogic, and NEMALogic.

Definition at line 45 of file Parameterised.cpp.

References invalid_return< std::string >::value, and myMap.

Referenced by MSCFModel_CACC::_v(), NBRailwayTopologyAnalyzer::addBidiEdge(), NLHandler::addDistrict(), NBOwnTLDef::buildNemaPhases(), NLJunctionControlBuilder::closeTrafficLightLogic(), MSCFModel_CACC::freeSpeed(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), mergeParameters(), MSDevice_Bluelight::notifyMove(), MSDevice_Bluelight::resetVehicle(), GNEVType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), LIBSUMO_NAMESPACE::Simulation::setParameter(), MSActuatedTrafficLightLogic::setParameter(), MSRailCrossing::setParameter(), MSRailSignal::setParameter(), MSSimpleTrafficLightLogic::setParameter(), NEMALogic::setParameter(), setParametersStr(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), updateParameters(), NBEdge::updateRemovedNodes(), NWWriter_OpenDrive::writeNetwork(), and NIImporter_OpenDrive::writeRoadObjects().

Here is the caller graph for this function:

◆ setParameters() [1/2]

void Parameterised::setParameters ( const Parameterised & params)
inherited

set the given key/value map in map<string, string> format

Definition at line 146 of file Parameterised.cpp.

References getParametersMap(), myMap, and Parameterised().

Referenced by GNEVehicleFrame::buildVehicleOverRoute(), MSStageDriving::clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), GNEVehicleFrame::createPath(), and MSStageTrip::reroute().

Here is the caller graph for this function:

◆ setParameters() [2/2]

void Parameterised::setParameters ( const std::vector< std::pair< std::string, std::string > > & params)
inherited

set the given key/value vector in map<string, string> format

Definition at line 152 of file Parameterised.cpp.

References myMap.

◆ setParametersStr()

void Parameterised::setParametersStr ( const std::string & paramsString,
const std::string kvsep = "=",
const std::string sep = "|" )
inherited

set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"

Parameters
[in]paramsStringA serialized key-value map
[in]kvsepThe separater between key and value
[in]sepThe separater between map entries

Definition at line 161 of file Parameterised.cpp.

References StringTokenizer::getVector(), myMap, and setParameter().

Referenced by MSDevice_Taxi::initDispatch(), and GNEAttributeCarrier::setCommonAttribute().

Here is the caller graph for this function:

◆ setThetaSensitivity()

virtual void MSSOTLPolicy::setThetaSensitivity ( double val)
inlinevirtualinherited

Definition at line 111 of file MSSOTLPolicy.h.

References theta_sensitivity.

◆ sigmoidLogic()

bool SigmoidLogic::sigmoidLogic ( SUMOTime elapsed,
const MSPhaseDefinition * stage,
int vehicleCount )
protectedinherited

Definition at line 69 of file MSSOTLPolicy.cpp.

References MSPhaseDefinition::duration, m_k, m_prefix, m_useSigmoid, RandHelper::rand(), STEPS2TIME, and WRITE_MESSAGE.

Referenced by MSSOTLPhasePolicy::canRelease(), and MSSOTLPlatoonPolicy::canRelease().

Here is the caller graph for this function:

◆ 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 myMap.

Referenced by NIImporter_OpenStreetMap::insertEdge(), MSLane::isInsertionSuccess(), GNEVType::setAttribute(), and LIBSUMO_NAMESPACE::TrafficLight::swapParameters().

Here is the caller graph for this function:

◆ updateParameters()

void Parameterised::updateParameters ( const Parameterised::Map & mapArg)
inherited

◆ writeParams()

void Parameterised::writeParams ( OutputDevice & device) const
inherited

write Params in the given outputdevice

Definition at line 176 of file Parameterised.cpp.

References OutputDevice::closeTag(), StringUtils::escapeXML(), myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().

Referenced by MSStageWaiting::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MSRailSignalConstraint_Predecessor::write(), NBPTStop::write(), SUMOVehicleParameter::Stop::write(), SUMOVTypeParameter::write(), GNEBusStop::writeAdditional(), GNECalibrator::writeAdditional(), GNECalibratorFlow::writeAdditional(), GNEChargingStation::writeAdditional(), GNEContainerStop::writeAdditional(), GNEEntryExitDetector::writeAdditional(), GNEInductionLoopDetector::writeAdditional(), GNEInstantInductionLoopDetector::writeAdditional(), GNELaneAreaDetector::writeAdditional(), GNEMultiEntryExitDetector::writeAdditional(), GNEOverheadWire::writeAdditional(), GNEParkingArea::writeAdditional(), GNEParkingSpace::writeAdditional(), GNEPOI::writeAdditional(), GNEPoly::writeAdditional(), GNERerouter::writeAdditional(), GNERouteProbe::writeAdditional(), GNETAZ::writeAdditional(), GNETractionSubstation::writeAdditional(), GNEVaporizer::writeAdditional(), GNEVariableSpeedSign::writeAdditional(), NWWriter_SUMO::writeConnection(), GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), GNERoute::writeDemandElement(), GNEVehicle::writeDemandElement(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeLane(), NWWriter_SUMO::writeTrafficLight(), PointOfInterest::writeXML(), and SUMOPolygon::writeXML().

Here is the caller graph for this function:

Field Documentation

◆ m_k

double SigmoidLogic::m_k
protectedinherited

Definition at line 52 of file MSSOTLPolicy.h.

Referenced by init(), and sigmoidLogic().

◆ m_prefix [1/2]

std::string PushButtonLogic::m_prefix
protectedinherited

Definition at line 42 of file MSSOTLPolicy.h.

Referenced by init(), and pushButtonLogic().

◆ m_prefix [2/2]

std::string SigmoidLogic::m_prefix
protectedinherited

Definition at line 53 of file MSSOTLPolicy.h.

Referenced by init(), and sigmoidLogic().

◆ m_pushButtonScaleFactor

double PushButtonLogic::m_pushButtonScaleFactor
protectedinherited

Definition at line 41 of file MSSOTLPolicy.h.

Referenced by init(), and pushButtonLogic().

◆ m_useSigmoid

bool SigmoidLogic::m_useSigmoid
protectedinherited

Definition at line 51 of file MSSOTLPolicy.h.

Referenced by init(), and sigmoidLogic().

◆ myDesirabilityAlgorithm

MSSOTLPolicyDesirability* MSSOTLPolicy::myDesirabilityAlgorithm
privateinherited

A pointer to the policy desirability object.\nIt's an optional component related to the computeDesirability() method and it's necessary only when the policy is used in combination with an high level policy.

Definition at line 76 of file MSSOTLPolicy.h.

Referenced by computeDesirability(), computeDesirability(), getDesirabilityAlgorithm(), MSSOTLPolicy(), and MSSOTLPolicy().

◆ myMap

◆ myName

std::string MSSOTLPolicy::myName
privateinherited

The name of the policy.

Definition at line 71 of file MSSOTLPolicy.h.

Referenced by getName(), MSSOTLPolicy(), MSSOTLPolicy(), and MSSOTLPolicy().

◆ theta_sensitivity

double MSSOTLPolicy::theta_sensitivity
privateinherited

The sensitivity of this policy.

Definition at line 67 of file MSSOTLPolicy.h.

Referenced by getThetaSensitivity(), MSSOTLPolicy(), MSSOTLPolicy(), MSSOTLPolicy(), and setThetaSensitivity().


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