Class ActivityTemplateGoal.Builder<T extends ActivityTemplateGoal.Builder<T>>

Direct Known Subclasses:
CardinalityGoal.Builder, CoexistenceGoal.Builder, RecurrenceGoal.Builder
Enclosing class:
ActivityTemplateGoal

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

  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • thereExistsOne

      public T thereExistsOne(ActivityExpression template)
      specifies the activity that must exist, and how to create it if necessary this specifier is required. it replaces any previous specification.
      Parameters:
      template - IN a pattern for matching satisfying activity instances with the ability to create new instances if necessary
      Returns:
      this builder, ready for additional specification
    • match

      public T match(ActivityExpression expression)
    • build

      public ActivityTemplateGoal 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 ActivityExistentialGoal.Builder<T extends ActivityTemplateGoal.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