 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
90 const std::map<std::string, std::string>& parameters);
102 const std::map<std::string, std::string>& parameters);
108 int currentPhaseIndex,
int phaseMaxCTS,
bool thresholdPassed,
bool pushButtonPressed,
126 double computeDesirability(
double vehInMeasure,
double vehOutMeasure,
double vehInDispersionMeasure,
double vehOutDispersionMeasure);
virtual int decideNextPhase(SUMOTime elapsed, const MSPhaseDefinition *stage, int currentPhaseIndex, int phaseMaxCTS, bool thresholdPassed, bool pushButtonPressed, int vehicleCount)
Class for a low-level policy.
virtual double getThetaSensitivity()
An upper class for objects with additional parameters.
void init(std::string prefix, const Parameterised *parameterised)
bool sigmoidLogic(SUMOTime elapsed, const MSPhaseDefinition *stage, int vehicleCount)
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 polic...
MSSOTLPolicy(std::string name, const std::map< std::string, std::string > ¶meters)
Simple constructor.
MSSOTLPolicyDesirability * getDesirabilityAlgorithm()
double theta_sensitivity
The sensitivity of this policy.
virtual void setThetaSensitivity(double val)
virtual bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)=0
The definition of a single phase of a tls logic.
This class determines the desirability algorithm of a MSSOTLPolicy when used in combination with a hi...
std::string myName
The name of the policy.
MSSOTLPolicyDesirability * myDesirabilityAlgorithm
A pointer to the policy desirability object.\nIt's an optional component related to the computeDesira...