public class HeadwayTrafficLight extends AbstractHeadwayCopy
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.
Headway.ObjectType
Constructor and Description |
---|
HeadwayTrafficLight(TrafficLight 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, getId, getLength, getObjectType, getSpeed, hashCode
getDistance, getOverlap, getOverlapFront, getOverlapRear, isAhead, isBehind, isParallel
public HeadwayTrafficLight(TrafficLight 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–2017 Delft University of Technology. All rights reserved.