Record Class SchedulingDSL.GoalSpecifier.GoalOr
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.models.SchedulingDSL.GoalSpecifier.GoalOr
- All Implemented Interfaces:
SchedulingDSL.GoalSpecifier
- Enclosing interface:
SchedulingDSL.GoalSpecifier
public static record SchedulingDSL.GoalSpecifier.GoalOr(List<SchedulingDSL.GoalSpecifier> goals, 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
ConstructorsConstructorDescriptionGoalOr(List<SchedulingDSL.GoalSpecifier> goals, boolean shouldRollbackIfUnsatisfied) Creates an instance of aGoalOrrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.goals()Returns the value of thegoalsrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theshouldRollbackIfUnsatisfiedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GoalOr
Creates an instance of aGoalOrrecord class.- Parameters:
goals- the value for thegoalsrecord 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 '=='. -
goals
Returns the value of thegoalsrecord component.- Returns:
- the value of the
goalsrecord component
-
shouldRollbackIfUnsatisfied
public boolean shouldRollbackIfUnsatisfied()Returns the value of theshouldRollbackIfUnsatisfiedrecord component.- Returns:
- the value of the
shouldRollbackIfUnsatisfiedrecord component
-