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-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 Phase logics
16
/****************************************************************************/
17
#ifndef MSSOTLPhaseTrafficLightLogic_h
18
#define MSSOTLPhaseTrafficLightLogic_h
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
#include "
MSSOTLTrafficLightLogic.h
"
27
class
MSSOTLPhaseTrafficLightLogic
:
28
public
MSSOTLTrafficLightLogic
{
29
public
:
39
MSSOTLPhaseTrafficLightLogic
(
MSTLLogicControl
& tlcontrol,
40
const
std::string&
id
,
const
std::string& subid,
41
const
Phases
& phases,
int
step,
SUMOTime
delay,
const
std::map<std::string, std::string>& parameters);
42
52
MSSOTLPhaseTrafficLightLogic
(
MSTLLogicControl
& tlcontrol,
53
const
std::string&
id
,
const
std::string& subid,
54
const
Phases
& phases,
int
step,
SUMOTime
delay,
const
std::map<std::string, std::string>& parameters,
MSSOTLSensors
* sensors);
55
56
protected
:
57
58
/*
59
* @brief Contains the logic to decide the phase change
60
*/
61
bool
canRelease
();
62
};
63
64
#endif
65
/****************************************************************************/
SUMOTime
long long int SUMOTime
Definition:
SUMOTime.h:36
MSSOTLPhaseTrafficLightLogic::MSSOTLPhaseTrafficLightLogic
MSSOTLPhaseTrafficLightLogic(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &subid, const Phases &phases, int step, SUMOTime delay, const std::map< std::string, std::string > ¶meters)
Constructor without sensors passed.
Definition:
MSSOTLPhaseTrafficLightLogic.cpp:20
config.h
MSTLLogicControl
A class that stores and controls tls and switching of their programs.
Definition:
MSTLLogicControl.h:60
MSSOTLTrafficLightLogic
A self-organizing traffic light logic.
Definition:
MSSOTLTrafficLightLogic.h:59
MSSOTLSensors
Definition:
MSSOTLSensors.h:33
MSTrafficLightLogic::Phases
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
Definition:
MSTrafficLightLogic.h:62
MSSOTLPhaseTrafficLightLogic
Definition:
MSSOTLPhaseTrafficLightLogic.h:27
MSSOTLTrafficLightLogic.h
MSSOTLPhaseTrafficLightLogic::canRelease
bool canRelease()
Definition:
MSSOTLPhaseTrafficLightLogic.cpp:41
src
microsim
traffic_lights
MSSOTLPhaseTrafficLightLogic.h
Generated on Tue Sep 4 2018 00:12:13 for SUMO - Simulation of Urban MObility by
1.8.13