SUMO - Simulation of Urban MObility
MSSOTLPhaseTrafficLightLogic.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // The class for SOTL Phase logics
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2010-2017 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef MSSOTLPhaseTrafficLightLogic_h
21 #define MSSOTLPhaseTrafficLightLogic_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
36 public:
47  const std::string& id, const std::string& subid,
48  const Phases& phases, int step, SUMOTime delay, const std::map<std::string, std::string>& parameters) throw();
49 
60  const std::string& id, const std::string& subid,
61  const Phases& phases, int step, SUMOTime delay, const std::map<std::string, std::string>& parameters, MSSOTLSensors* sensors) throw();
62 
63 protected:
64 
65  /*
66  * @brief Contains the logic to decide the phase change
67  */
68  bool canRelease() throw();
69 };
70 
71 #endif
72 /****************************************************************************/
MSSOTLPhaseTrafficLightLogic(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &subid, const Phases &phases, int step, SUMOTime delay, const std::map< std::string, std::string > &parameters)
Constructor without sensors passed.
A class that stores and controls tls and switching of their programs.
A self-organizing traffic light logic.
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
long long int SUMOTime
Definition: TraCIDefs.h:52