Eclipse SUMO - Simulation of Urban MObility
MSSOTLPlatoonPolicy.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 Platoon logics
16 /****************************************************************************/
17 #ifndef MSTLPlatoonPolicy_h
18 #define MSTLPlatoonPolicy_h
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #define SWARM_DEBUG
27 #include "MSSOTLPolicy.h"
28 
29 
36 
37 public:
38  MSSOTLPlatoonPolicy(const std::map<std::string, std::string>& parameters);
39  MSSOTLPlatoonPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm);
40 
41  MSSOTLPlatoonPolicy(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 #endif
52 /****************************************************************************/
MSSOTLPolicy
Class for a low-level policy.
Definition: MSSOTLPolicy.h:64
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
MSSOTLPlatoonPolicy::init
void init()
Definition: MSSOTLPlatoonPolicy.cpp:65
MSSOTLPolicy.h
SigmoidLogic
Definition: MSSOTLPolicy.h:48
MSSOTLPlatoonPolicy::canRelease
bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)
Definition: MSSOTLPlatoonPolicy.cpp:39
PushButtonLogic
Definition: MSSOTLPolicy.h:38
MSSOTLPlatoonPolicy::MSSOTLPlatoonPolicy
MSSOTLPlatoonPolicy(const std::map< std::string, std::string > &parameters)
Definition: MSSOTLPlatoonPolicy.cpp:21
config.h
SwarmDebug.h
MSSOTLPlatoonPolicy
Class for low-level platoon policy.
Definition: MSSOTLPlatoonPolicy.h:35
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