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 /****************************************************************************/
15 // The class for SOTL Congestion logics
16 /****************************************************************************/
17 
18 #ifndef MSTLCONGESTIONPOLICY_H_
19 #define MSTLCONGESTIONPOLICY_H_
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 
27 #include "MSSOTLPolicy.h"
34 
35 public:
37  const std::map<std::string, std::string>& parameters);
38 
39  MSSOTLCongestionPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm);
40 
41  MSSOTLCongestionPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm,
42  const std::map<std::string, std::string>& parameters);
43 
44  int decideNextPhase(SUMOTime elapsed, const MSPhaseDefinition* stage,
45  int currentPhaseIndex, int phaseMaxCTS, bool thresholdPassed, bool pushButtonPressed,
46  int vehicleCount);
47 
48  bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed,
49  const MSPhaseDefinition* stage, int vehicleCount);
50 
51 };
52 
53 #endif /* MSSOTLCONGESTIONTRAFFICLIGHTLOGIC_H_ */
MSSOTLPolicy
Class for a low-level policy.
Definition: MSSOTLPolicy.h:64
MSSOTLCongestionPolicy::decideNextPhase
int decideNextPhase(SUMOTime elapsed, const MSPhaseDefinition *stage, int currentPhaseIndex, int phaseMaxCTS, bool thresholdPassed, bool pushButtonPressed, int vehicleCount)
Definition: MSSOTLCongestionPolicy.cpp:39
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
MSSOTLCongestionPolicy
Class for low-level congestion policy.
Definition: MSSOTLCongestionPolicy.h:33
MSSOTLPolicy.h
MSSOTLCongestionPolicy::canRelease
bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)
Definition: MSSOTLCongestionPolicy.cpp:61
MSSOTLCongestionPolicy::MSSOTLCongestionPolicy
MSSOTLCongestionPolicy(const std::map< std::string, std::string > &parameters)
Definition: MSSOTLCongestionPolicy.cpp:20
config.h
MSPhaseDefinition
The definition of a single phase of a tls logic.
Definition: MSPhaseDefinition.h:51
MSSOTLPolicyDesirability
This class determines the desirability algorithm of a MSSOTLPolicy when used in combination with a hi...
Definition: MSSOTLPolicyDesirability.h:35