Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSSOTLPhaseTrafficLightLogic.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2010-2023 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// The class for SOTL Phase logics
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
26public:
37 const std::string& id, const std::string& programID,
38 const Phases& phases, int step, SUMOTime delay, const Parameterised::Map& parameters);
39
50 const std::string& id, const std::string& programID,
51 const Phases& phases, int step, SUMOTime delay, const Parameterised::Map& parameters, MSSOTLSensors* sensors);
52
53protected:
54
55 /*
56 * @brief Contains the logic to decide the phase change
57 */
58 bool canRelease();
59};
long long int SUMOTime
Definition GUI.h:36
A self-organizing traffic light logic.
A class that stores and controls tls and switching of their programs.
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
std::map< std::string, std::string > Map
parameters map