Eclipse 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-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 /****************************************************************************/
17 // The class for SOTL Marching logics
18 /****************************************************************************/
19 
20 #ifndef MSTLMARCHINGPOLICY_H_
21 #define MSTLMARCHINGPOLICY_H_
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include "MSSOTLPolicy.h"
35 
36 
37 public:
38  MSSOTLMarchingPolicy(const std::map<std::string, std::string>& parameters);
39  MSSOTLMarchingPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm);
40 
41  MSSOTLMarchingPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm,
42  const std::map<std::string, std::string>& parameters);
43 
44  bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed,
45  const MSPhaseDefinition* stage, int vehicleCount);
46 
47 protected:
48  void init();
49 
50 };
51 
52 #endif /* MSSOTLMARCHINGTRAFFICLIGHTLOGIC_H_ */
53 /****************************************************************************/
long long int SUMOTime
Definition: SUMOTime.h:35
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:65
The definition of a single phase of a tls logic.
bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)