SUMO - Simulation of Urban MObility
MSSOTLPhasePolicy.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // The class for SOTL Phase logics
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright 2001-2009 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 MSTLPhasePolicy_h
22 #define MSTLPhasePolicy_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 #include "MSSOTLPolicy.h"
34 #define SWARM_DEBUG
42 
43 public:
44  MSSOTLPhasePolicy(const std::map<std::string, std::string>& parameters);
45  MSSOTLPhasePolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm);
46 
47  MSSOTLPhasePolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm,
48  const std::map<std::string, std::string>& parameters);
49 
50  bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed,
51  const MSPhaseDefinition* stage, int vehicleCount);
52 protected:
53  void init();
55 };
56 
57 #endif
58 /****************************************************************************/
long long int SUMOTime
Definition: SUMOTime.h:43
MSSOTLPhasePolicy(const std::map< std::string, std::string > &parameters)
This class determines the desirability algorithm of a MSSOTLPolicy when used in combination with a hi...
Class for low-level phase policy.
Class for a low-level policy.
Definition: MSSOTLPolicy.h:72
The definition of a single phase of a tls logic.
bool canRelease(SUMOTime elapsed, bool thresholdPassed, bool pushButtonPressed, const MSPhaseDefinition *stage, int vehicleCount)