 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
21 const std::map<std::string, std::string>& parameters) :
33 const std::map<std::string, std::string>& parameters) :
34 MSSOTLPolicy(
"Congestion", desirabilityAlgorithm, parameters) {
41 int ,
bool thresholdPassed,
bool pushButtonPressed,
int vehicleCount) {
44 return currentPhaseIndex;
49 return currentPhaseIndex + 1;
53 if (
canRelease(elapsed, thresholdPassed, pushButtonPressed, stage, vehicleCount)) {
54 return currentPhaseIndex + 1;
58 return currentPhaseIndex;
Class for a low-level policy.
void setKeyPrefix(std::string val)
int decideNextPhase(SUMOTime elapsed, const MSPhaseDefinition *stage, int currentPhaseIndex, int phaseMaxCTS, bool thresholdPassed, bool pushButtonPressed, int vehicleCount)
MSSOTLPolicyDesirability * getDesirabilityAlgorithm()
bool isDecisional() const
bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)
MSSOTLCongestionPolicy(const std::map< std::string, std::string > ¶meters)
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...
SUMOTime minDuration
The minimum duration of the phase.