Record Class TrajectoryPlot.TrajectoriesPaintState
java.lang.Object
java.lang.Record
org.opentrafficsim.animation.graphs.TrajectoryPlot.TrajectoriesPaintState
- Record Components:
series- trajectories to paintlaneOfSeries- lane within which the series fallstrokeOfSeries- stroke to use per serieslaneCount- number of lanesgetAvailableTime- time until which data is available for painting
- Enclosing class:
- TrajectoryPlot
public static record TrajectoryPlot.TrajectoriesPaintState(OffsetTrajectory[] series, int[] laneOfSeries, Stroke[] strokeOfSeries, int laneCount, org.djunits.value.vdouble.scalar.Duration getAvailableTime)
extends Record
Paint state for trajectory plot.
-
Constructor Summary
ConstructorsConstructorDescriptionTrajectoriesPaintState(OffsetTrajectory[] series, int[] laneOfSeries, Stroke[] strokeOfSeries, int laneCount, org.djunits.value.vdouble.scalar.Duration getAvailableTime) Creates an instance of aTrajectoriesPaintStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.djunits.value.vdouble.scalar.DurationReturns the value of thegetAvailableTimerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelaneCountrecord component.int[]Returns the value of thelaneOfSeriesrecord component.series()Returns the value of theseriesrecord component.Stroke[]Returns the value of thestrokeOfSeriesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TrajectoriesPaintState
public TrajectoriesPaintState(OffsetTrajectory[] series, int[] laneOfSeries, Stroke[] strokeOfSeries, int laneCount, org.djunits.value.vdouble.scalar.Duration getAvailableTime) Creates an instance of aTrajectoriesPaintStaterecord class.- Parameters:
series- the value for theseriesrecord componentlaneOfSeries- the value for thelaneOfSeriesrecord componentstrokeOfSeries- the value for thestrokeOfSeriesrecord componentlaneCount- the value for thelaneCountrecord componentgetAvailableTime- the value for thegetAvailableTimerecord component
-
-
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 '=='. -
series
Returns the value of theseriesrecord component.- Returns:
- the value of the
seriesrecord component
-
laneOfSeries
public int[] laneOfSeries()Returns the value of thelaneOfSeriesrecord component.- Returns:
- the value of the
laneOfSeriesrecord component
-
strokeOfSeries
Returns the value of thestrokeOfSeriesrecord component.- Returns:
- the value of the
strokeOfSeriesrecord component
-
laneCount
public int laneCount()Returns the value of thelaneCountrecord component.- Returns:
- the value of the
laneCountrecord component
-
getAvailableTime
public org.djunits.value.vdouble.scalar.Duration getAvailableTime()Returns the value of thegetAvailableTimerecord component.- Returns:
- the value of the
getAvailableTimerecord component
-