Package gov.nasa.jpl.aerie.merlin.driver
Record Class OneStepTask<T>
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.driver.OneStepTask<T>
- All Implemented Interfaces:
gov.nasa.jpl.aerie.merlin.protocol.model.Task<T>
-
Constructor Summary
ConstructorsConstructorDescriptionOneStepTask(Function<gov.nasa.jpl.aerie.merlin.protocol.driver.Scheduler, gov.nasa.jpl.aerie.merlin.protocol.types.TaskStatus<T>> f) Creates an instance of aOneStepTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptiongov.nasa.jpl.aerie.merlin.protocol.model.Task<T> final booleanIndicates whether some other object is "equal to" this one.Function<gov.nasa.jpl.aerie.merlin.protocol.driver.Scheduler, gov.nasa.jpl.aerie.merlin.protocol.types.TaskStatus<T>> f()Returns the value of thefrecord component.final inthashCode()Returns a hash code value for this object.gov.nasa.jpl.aerie.merlin.protocol.types.TaskStatus<T> step(gov.nasa.jpl.aerie.merlin.protocol.driver.Scheduler scheduler) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface gov.nasa.jpl.aerie.merlin.protocol.model.Task
andThen, dropOutput, release
-
Constructor Details
-
Method Details
-
step
public gov.nasa.jpl.aerie.merlin.protocol.types.TaskStatus<T> step(gov.nasa.jpl.aerie.merlin.protocol.driver.Scheduler scheduler) - Specified by:
stepin interfacegov.nasa.jpl.aerie.merlin.protocol.model.Task<T>
-
duplicate
- Specified by:
duplicatein interfacegov.nasa.jpl.aerie.merlin.protocol.model.Task<T>
-
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). -
f
public Function<gov.nasa.jpl.aerie.merlin.protocol.driver.Scheduler,gov.nasa.jpl.aerie.merlin.protocol.types.TaskStatus<T>> f()Returns the value of thefrecord component.- Returns:
- the value of the
frecord component
-