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-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // The class for SOTL Platoon logics
16 /****************************************************************************/
17 #ifndef MSSOTLPlatoonTrafficLightLogic_h
18 #define MSSOTLPlatoonTrafficLightLogic_h
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
27 public:
38  const std::string& id, const std::string& subid,
39  const Phases& phases, int step, SUMOTime delay,
40  const std::map<std::string, std::string>& parameters);
41 
52  const std::string& id, const std::string& subid,
53  const Phases& phases, int step, SUMOTime delay,
54  const std::map<std::string, std::string>& parameters,
55  MSSOTLSensors* sensors);
56 
57 protected:
58 
59  /*
60  * @brief Contains the logic to decide whether to release the green light
61  */
62  bool canRelease();
63 };
64 
65 #endif
66 /****************************************************************************/
long long int SUMOTime
Definition: SUMOTime.h:36
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.