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.dev/sumo
3
// Copyright (C) 2010-2024 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
23
#include "
MSSOTLTrafficLightLogic.h
"
24
class
MSSOTLPhaseTrafficLightLogic
:
25
public
MSSOTLTrafficLightLogic
{
26
public
:
36
MSSOTLPhaseTrafficLightLogic
(
MSTLLogicControl
& tlcontrol,
37
const
std::string&
id
,
const
std::string& programID,
38
const
Phases
& phases,
int
step,
SUMOTime
delay,
const
Parameterised::Map
& parameters);
39
49
MSSOTLPhaseTrafficLightLogic
(
MSTLLogicControl
& tlcontrol,
50
const
std::string&
id
,
const
std::string& programID,
51
const
Phases
& phases,
int
step,
SUMOTime
delay,
const
Parameterised::Map
& parameters,
MSSOTLSensors
* sensors);
52
53
protected
:
54
55
/*
56
* @brief Contains the logic to decide the phase change
57
*/
58
bool
canRelease
();
59
};
SUMOTime
long long int SUMOTime
Definition:
GUI.h:35
MSSOTLTrafficLightLogic.h
MSSOTLPhaseTrafficLightLogic
Definition:
MSSOTLPhaseTrafficLightLogic.h:25
MSSOTLPhaseTrafficLightLogic::canRelease
bool canRelease()
Definition:
MSSOTLPhaseTrafficLightLogic.cpp:44
MSSOTLPhaseTrafficLightLogic::MSSOTLPhaseTrafficLightLogic
MSSOTLPhaseTrafficLightLogic(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &programID, const Phases &phases, int step, SUMOTime delay, const Parameterised::Map ¶meters)
Constructor without sensors passed.
Definition:
MSSOTLPhaseTrafficLightLogic.cpp:23
MSSOTLSensors
Definition:
MSSOTLSensors.h:31
MSSOTLTrafficLightLogic
A self-organizing traffic light logic.
Definition:
MSSOTLTrafficLightLogic.h:55
MSTLLogicControl
A class that stores and controls tls and switching of their programs.
Definition:
MSTLLogicControl.h:59
MSTrafficLightLogic::Phases
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
Definition:
MSTrafficLightLogic.h:60
Parameterised::Map
std::map< std::string, std::string > Map
parameters map
Definition:
Parameterised.h:45
src
microsim
traffic_lights
MSSOTLPhaseTrafficLightLogic.h
Generated on Wed Jul 3 2024 00:16:23 for Eclipse SUMO - Simulation of Urban MObility by
1.9.1