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