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
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nasa.jpl.aerie.scheduler.server.models.SchedulingDSL.GoalSpecifier
SchedulingDSL.GoalSpecifier.CardinalityGoalDefinition, SchedulingDSL.GoalSpecifier.CoexistenceGoalDefinition, SchedulingDSL.GoalSpecifier.GoalAnd, SchedulingDSL.GoalSpecifier.GoalApplyWhen, SchedulingDSL.GoalSpecifier.GoalOr, SchedulingDSL.GoalSpecifier.Procedure, SchedulingDSL.GoalSpecifier.RecurrenceGoalDefinition -
Constructor Summary
ConstructorsConstructorDescriptionRecurrenceGoalDefinition(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 aRecurrenceGoalDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivityFinderrecord component.Returns the value of theactivityTemplaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Optional<gov.nasa.jpl.aerie.merlin.protocol.types.Duration> Returns the value of thelastActivityStartedAtrecord component.gov.nasa.jpl.aerie.merlin.protocol.types.DurationReturns the value of theseparatedByAtLeastrecord component.gov.nasa.jpl.aerie.merlin.protocol.types.DurationReturns the value of theseparatedByAtMostrecord component.booleanReturns the value of theshouldRollbackIfUnsatisfiedrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aRecurrenceGoalDefinitionrecord class.- Parameters:
activityTemplate- the value for theactivityTemplaterecord componentactivityFinder- the value for theactivityFinderrecord componentseparatedByAtMost- the value for theseparatedByAtMostrecord componentseparatedByAtLeast- the value for theseparatedByAtLeastrecord componentlastActivityStartedAt- the value for thelastActivityStartedAtrecord componentshouldRollbackIfUnsatisfied- the value for theshouldRollbackIfUnsatisfiedrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
activityTemplate
Returns the value of theactivityTemplaterecord component.- Returns:
- the value of the
activityTemplaterecord component
-
activityFinder
Returns the value of theactivityFinderrecord component.- Returns:
- the value of the
activityFinderrecord component
-
separatedByAtMost
public gov.nasa.jpl.aerie.merlin.protocol.types.Duration separatedByAtMost()Returns the value of theseparatedByAtMostrecord component.- Returns:
- the value of the
separatedByAtMostrecord component
-
separatedByAtLeast
public gov.nasa.jpl.aerie.merlin.protocol.types.Duration separatedByAtLeast()Returns the value of theseparatedByAtLeastrecord component.- Returns:
- the value of the
separatedByAtLeastrecord component
-
lastActivityStartedAt
Returns the value of thelastActivityStartedAtrecord component.- Returns:
- the value of the
lastActivityStartedAtrecord component
-
shouldRollbackIfUnsatisfied
public boolean shouldRollbackIfUnsatisfied()Returns the value of theshouldRollbackIfUnsatisfiedrecord component.- Returns:
- the value of the
shouldRollbackIfUnsatisfiedrecord component
-