bdi4jade.plan

## Interface PlanBody

- All Known Implementing Classes:
    ParallelGoalPlanBody, SequentialGoalPlanBody

      public interface PlanBody

  This interface defines a PlanBody. Plans are executed as behaviors ( `Behaviour`), but executed in the BDI context, these behaviors should also implement this interface.
  Author:
    ingrid

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `PlanInstance.EndState` | `getEndState()` Returns the end state of the execution of this plan.
    `void` | `init(PlanInstance planInstance)` Initializes the PlanBody.

- - ### Method Detail

    - #### getEndState

          PlanInstance.EndState getEndState()

      Returns the end state of the execution of this plan.
      Returns:
        the end state of this plan, or null if it has not finished yet.

    - #### init

          void init(PlanInstance planInstance)

      Initializes the PlanBody. It is invoked just after its instantiation.
      Parameters:
        `planInstance` - the plan instance that contains contextual information for this plan body.