Class CardinalityGoal.Builder

Enclosing class:
CardinalityGoal

public static class CardinalityGoal.Builder extends ActivityTemplateGoal.Builder<CardinalityGoal.Builder>
the builder can construct goals piecemeal via a series of method calls
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • duration

      public CardinalityGoal.Builder duration(gov.nasa.jpl.aerie.constraints.time.Interval durationRange)
    • occurences

      public CardinalityGoal.Builder occurences(Range<Integer> occurrenceRange)
    • build

      public CardinalityGoal 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 ActivityTemplateGoal.Builder<CardinalityGoal.Builder>
      Returns:
      a newly allocated goal object matching all specifications
    • getThis

      protected CardinalityGoal.Builder getThis()
      returns the current builder object (but typed at the lowest level) should be implemented by the builder at the bottom of the type heirarchy
      Specified by:
      getThis in class Goal.Builder<CardinalityGoal.Builder>
      Returns:
      reference to the current builder object (specifically typed)
    • fill

      protected CardinalityGoal fill(CardinalityGoal goal)
      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 object, with details filled in