Record Class Linear
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.contrib.streamline.modeling.linear.Linear
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.extract()Returns the value of theextractrecord component.final inthashCode()Returns a hash code value for this object.static Linearlinear(double value, double rate) rate()Returns the value of theraterecord component.step(gov.nasa.jpl.aerie.merlin.protocol.types.Duration t) Evolve for the given time.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Linear
Creates an instance of aLinearrecord class.- Parameters:
extract- the value for theextractrecord componentrate- the value for theraterecord component
-
-
Method Details
-
step
Description copied from interface:DynamicsEvolve for the given time. -
linear
-
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). -
extract
Returns the value of theextractrecord component. -
rate
Returns the value of theraterecord component.- Returns:
- the value of the
raterecord component
-