Annotation Interface Trigger


@Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface Trigger
A plan trigger states for which events or goals a plan should be selected.
  • Element Details

    • goals

      Class<?>[] goals
      Goal types to react on, i.e. choose this plan to handle goals of the given type(s).
      Default:
      {}
    • goalfinisheds

      Class<?>[] goalfinisheds
      Goal type finished events to react on, i.e. the plan will be executed after the goal has been processed (e.g. by a different plan).
      Default:
      {}
    • factadded

      String[] factadded
      The fact added belief names, i.e. the plan will be executed whenever a fact is added to the given belief set(s).
      Default:
      {}
    • factremoved

      String[] factremoved
      The fact removed belief names, i.e. the plan will be executed whenever a fact is removed from the given belief set(s).
      Default:
      {}
    • factchanged

      String[] factchanged
      The fact changed belief names, i.e. the plan will be executed whenever a fact of a given belief (set) changes.
      Default:
      {}
    • service

      Activate from service invocation, i.e. choose this plan to handle service invocation requests of the given type.
      Default:
      @jadex.bdi.annotation.ServiceTrigger