Record Class SchedulingDSL.GoalSpecifier.CardinalityGoalDefinition
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.models.SchedulingDSL.GoalSpecifier.CardinalityGoalDefinition
- All Implemented Interfaces:
SchedulingDSL.GoalSpecifier
- Enclosing interface:
SchedulingDSL.GoalSpecifier
public static record SchedulingDSL.GoalSpecifier.CardinalityGoalDefinition(SchedulingDSL.ActivityTemplate activityTemplate, Optional<SchedulingDSL.ConstraintExpression.ActivityExpression> activityFinder, SchedulingDSL.CardinalitySpecification specification, 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
ConstructorsConstructorDescriptionCardinalityGoalDefinition(SchedulingDSL.ActivityTemplate activityTemplate, Optional<SchedulingDSL.ConstraintExpression.ActivityExpression> activityFinder, SchedulingDSL.CardinalitySpecification specification, boolean shouldRollbackIfUnsatisfied) Creates an instance of aCardinalityGoalDefinitionrecord 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.booleanReturns the value of theshouldRollbackIfUnsatisfiedrecord component.Returns the value of thespecificationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CardinalityGoalDefinition
public CardinalityGoalDefinition(SchedulingDSL.ActivityTemplate activityTemplate, Optional<SchedulingDSL.ConstraintExpression.ActivityExpression> activityFinder, SchedulingDSL.CardinalitySpecification specification, boolean shouldRollbackIfUnsatisfied) Creates an instance of aCardinalityGoalDefinitionrecord class.- Parameters:
activityTemplate- the value for theactivityTemplaterecord componentactivityFinder- the value for theactivityFinderrecord componentspecification- the value for thespecificationrecord 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
-
specification
Returns the value of thespecificationrecord component.- Returns:
- the value of the
specificationrecord component
-
shouldRollbackIfUnsatisfied
public boolean shouldRollbackIfUnsatisfied()Returns the value of theshouldRollbackIfUnsatisfiedrecord component.- Returns:
- the value of the
shouldRollbackIfUnsatisfiedrecord component
-