Eclipse SUMO - Simulation of Urban MObility
MSSOTLPhaseTrafficLightLogic.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-2019 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 /****************************************************************************/
14 // The class for SOTL Phase logics
15 /****************************************************************************/
16 #ifndef MSSOTLPhaseTrafficLightLogic_h
17 #define MSSOTLPhaseTrafficLightLogic_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
28 public:
39  const std::string& id, const std::string& programID,
40  const Phases& phases, int step, SUMOTime delay, const std::map<std::string, std::string>& parameters);
41 
52  const std::string& id, const std::string& programID,
53  const Phases& phases, int step, SUMOTime delay, const std::map<std::string, std::string>& parameters, MSSOTLSensors* sensors);
54 
55 protected:
56 
57  /*
58  * @brief Contains the logic to decide the phase change
59  */
60  bool canRelease();
61 };
62 
63 #endif
64 /****************************************************************************/
MSSOTLTrafficLightLogic
A self-organizing traffic light logic.
Definition: MSSOTLTrafficLightLogic.h:58
MSSOTLPhaseTrafficLightLogic::canRelease
bool canRelease()
Definition: MSSOTLPhaseTrafficLightLogic.cpp:40
MSTrafficLightLogic::Phases
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
Definition: MSTrafficLightLogic.h:61
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
MSSOTLPhaseTrafficLightLogic::MSSOTLPhaseTrafficLightLogic
MSSOTLPhaseTrafficLightLogic(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &programID, const Phases &phases, int step, SUMOTime delay, const std::map< std::string, std::string > &parameters)
Constructor without sensors passed.
Definition: MSSOTLPhaseTrafficLightLogic.cpp:19
MSSOTLTrafficLightLogic.h
MSSOTLSensors
Definition: MSSOTLSensors.h:32
config.h
MSTLLogicControl
A class that stores and controls tls and switching of their programs.
Definition: MSTLLogicControl.h:59
MSSOTLPhaseTrafficLightLogic
Definition: MSSOTLPhaseTrafficLightLogic.h:26