Class PerceivedDistance
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.object.PerceivedObjectBase
org.opentrafficsim.road.gtu.lane.perception.object.PerceivedDistance
- All Implemented Interfaces:
Comparable<PerceivedObject>,Identifiable,PerceivedObject
Generic class for any static object at a distance, without specifying what the object type is.
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.lane.perception.object.PerceivedObject
PerceivedObject.Kinematics, PerceivedObject.ObjectType -
Constructor Summary
ConstructorsConstructorDescriptionPerceivedDistance(Length distance) Construct a new Headway information object with just a distance, without any further information about the object; it assumes a speed of 0 at the headway, so it also good to store information about a lane drop. -
Method Summary
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.object.PerceivedObjectBase
getId, getKinematics, getLength, getObjectTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.road.gtu.lane.perception.object.PerceivedObject
compareTo, getAcceleration, getDistance, getSpeed
-
Constructor Details
-
PerceivedDistance
Construct a new Headway information object with just a distance, without any further information about the object; it assumes a speed of 0 at the headway, so it also good to store information about a lane drop.- Parameters:
distance- the distance that needs to be stored.
-
-
Method Details
-
equals
Description copied from class:PerceivedObjectBase- Overrides:
equalsin classPerceivedObjectBase
-
hashCode
public int hashCode()Description copied from class:PerceivedObjectBase- Overrides:
hashCodein classPerceivedObjectBase
-
toString
Description copied from class:PerceivedObjectBase- Overrides:
toStringin classPerceivedObjectBase
-