public final class HeadwayStopLine extends AbstractHeadwayLaneBasedObject
Copyright (c) 2013-2019 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 |
---|
HeadwayStopLine(String id,
Length distance,
Lane lane)
Construct a new HeadwayStopLine.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
getLane
equals, getAcceleration, getId, getLength, getObjectType, getSpeed, hashCode
getDistance, getOverlap, getOverlapFront, getOverlapRear, isAhead, isBehind, isParallel
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getAcceleration, getDistance, getId, getLength, getObjectType, getOverlap, getOverlapFront, getOverlapRear, getSpeed, isAhead, isBehind, isParallel
public HeadwayStopLine(String id, Length distance, Lane lane) throws GTUException
id
- String; the id of the object for comparison purposes, can not be null.distance
- the distance to the other object; if this constructor is used, distance cannot be null.lane
- Lane; laneGTUException
- when id is null, or parameters are inconsistentpublic String toString()
toString
in class AbstractHeadway
Copyright © 2014–2019 Delft University of Technology. All rights reserved.