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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // The class for SOTL Platoon logics
19 /****************************************************************************/
20 #ifndef MSTLPlatoonPolicy_h
21 #define MSTLPlatoonPolicy_h
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #define SWARM_DEBUG
34 #include "MSSOTLPolicy.h"
35 
36 
43 
44 public:
45  MSSOTLPlatoonPolicy(const std::map<std::string, std::string>& parameters);
46  MSSOTLPlatoonPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm);
47 
48  MSSOTLPlatoonPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm,
49  const std::map<std::string, std::string>& parameters);
50 
51  bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed,
52  const MSPhaseDefinition* stage, int vehicleCount);
53 
54 protected:
55  void init();
56 };
57 
58 #endif
59 /****************************************************************************/
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:71
long long int SUMOTime
Definition: TraCIDefs.h:51
The definition of a single phase of a tls logic.
MSSOTLPlatoonPolicy(const std::map< std::string, std::string > &parameters)