Package org.opentrafficsim.animation.gtu
Record Class PerceptionAnimation.PerceptionData.ChannelData
java.lang.Object
java.lang.Record
org.opentrafficsim.animation.gtu.PerceptionAnimation.PerceptionData.ChannelData
- Record Components:
angle- angle relative to GTUradius- radius from GTU referenceattention- attention levelperceptionDelay- perception delay
- Enclosing interface:
- PerceptionAnimation.PerceptionData
public static record PerceptionAnimation.PerceptionData.ChannelData(org.djunits.value.vdouble.scalar.Angle angle, PerceptionAnimation.PerceptionData.ChannelRadius radius, double attention, org.djunits.value.vdouble.scalar.Duration perceptionDelay)
extends Record
Data required per channel.
-
Constructor Summary
ConstructorsConstructorDescriptionChannelData(org.djunits.value.vdouble.scalar.Angle angle, PerceptionAnimation.PerceptionData.ChannelRadius radius, double attention, org.djunits.value.vdouble.scalar.Duration perceptionDelay) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.Angleangle()Returns the value of theanglerecord component.doubleReturns the value of theattentionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.djunits.value.vdouble.scalar.DurationReturns the value of theperceptionDelayrecord component.radius()Returns the value of theradiusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChannelData
public ChannelData(org.djunits.value.vdouble.scalar.Angle angle, PerceptionAnimation.PerceptionData.ChannelRadius radius, double attention, org.djunits.value.vdouble.scalar.Duration perceptionDelay) Constructor.- Parameters:
angle- angle relative to GTUradius- radius from GTU referenceattention- attention levelperceptionDelay- perception delay
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
angle
public org.djunits.value.vdouble.scalar.Angle angle()Returns the value of theanglerecord component.- Returns:
- the value of the
anglerecord component
-
radius
Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
attention
public double attention()Returns the value of theattentionrecord component.- Returns:
- the value of the
attentionrecord component
-
perceptionDelay
public org.djunits.value.vdouble.scalar.Duration perceptionDelay()Returns the value of theperceptionDelayrecord component.- Returns:
- the value of the
perceptionDelayrecord component
-