Class ActivityTemplateGoal

Direct Known Subclasses:
CardinalityGoal, CoexistenceGoal, RecurrenceGoal

public class ActivityTemplateGoal extends ActivityExistentialGoal
describes the desired existence of an activity matching a given template/preset
  • Field Details

    • desiredActTemplate

      protected ActivityExpression desiredActTemplate
      the pattern used to create new instances if none already exist
    • matchActTemplate

      protected ActivityExpression matchActTemplate
      the pattern used to match with satisfying activity instances
  • Constructor Details

    • ActivityTemplateGoal

      protected ActivityTemplateGoal()
      ctor creates new empty goal without identification / specification client code should use derived type builders to instance goals
  • Method Details

    • getActTemplate

      public ActivityExpression getActTemplate()
    • getActivityStateConstraints

      public gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Windows> getActivityStateConstraints()
      returns the set of constraints required by the created activity type these are type-level constraints only, and do not include any additional constraints that may be applied to individual instances
      Returns:
      an unmodifiable collection of all the constraints implied by the goal's created activity type
    • extractResources

      public void extractResources(Set<String> names)
      Overrides:
      extractResources in class Goal