Interface PerceivedObject
- All Superinterfaces:
Comparable<PerceivedObject>,Identifiable
- All Known Subinterfaces:
PerceivedConflict,PerceivedGtu,PerceivedLaneBasedObject
- All Known Implementing Classes:
LocalDistractionPerception.PerceivedLocalDistraction,PerceivedBusStop,PerceivedConflictFull,PerceivedDistance,PerceivedGtuBase,PerceivedGtuSimple,PerceivedLaneBasedObjectBase,PerceivedObjectBase,PerceivedTrafficLight,PerceivedTrafficLightChannel
Interface for perceived objects including kinematics. Kinematics describe either a static or dynamic object at a certain
distance of, or as adjacent to, a reference object (e.g. the perceiving GTU or a conflict).
Copyright (c) 2013-2026 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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceInformation on the kinematics of the perceived object.static enumType of object. -
Method Summary
Modifier and TypeMethodDescriptiondefault intcompareTo(PerceivedObject headway) default org.djunits.value.vdouble.scalar.AccelerationReturns the acceleration from the kinematics.default org.djunits.value.vdouble.scalar.LengthReturns the distance from the kinematics.Returns information on the kinematics of the perceived object.org.djunits.value.vdouble.scalar.LengthReturns length.Returns object type.default org.djunits.value.vdouble.scalar.SpeedgetSpeed()Returns the speed from the kinematics.Methods inherited from interface org.djutils.base.Identifiable
getId
-
Method Details
-
getObjectType
PerceivedObject.ObjectType getObjectType()Returns object type.- Returns:
- the (perceived) object Type
-
getLength
org.djunits.value.vdouble.scalar.Length getLength()Returns length.- Returns:
- the length of the other object
-
getKinematics
PerceivedObject.Kinematics getKinematics()Returns information on the kinematics of the perceived object. This includes position, speed, acceleration and overlap.- Returns:
- information on the kinematics of the perceived object
-
getDistance
default org.djunits.value.vdouble.scalar.Length getDistance()Returns the distance from the kinematics.- Returns:
- the distance from the kinematics
-
getSpeed
default org.djunits.value.vdouble.scalar.Speed getSpeed()Returns the speed from the kinematics.- Returns:
- the speed from the kinematics
-
getAcceleration
default org.djunits.value.vdouble.scalar.Acceleration getAcceleration()Returns the acceleration from the kinematics.- Returns:
- the acceleration from the kinematics
-
compareTo
- Specified by:
compareToin interfaceComparable<PerceivedObject>
-