Class ActivityExistentialGoal.Builder<T extends ActivityExistentialGoal.Builder<T>>

java.lang.Object
gov.nasa.jpl.aerie.scheduler.goals.Goal.Builder<T>
gov.nasa.jpl.aerie.scheduler.goals.ActivityExistentialGoal.Builder<T>
Direct Known Subclasses:
ActivityTemplateGoal.Builder, ProceduralCreationGoal.Builder
Enclosing class:
ActivityExistentialGoal

public abstract static class ActivityExistentialGoal.Builder<T extends ActivityExistentialGoal.Builder<T>> extends Goal.Builder<T>
the builder can construct goals piecemeal via a series of method calls
  • Field Details

  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • owned

      public T owned(ChildCustody custody)
      sets the activity instance sharing preference for the goal this specifier is optional (the default is Jointly). it replaces any previous specification.
      Parameters:
      custody - IN the custody strategy for the goal to adopt
      Returns:
      this builder, ready for additional specification
    • build

      public ActivityExistentialGoal build()
      uses all pending specifications to construct a matching new goal object this is typically the last client call after a chain of specifiers, but the builder object remains viable to be further specified and build additional goals
      Overrides:
      build in class Goal.Builder<T extends ActivityExistentialGoal.Builder<T>>
      Returns:
      a newly allocated goal object matching all specifications
    • fill

      populates the provided goal with specifiers from this builder and above typically called by any derived builder classes to fill in the specifiers managed at this builder level and above
      Parameters:
      goal - IN/OUT a goal object to be filled with specifiers from this level of builder and above
      Returns:
      the provided goal object, with details filled in