public class HeadwayTrafficLight extends AbstractHeadway
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Headway.ObjectType
Constructor and Description |
---|
HeadwayTrafficLight(SimpleTrafficLight trafficLight,
org.djunits.value.vdouble.scalar.Length distance)
Construct a new Headway information object, for a traffic light ahead of us (or behind us, although that does not seem
very useful).
|
Modifier and Type | Method and Description |
---|---|
TrafficLightColor |
getTrafficLightColor() |
String |
toString() |
equals, getAcceleration, getDistance, getId, getLength, getObjectType, getOverlap, getOverlapFront, getOverlapRear, getSpeed, hashCode, isAhead, isBehind, isParallel
public HeadwayTrafficLight(SimpleTrafficLight trafficLight, org.djunits.value.vdouble.scalar.Length distance) throws org.opentrafficsim.core.gtu.GTUException
trafficLight
- the traffic light object for further observation, can not be null.distance
- the distance to the traffic light, distance cannot be null.org.opentrafficsim.core.gtu.GTUException
- when id is null, or parameters are inconsistentpublic final TrafficLightColor getTrafficLightColor()
public final String toString()
toString
in class AbstractHeadway
Copyright © 2014–2016 Delft University of Technology. All rights reserved.