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