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
  • Constructor Details

    • CardinalityGoalDefinition

      public CardinalityGoalDefinition(SchedulingDSL.ActivityTemplate activityTemplate, Optional<SchedulingDSL.ConstraintExpression.ActivityExpression> activityFinder, SchedulingDSL.CardinalitySpecification specification, boolean shouldRollbackIfUnsatisfied)
      Creates an instance of a CardinalityGoalDefinition record class.
      Parameters:
      activityTemplate - the value for the activityTemplate record component
      activityFinder - the value for the activityFinder record component
      specification - the value for the specification record component
      shouldRollbackIfUnsatisfied - the value for the shouldRollbackIfUnsatisfied record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • activityTemplate

      public SchedulingDSL.ActivityTemplate activityTemplate()
      Returns the value of the activityTemplate record component.
      Returns:
      the value of the activityTemplate record component
    • activityFinder

      Returns the value of the activityFinder record component.
      Returns:
      the value of the activityFinder record component
    • specification

      Returns the value of the specification record component.
      Returns:
      the value of the specification record component
    • shouldRollbackIfUnsatisfied

      public boolean shouldRollbackIfUnsatisfied()
      Returns the value of the shouldRollbackIfUnsatisfied record component.
      Returns:
      the value of the shouldRollbackIfUnsatisfied record component