Class HeadwayStopLine
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.headway.AbstractHeadway
org.opentrafficsim.road.gtu.lane.perception.headway.AbstractHeadwayCopy
org.opentrafficsim.road.gtu.lane.perception.headway.AbstractHeadwayLaneBasedObject
org.opentrafficsim.road.gtu.lane.perception.headway.HeadwayStopLine
- All Implemented Interfaces:
Serializable,Comparable<Headway>,org.djutils.base.Identifiable,PerceivedObject,Headway,HeadwayLaneBasedObject
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.lane.perception.headway.Headway
Headway.ObjectType -
Constructor Summary
ConstructorsConstructorDescriptionHeadwayStopLine(String id, org.djunits.value.vdouble.scalar.Length distance, Lane lane) Construct a new HeadwayStopLine. -
Method Summary
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.headway.AbstractHeadwayLaneBasedObject
getLaneMethods inherited from class org.opentrafficsim.road.gtu.lane.perception.headway.AbstractHeadwayCopy
equals, getAcceleration, getId, getLength, getObjectType, getSpeed, hashCodeMethods inherited from class org.opentrafficsim.road.gtu.lane.perception.headway.AbstractHeadway
getDistance, getOverlap, getOverlapFront, getOverlapRear, isAhead, isBehind, isParallelMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.road.gtu.lane.perception.headway.Headway
compareTo, getAcceleration, getDistance, getId, getLength, getObjectType, getOverlap, getOverlapFront, getOverlapRear, getSpeed, isAhead, isBehind, isParallel
-
Constructor Details
-
HeadwayStopLine
public HeadwayStopLine(String id, org.djunits.value.vdouble.scalar.Length distance, Lane lane) throws GtuException Construct a new HeadwayStopLine.- Parameters:
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; lane- Throws:
GtuException- when id is null, or parameters are inconsistent
-
-
Method Details
-
toString
- Overrides:
toStringin classAbstractHeadway
-