Record Class SchedulingDSL.GoalSpecifier.CoexistenceGoalDefinition
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.models.SchedulingDSL.GoalSpecifier.CoexistenceGoalDefinition
- All Implemented Interfaces:
SchedulingDSL.GoalSpecifier
- Enclosing interface:
SchedulingDSL.GoalSpecifier
public static record SchedulingDSL.GoalSpecifier.CoexistenceGoalDefinition(SchedulingDSL.ActivityTemplate activityTemplate, Optional<gov.nasa.jpl.aerie.scheduler.model.PersistentTimeAnchor> persistentAnchor, Optional<SchedulingDSL.ConstraintExpression.ActivityExpression> activityFinder, String alias, SchedulingDSL.ConstraintExpression forEach, Optional<? extends SchedulingDSL.TimingConstraint> startConstraint, Optional<? extends SchedulingDSL.TimingConstraint> endConstraint, 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
ConstructorDescriptionCoexistenceGoalDefinition
(SchedulingDSL.ActivityTemplate activityTemplate, Optional<gov.nasa.jpl.aerie.scheduler.model.PersistentTimeAnchor> persistentAnchor, Optional<SchedulingDSL.ConstraintExpression.ActivityExpression> activityFinder, String alias, SchedulingDSL.ConstraintExpression forEach, Optional<? extends SchedulingDSL.TimingConstraint> startConstraint, Optional<? extends SchedulingDSL.TimingConstraint> endConstraint, boolean shouldRollbackIfUnsatisfied) Creates an instance of aCoexistenceGoalDefinition
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivityFinder
record component.Returns the value of theactivityTemplate
record component.alias()
Returns the value of thealias
record component.Optional
<? extends SchedulingDSL.TimingConstraint> Returns the value of theendConstraint
record component.final boolean
Indicates whether some other object is "equal to" this one.forEach()
Returns the value of theforEach
record component.final int
hashCode()
Returns a hash code value for this object.Optional
<gov.nasa.jpl.aerie.scheduler.model.PersistentTimeAnchor> Returns the value of thepersistentAnchor
record component.boolean
Returns the value of theshouldRollbackIfUnsatisfied
record component.Optional
<? extends SchedulingDSL.TimingConstraint> Returns the value of thestartConstraint
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CoexistenceGoalDefinition
public CoexistenceGoalDefinition(SchedulingDSL.ActivityTemplate activityTemplate, Optional<gov.nasa.jpl.aerie.scheduler.model.PersistentTimeAnchor> persistentAnchor, Optional<SchedulingDSL.ConstraintExpression.ActivityExpression> activityFinder, String alias, SchedulingDSL.ConstraintExpression forEach, Optional<? extends SchedulingDSL.TimingConstraint> startConstraint, Optional<? extends SchedulingDSL.TimingConstraint> endConstraint, boolean shouldRollbackIfUnsatisfied) Creates an instance of aCoexistenceGoalDefinition
record class.- Parameters:
activityTemplate
- the value for theactivityTemplate
record componentpersistentAnchor
- the value for thepersistentAnchor
record componentactivityFinder
- the value for theactivityFinder
record componentalias
- the value for thealias
record componentforEach
- the value for theforEach
record componentstartConstraint
- the value for thestartConstraint
record componentendConstraint
- the value for theendConstraint
record componentshouldRollbackIfUnsatisfied
- the value for theshouldRollbackIfUnsatisfied
record 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 theactivityTemplate
record component.- Returns:
- the value of the
activityTemplate
record component
-
persistentAnchor
Returns the value of thepersistentAnchor
record component.- Returns:
- the value of the
persistentAnchor
record component
-
activityFinder
Returns the value of theactivityFinder
record component.- Returns:
- the value of the
activityFinder
record component
-
alias
Returns the value of thealias
record component.- Returns:
- the value of the
alias
record component
-
forEach
Returns the value of theforEach
record component.- Returns:
- the value of the
forEach
record component
-
startConstraint
Returns the value of thestartConstraint
record component.- Returns:
- the value of the
startConstraint
record component
-
endConstraint
Returns the value of theendConstraint
record component.- Returns:
- the value of the
endConstraint
record component
-
shouldRollbackIfUnsatisfied
public boolean shouldRollbackIfUnsatisfied()Returns the value of theshouldRollbackIfUnsatisfied
record component.- Returns:
- the value of the
shouldRollbackIfUnsatisfied
record component
-