SUMO - Simulation of Urban MObility
MSSOTLMarchingPolicy.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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
19 // The class for SOTL Marching logics
20 /****************************************************************************/
21 
22 #ifndef MSTLMARCHINGPOLICY_H_
23 #define MSTLMARCHINGPOLICY_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 #include "MSSOTLPolicy.h"
41 
42 
43 public:
44  MSSOTLMarchingPolicy(const std::map<std::string, std::string>& parameters);
45  MSSOTLMarchingPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm);
46 
47  MSSOTLMarchingPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm,
48  const std::map<std::string, std::string>& parameters);
49 
50  bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed,
51  const MSPhaseDefinition* stage, int vehicleCount);
52 
53 protected:
54  void init();
55 
56 };
57 
58 #endif /* MSSOTLMARCHINGTRAFFICLIGHTLOGIC_H_ */
59 /****************************************************************************/
Class for low-level marching policy.
This class determines the desirability algorithm of a MSSOTLPolicy when used in combination with a hi...
MSSOTLMarchingPolicy(const std::map< std::string, std::string > &parameters)
Class for a low-level policy.
Definition: MSSOTLPolicy.h:71
long long int SUMOTime
Definition: TraCIDefs.h:51
The definition of a single phase of a tls logic.
bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)