22 const std::map<std::string, std::string>& parameters) :
34 const std::map<std::string, std::string>& parameters) :
35 MSSOTLPolicy(
"Congestion", desirabilityAlgorithm, parameters) {
42 int ,
bool thresholdPassed,
bool pushButtonPressed,
int vehicleCount) {
45 return currentPhaseIndex;
50 return currentPhaseIndex + 1;
54 if (
canRelease(elapsed, thresholdPassed, pushButtonPressed, stage, vehicleCount)) {
55 return currentPhaseIndex + 1;
59 return currentPhaseIndex;
int decideNextPhase(SUMOTime elapsed, const MSPhaseDefinition *stage, int currentPhaseIndex, int phaseMaxCTS, bool thresholdPassed, bool pushButtonPressed, int vehicleCount)
MSSOTLCongestionPolicy(const std::map< std::string, std::string > ¶meters)
bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)
MSSOTLPolicyDesirability * getDesirabilityAlgorithm()
void setKeyPrefix(std::string val)
This class determines the desirability algorithm of a MSSOTLPolicy when used in combination with a hi...
Class for a low-level policy.
SUMOTime minDuration
The minimum duration of the phase.
The definition of a single phase of a tls logic.
bool isDecisional() const