Eclipse SUMO - Simulation of Urban MObility
MSSOTLCongestionPolicy.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2014-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
16 // The class for SOTL Congestion logics
17 /****************************************************************************/
18 
19 #ifndef MSTLCONGESTIONPOLICY_H_
20 #define MSTLCONGESTIONPOLICY_H_
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 
28 #include "MSSOTLPolicy.h"
35 
36 public:
38  const std::map<std::string, std::string>& parameters);
39 
40  MSSOTLCongestionPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm);
41 
42  MSSOTLCongestionPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm,
43  const std::map<std::string, std::string>& parameters);
44 
45  int decideNextPhase(SUMOTime elapsed, const MSPhaseDefinition* stage,
46  int currentPhaseIndex, int phaseMaxCTS, bool thresholdPassed, bool pushButtonPressed,
47  int vehicleCount);
48 
49  bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed,
50  const MSPhaseDefinition* stage, int vehicleCount);
51 
52 };
53 
54 #endif /* MSSOTLCONGESTIONTRAFFICLIGHTLOGIC_H_ */
MSSOTLPolicy
Class for a low-level policy.
Definition: MSSOTLPolicy.h:65
MSSOTLCongestionPolicy::decideNextPhase
int decideNextPhase(SUMOTime elapsed, const MSPhaseDefinition *stage, int currentPhaseIndex, int phaseMaxCTS, bool thresholdPassed, bool pushButtonPressed, int vehicleCount)
Definition: MSSOTLCongestionPolicy.cpp:40
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:35
MSSOTLCongestionPolicy
Class for low-level congestion policy.
Definition: MSSOTLCongestionPolicy.h:34
MSSOTLPolicy.h
MSSOTLCongestionPolicy::canRelease
bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)
Definition: MSSOTLCongestionPolicy.cpp:62
MSSOTLCongestionPolicy::MSSOTLCongestionPolicy
MSSOTLCongestionPolicy(const std::map< std::string, std::string > &parameters)
Definition: MSSOTLCongestionPolicy.cpp:21
config.h
MSPhaseDefinition
The definition of a single phase of a tls logic.
Definition: MSPhaseDefinition.h:52
MSSOTLPolicyDesirability
This class determines the desirability algorithm of a MSSOTLPolicy when used in combination with a hi...
Definition: MSSOTLPolicyDesirability.h:36