public interface TrafficLightController extends Identifiable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Method and Description |
|---|---|
void |
addTrafficLightToPhase(int phaseId,
TrafficLight trafficLight)
Add a traffic light to a phase.
|
Duration |
getClearanceDurationToNextPhase() |
int |
getCurrentPhase() |
String |
getId() |
int |
getNumberOfPhases() |
String getId()
getId in interface Identifiableint getNumberOfPhases()
int getCurrentPhase()
Duration getClearanceDurationToNextPhase()
void addTrafficLightToPhase(int phaseId,
TrafficLight trafficLight)
throws TrafficLightException
phaseId - int; the id of the phase.trafficLight - TrafficLight; the traffic light to addTrafficLightException - when the phase was not createdCopyright © 2014–2018 Delft University of Technology. All rights reserved.