Eclipse SUMO - Simulation of Urban MObility
MSSOTLPhasePolicy.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2010-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 Phase logics
16 /****************************************************************************/
17 #ifndef MSTLPhasePolicy_h
18 #define MSTLPhasePolicy_h
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include "MSSOTLPolicy.h"
26 #define SWARM_DEBUG
34 
35 public:
36  MSSOTLPhasePolicy(const std::map<std::string, std::string>& parameters);
37  MSSOTLPhasePolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm);
38 
39  MSSOTLPhasePolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm,
40  const std::map<std::string, std::string>& parameters);
41 
42  bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed,
43  const MSPhaseDefinition* stage, int vehicleCount);
44 protected:
45  void init();
47 };
48 
49 #endif
50 /****************************************************************************/
MSSOTLPolicy
Class for a low-level policy.
Definition: MSSOTLPolicy.h:64
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
MSSOTLPhasePolicy::MSSOTLPhasePolicy
MSSOTLPhasePolicy(const std::map< std::string, std::string > &parameters)
Definition: MSSOTLPhasePolicy.cpp:23
MSSOTLPolicy.h
SigmoidLogic
Definition: MSSOTLPolicy.h:48
MSSOTLPhasePolicy::init
void init()
Definition: MSSOTLPhasePolicy.cpp:63
MSSOTLPhasePolicy
Class for low-level phase policy.
Definition: MSSOTLPhasePolicy.h:33
PushButtonLogic
Definition: MSSOTLPolicy.h:38
config.h
SwarmDebug.h
MSPhaseDefinition
The definition of a single phase of a tls logic.
Definition: MSPhaseDefinition.h:51
MSSOTLPhasePolicy::canRelease
bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)
Definition: MSSOTLPhasePolicy.cpp:41
MSSOTLPolicyDesirability
This class determines the desirability algorithm of a MSSOTLPolicy when used in combination with a hi...
Definition: MSSOTLPolicyDesirability.h:35
MSSOTLPhasePolicy::m_useVehicleTypesWeights
bool m_useVehicleTypesWeights
Definition: MSSOTLPhasePolicy.h:46