SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MSSOTLCongestionPolicy.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // The class for SOTL Congestion logics
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright 2001-2009 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 
22 #ifndef MSTLCONGESTIONPOLICY_H_
23 #define MSTLCONGESTIONPOLICY_H_
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 
35 #include "MSSOTLPolicy.h"
42 
43 public:
45  const std::map<std::string, std::string>& parameters);
46 
47  MSSOTLCongestionPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm);
48 
49  MSSOTLCongestionPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm,
50  const std::map<std::string, std::string>& parameters);
51 
52  int decideNextPhase(SUMOTime elapsed, const MSPhaseDefinition* stage,
53  int currentPhaseIndex, int phaseMaxCTS, bool thresholdPassed, bool pushButtonPressed,
54  int vehicleCount);
55 
56  bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed,
57  const MSPhaseDefinition* stage, int vehicleCount);
58 
59 };
60 
61 #endif /* MSSOTLCONGESTIONTRAFFICLIGHTLOGIC_H_ */
long long int SUMOTime
Definition: SUMOTime.h:43
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 > &parameters)
bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)
This class determines the desirability algorithm of a MSSOTLPolicy when used in combination with a hi...
Class for a low-level policy.
Definition: MSSOTLPolicy.h:72
Class for low-level congestion policy.
The definition of a single phase of a tls logic.