Record Class ProfileSegment<Dynamics>
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.driver.engine.ProfileSegment<Dynamics>
- Type Parameters:
Dynamics- A choice between Real and SerializedValue- Record Components:
extent- The duration from the start to the end of this segmentdynamics- The behavior of the resource during this segment
public record ProfileSegment<Dynamics>(gov.nasa.jpl.aerie.merlin.protocol.types.Duration extent, Dynamics dynamics)
extends Record
A period of time over which a dynamics occurs.
-
Constructor Summary
ConstructorsConstructorDescriptionProfileSegment(gov.nasa.jpl.aerie.merlin.protocol.types.Duration extent, Dynamics dynamics) Creates an instance of aProfileSegmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondynamics()Returns the value of thedynamicsrecord component.final booleanIndicates whether some other object is "equal to" this one.gov.nasa.jpl.aerie.merlin.protocol.types.Durationextent()Returns the value of theextentrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
extent
public gov.nasa.jpl.aerie.merlin.protocol.types.Duration extent()Returns the value of theextentrecord component.- Returns:
- the value of the
extentrecord component
-
dynamics
Returns the value of thedynamicsrecord component.- Returns:
- the value of the
dynamicsrecord component
-