public interface TrafficLight extends nl.tudelft.simulation.dsol.animation.Locatable, LaneBasedObject
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
static nl.tudelft.simulation.event.EventType |
TRAFFICLIGHT_CHANGE_EVENT
The timed event type for pub/sub indicating the change of color of a traffic light.
|
Modifier and Type | Method and Description |
---|---|
TrafficLightColor |
getTrafficLightColor() |
void |
setTrafficLightColor(TrafficLightColor trafficLightColor)
Set the new traffic light color.
|
getBounds, getDirection, getLane, getLocation, getLongitudinalPosition, makeGeometry
static final nl.tudelft.simulation.event.EventType TRAFFICLIGHT_CHANGE_EVENT
TrafficLightColor getTrafficLightColor()
void setTrafficLightColor(TrafficLightColor trafficLightColor)
trafficLightColor
- set the trafficLightColorCopyright © 2014–2017 Delft University of Technology. All rights reserved.