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
ConstructorsConstructorDescriptionCoexistenceGoalDefinition(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 aCoexistenceGoalDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivityFinderrecord component.Returns the value of theactivityTemplaterecord component.alias()Returns the value of thealiasrecord component.Optional<? extends SchedulingDSL.TimingConstraint> Returns the value of theendConstraintrecord component.final booleanIndicates whether some other object is "equal to" this one.forEach()Returns the value of theforEachrecord component.final inthashCode()Returns a hash code value for this object.Optional<gov.nasa.jpl.aerie.scheduler.model.PersistentTimeAnchor> Returns the value of thepersistentAnchorrecord component.booleanReturns the value of theshouldRollbackIfUnsatisfiedrecord component.Optional<? extends SchedulingDSL.TimingConstraint> Returns the value of thestartConstraintrecord component.final StringtoString()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 aCoexistenceGoalDefinitionrecord class.- Parameters:
activityTemplate- the value for theactivityTemplaterecord componentpersistentAnchor- the value for thepersistentAnchorrecord componentactivityFinder- the value for theactivityFinderrecord componentalias- the value for thealiasrecord componentforEach- the value for theforEachrecord componentstartConstraint- the value for thestartConstraintrecord componentendConstraint- the value for theendConstraintrecord 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
-
persistentAnchor
Returns the value of thepersistentAnchorrecord component.- Returns:
- the value of the
persistentAnchorrecord component
-
activityFinder
Returns the value of theactivityFinderrecord component.- Returns:
- the value of the
activityFinderrecord component
-
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-
forEach
Returns the value of theforEachrecord component.- Returns:
- the value of the
forEachrecord component
-
startConstraint
Returns the value of thestartConstraintrecord component.- Returns:
- the value of the
startConstraintrecord component
-
endConstraint
Returns the value of theendConstraintrecord component.- Returns:
- the value of the
endConstraintrecord component
-
shouldRollbackIfUnsatisfied
public boolean shouldRollbackIfUnsatisfied()Returns the value of theshouldRollbackIfUnsatisfiedrecord component.- Returns:
- the value of the
shouldRollbackIfUnsatisfiedrecord component
-