SUMO - Simulation of Urban MObility
MSSOTLPlatoonPolicy.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // The class for SOTL Platoon logics
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright (C) 2010-2017 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef MSTLPlatoonPolicy_h
22 #define MSTLPlatoonPolicy_h
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #define SWARM_DEBUG
35 #include "MSSOTLPolicy.h"
36 
37 
44 
45 public:
46  MSSOTLPlatoonPolicy(const std::map<std::string, std::string>& parameters);
47  MSSOTLPlatoonPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm);
48 
49  MSSOTLPlatoonPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm,
50  const std::map<std::string, std::string>& parameters);
51 
52  bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed,
53  const MSPhaseDefinition* stage, int vehicleCount);
54 
55 protected:
56  void init();
57 };
58 
59 #endif
60 /****************************************************************************/
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:72
long long int SUMOTime
Definition: TraCIDefs.h:52
The definition of a single phase of a tls logic.
MSSOTLPlatoonPolicy(const std::map< std::string, std::string > &parameters)