SUMO - Simulation of Urban MObility
MSSOTLMarchingPolicy.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // The class for SOTL Marching logics
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright 2001-2009 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 
23 #ifndef MSTLMARCHINGPOLICY_H_
24 #define MSTLMARCHINGPOLICY_H_
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include "MSSOTLPolicy.h"
42 
43 
44 public:
45  MSSOTLMarchingPolicy(const std::map<std::string, std::string>& parameters);
46  MSSOTLMarchingPolicy(MSSOTLPolicyDesirability* desirabilityAlgorithm);
47 
48  MSSOTLMarchingPolicy(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 
59 #endif /* MSSOTLMARCHINGTRAFFICLIGHTLOGIC_H_ */
60 /****************************************************************************/
long long int SUMOTime
Definition: SUMOTime.h:43
Class for low-level marching policy.
This class determines the desirability algorithm of a MSSOTLPolicy when used in combination with a hi...
MSSOTLMarchingPolicy(const std::map< std::string, std::string > &parameters)
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)