Record Class SchedulingDSL.GoalSpecifier.RecurrenceGoalDefinition

java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.models.SchedulingDSL.GoalSpecifier.RecurrenceGoalDefinition
All Implemented Interfaces:
SchedulingDSL.GoalSpecifier
Enclosing interface:
SchedulingDSL.GoalSpecifier

public static record SchedulingDSL.GoalSpecifier.RecurrenceGoalDefinition(SchedulingDSL.ActivityTemplate activityTemplate, Optional<SchedulingDSL.ConstraintExpression.ActivityExpression> activityFinder, gov.nasa.jpl.aerie.merlin.protocol.types.Duration separatedByAtMost, gov.nasa.jpl.aerie.merlin.protocol.types.Duration separatedByAtLeast, Optional<gov.nasa.jpl.aerie.merlin.protocol.types.Duration> lastActivityStartedAt, boolean shouldRollbackIfUnsatisfied) extends Record implements SchedulingDSL.GoalSpecifier
  • Constructor Details

    • RecurrenceGoalDefinition

      public RecurrenceGoalDefinition(SchedulingDSL.ActivityTemplate activityTemplate, Optional<SchedulingDSL.ConstraintExpression.ActivityExpression> activityFinder, gov.nasa.jpl.aerie.merlin.protocol.types.Duration separatedByAtMost, gov.nasa.jpl.aerie.merlin.protocol.types.Duration separatedByAtLeast, Optional<gov.nasa.jpl.aerie.merlin.protocol.types.Duration> lastActivityStartedAt, boolean shouldRollbackIfUnsatisfied)
      Creates an instance of a RecurrenceGoalDefinition record class.
      Parameters:
      activityTemplate - the value for the activityTemplate record component
      activityFinder - the value for the activityFinder record component
      separatedByAtMost - the value for the separatedByAtMost record component
      separatedByAtLeast - the value for the separatedByAtLeast record component
      lastActivityStartedAt - the value for the lastActivityStartedAt record component
      shouldRollbackIfUnsatisfied - the value for the shouldRollbackIfUnsatisfied record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • activityTemplate

      public SchedulingDSL.ActivityTemplate activityTemplate()
      Returns the value of the activityTemplate record component.
      Returns:
      the value of the activityTemplate record component
    • activityFinder

      Returns the value of the activityFinder record component.
      Returns:
      the value of the activityFinder record component
    • separatedByAtMost

      public gov.nasa.jpl.aerie.merlin.protocol.types.Duration separatedByAtMost()
      Returns the value of the separatedByAtMost record component.
      Returns:
      the value of the separatedByAtMost record component
    • separatedByAtLeast

      public gov.nasa.jpl.aerie.merlin.protocol.types.Duration separatedByAtLeast()
      Returns the value of the separatedByAtLeast record component.
      Returns:
      the value of the separatedByAtLeast record component
    • lastActivityStartedAt

      public Optional<gov.nasa.jpl.aerie.merlin.protocol.types.Duration> lastActivityStartedAt()
      Returns the value of the lastActivityStartedAt record component.
      Returns:
      the value of the lastActivityStartedAt record component
    • shouldRollbackIfUnsatisfied

      public boolean shouldRollbackIfUnsatisfied()
      Returns the value of the shouldRollbackIfUnsatisfied record component.
      Returns:
      the value of the shouldRollbackIfUnsatisfied record component