SUMO - Simulation of Urban MObility
MSSOTLPlatoonTrafficLightLogic.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 /****************************************************************************/
17 // The class for SOTL Platoon logics
18 /****************************************************************************/
19 #ifndef MSSOTLPlatoonTrafficLightLogic_h
20 #define MSSOTLPlatoonTrafficLightLogic_h
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #ifdef _MSC_VER
26 #include <windows_config.h>
27 #else
28 #include <config.h>
29 #endif
30 
33 public:
44  const std::string& id, const std::string& subid,
45  const Phases& phases, int step, SUMOTime delay,
46  const std::map<std::string, std::string>& parameters) throw();
47 
58  const std::string& id, const std::string& subid,
59  const Phases& phases, int step, SUMOTime delay,
60  const std::map<std::string, std::string>& parameters,
61  MSSOTLSensors* sensors) throw();
62 
63 protected:
64 
65  /*
66  * @brief Contains the logic to decide whether to release the green light
67  */
68  bool canRelease() throw();
69 };
70 
71 #endif
72 /****************************************************************************/
A class that stores and controls tls and switching of their programs.
MSSOTLPlatoonTrafficLightLogic(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 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:51