Interface Plan


public interface Plan
Represents a Plan in the BDI architecture.

A plan is a recipe for achieving a goal (Desire) or handling an event, given a certain context (Beliefs).

Since:
2.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Executes the plan.
    boolean
    isApplicable(List<Belief> beliefs, Desire goal)
    Checks if this plan is applicable for the current beliefs and goal.
  • Method Details

    • isApplicable

      boolean isApplicable(List<Belief> beliefs, Desire goal)
      Checks if this plan is applicable for the current beliefs and goal.
      Parameters:
      beliefs - the agent's current beliefs.
      goal - the goal to achieve.
      Returns:
      true if applicable.
    • execute

      void execute(BDIAgent agent)
      Executes the plan.
      Parameters:
      agent - the agent executing the plan.