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
  • 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 a CoexistenceGoalDefinition record class.
      Parameters:
      activityTemplate - the value for the activityTemplate record component
      persistentAnchor - the value for the persistentAnchor record component
      activityFinder - the value for the activityFinder record component
      alias - the value for the alias record component
      forEach - the value for the forEach record component
      startConstraint - the value for the startConstraint record component
      endConstraint - the value for the endConstraint 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
    • persistentAnchor

      public Optional<gov.nasa.jpl.aerie.scheduler.model.PersistentTimeAnchor> persistentAnchor()
      Returns the value of the persistentAnchor record component.
      Returns:
      the value of the persistentAnchor record component
    • activityFinder

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

      public String alias()
      Returns the value of the alias record component.
      Returns:
      the value of the alias record component
    • forEach

      Returns the value of the forEach record component.
      Returns:
      the value of the forEach record component
    • startConstraint

      public Optional<? extends SchedulingDSL.TimingConstraint> startConstraint()
      Returns the value of the startConstraint record component.
      Returns:
      the value of the startConstraint record component
    • endConstraint

      public Optional<? extends SchedulingDSL.TimingConstraint> endConstraint()
      Returns the value of the endConstraint record component.
      Returns:
      the value of the endConstraint record component
    • shouldRollbackIfUnsatisfied

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