Record Class FundamentalDiagram.FdSeries
java.lang.Object
java.lang.Record
org.opentrafficsim.animation.graphs.FundamentalDiagram.FdSeries
- Record Components:
q- flowv- speedk- density
- Enclosing class:
- FundamentalDiagram
One data series within a fundamental diagram paint state.
-
Constructor Summary
ConstructorsConstructorDescriptionFdSeries(float[] q, float[] v, float[] k) Creates an instance of aFdSeriesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublegetValue(FundamentalDiagram.Quantity quantity, int item) Returns one value for a quantity.final inthashCode()Returns a hash code value for this object.float[]k()Returns the value of thekrecord component.float[]q()Returns the value of theqrecord component.final StringtoString()Returns a string representation of this record class.float[]v()Returns the value of thevrecord component.
-
Constructor Details
-
Method Details
-
getValue
Returns one value for a quantity.- Parameters:
quantity- quantityitem- item in series- Returns:
- one value for a quantity
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
q
public float[] q()Returns the value of theqrecord component.- Returns:
- the value of the
qrecord component
-
v
public float[] v()Returns the value of thevrecord component.- Returns:
- the value of the
vrecord component
-
k
public float[] k()Returns the value of thekrecord component.- Returns:
- the value of the
krecord component
-