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 /****************************************************************************/
16 // The class for SOTL Platoon logics
17 /****************************************************************************/
18 #ifndef MSTLPlatoonPolicy_h
19 #define MSTLPlatoonPolicy_h
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #define SWARM_DEBUG
28 #include "MSSOTLPolicy.h"
29 
30 
37 
38 public:
39  MSSOTLPlatoonPolicy(const std::map<std::string, std::string>& parameters);
40  MSSOTLPlatoonPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm);
41 
42  MSSOTLPlatoonPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm,
43  const std::map<std::string, std::string>& parameters);
44 
45  bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed,
46  const MSPhaseDefinition* stage, int vehicleCount);
47 
48 protected:
49  void init();
50 };
51 
52 #endif
53 /****************************************************************************/
long long int SUMOTime
Definition: SUMOTime.h:35
Class for low-level platoon policy.
bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)
This class determines the desirability algorithm of a MSSOTLPolicy when used in combination with a hi...
Class for a low-level policy.
Definition: MSSOTLPolicy.h:65
The definition of a single phase of a tls logic.
MSSOTLPlatoonPolicy(const std::map< std::string, std::string > &parameters)