Class EasyDeliberationStrategy

java.lang.Object
jadex.bdi.runtime.impl.EasyDeliberationStrategy
All Implemented Interfaces:
IDeliberationStrategy

public class EasyDeliberationStrategy extends Object implements IDeliberationStrategy
The easy deliberation strategy.
  • Field Details

    • inhibitions

      protected Map<RGoal,Set<RGoal>> inhibitions
      The set of inhibitors.
  • Constructor Details

    • EasyDeliberationStrategy

      public EasyDeliberationStrategy()
  • Method Details

    • init

      public void init()
      Init the strategy.
      Specified by:
      init in interface IDeliberationStrategy
    • goalIsAdopted

      public jadex.future.IFuture<Void> goalIsAdopted(RGoal goal)
      Called when a goal has been adopted.
      Specified by:
      goalIsAdopted in interface IDeliberationStrategy
      Parameters:
      goal - The goal.
    • goalIsDropped

      public jadex.future.IFuture<Void> goalIsDropped(RGoal goal)
      Called when a goal has been dropped.
      Specified by:
      goalIsDropped in interface IDeliberationStrategy
      Parameters:
      goal - The goal.
    • goalIsOption

      public jadex.future.IFuture<Void> goalIsOption(RGoal goal)
      Called when a goal becomes an option.
      Specified by:
      goalIsOption in interface IDeliberationStrategy
      Parameters:
      goal - The goal.
    • goalIsActive

      public jadex.future.IFuture<Void> goalIsActive(RGoal goal)
      Called when a goal becomes active.
      Specified by:
      goalIsActive in interface IDeliberationStrategy
      Parameters:
      goal - The goal.
    • goalIsNotActive

      public jadex.future.IFuture<Void> goalIsNotActive(RGoal goal)
      Called when a goal is not active any longer (suspended or option).
      Specified by:
      goalIsNotActive in interface IDeliberationStrategy
      Parameters:
      goal - The goal.
    • addInhibitor

      public void addInhibitor(RGoal goal, RGoal inhibitor)
      Add an inhibitor to a goal.
    • inhibitGoal

      protected void inhibitGoal(RGoal goal)
      Inhibit a goal by making it an option.
    • removeInhibitor

      protected void removeInhibitor(RGoal goal, RGoal inhibitor)
      Remove an inhibitor from a goal.
    • reactivateGoal

      protected void reactivateGoal(RGoal goal)
      (Re)activate a goal.
    • isInhibited

      protected boolean isInhibited(RGoal goal)
      Test if goal is inhibited.
    • isInhibitedBy

      protected boolean isInhibitedBy(RGoal goal, RGoal other)
      Test if goal is inhibited by another goal.
    • inhibits

      protected boolean inhibits(RGoal goal, RGoal other)
      Test if this goal inhibits the other.
    • getCapability

      protected RCapability getCapability()
      Get the capability.
    • getInhibitions

      protected Set<RGoal> getInhibitions(RGoal goal, boolean create)
      Get or create the inhibition set.