Class LocalDistractionPerception.PerceivedLocalDistraction
java.lang.Object
org.opentrafficsim.road.gtu.perception.object.PerceivedObjectBase
org.opentrafficsim.road.gtu.perception.object.PerceivedLaneBasedObjectBase
org.opentrafficsim.road.gtu.perception.categories.LocalDistractionPerception.PerceivedLocalDistraction
- All Implemented Interfaces:
Comparable<PerceivedObject>,Identifiable,PerceivedLaneBasedObject,PerceivedObject
- Enclosing class:
- LocalDistractionPerception
public class LocalDistractionPerception.PerceivedLocalDistraction
extends PerceivedLaneBasedObjectBase
Information on distraction.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.perception.object.PerceivedObject
PerceivedObject.Kinematics, PerceivedObject.ObjectType -
Constructor Summary
ConstructorsConstructorDescriptionPerceivedLocalDistraction(org.djunits.value.vdouble.scalar.Length distance, LocalDistraction distraction) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the distraction level as normalized task demand.org.djunits.value.vdouble.scalar.LengthgetRange()Returns the range of the distraction, which applies upstream of the location.getSide()Returns the side of the distraction, relative to the driving direction.Methods inherited from class org.opentrafficsim.road.gtu.perception.object.PerceivedLaneBasedObjectBase
equals, getLane, hashCode, toStringMethods inherited from class org.opentrafficsim.road.gtu.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.djutils.base.Identifiable
getIdMethods inherited from interface org.opentrafficsim.road.gtu.perception.object.PerceivedObject
compareTo, getAcceleration, getDistance, getKinematics, getLength, getObjectType, getSpeed
-
Constructor Details
-
PerceivedLocalDistraction
public PerceivedLocalDistraction(org.djunits.value.vdouble.scalar.Length distance, LocalDistraction distraction) Constructor.- Parameters:
distance- distancedistraction- distraction
-
-
Method Details
-
getRange
public org.djunits.value.vdouble.scalar.Length getRange()Returns the range of the distraction, which applies upstream of the location.- Returns:
- range of the distraction
-
getDistractionLevel
public double getDistractionLevel()Returns the distraction level as normalized task demand.- Returns:
- distraction level
-
getSide
Returns the side of the distraction, relative to the driving direction.- Returns:
- side of the distraction
-