Package jadex.bdi.runtime.impl
Class EasyDeliberationStrategy
java.lang.Object
jadex.bdi.runtime.impl.EasyDeliberationStrategy
- All Implemented Interfaces:
IDeliberationStrategy
The easy deliberation strategy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe set of inhibitors. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInhibitor
(RGoal goal, RGoal inhibitor) Add an inhibitor to a goal.protected RCapability
Get the capability.getInhibitions
(RGoal goal, boolean create) Get or create the inhibition set.jadex.future.IFuture
<Void> goalIsActive
(RGoal goal) Called when a goal becomes active.jadex.future.IFuture
<Void> goalIsAdopted
(RGoal goal) Called when a goal has been adopted.jadex.future.IFuture
<Void> goalIsDropped
(RGoal goal) Called when a goal has been dropped.jadex.future.IFuture
<Void> goalIsNotActive
(RGoal goal) Called when a goal is not active any longer (suspended or option).jadex.future.IFuture
<Void> goalIsOption
(RGoal goal) Called when a goal becomes an option.protected void
inhibitGoal
(RGoal goal) Inhibit a goal by making it an option.protected boolean
Test if this goal inhibits the other.void
init()
Init the strategy.protected boolean
isInhibited
(RGoal goal) Test if goal is inhibited.protected boolean
isInhibitedBy
(RGoal goal, RGoal other) Test if goal is inhibited by another goal.protected void
reactivateGoal
(RGoal goal) (Re)activate a goal.protected void
removeInhibitor
(RGoal goal, RGoal inhibitor) Remove an inhibitor from a goal.
-
Field Details
-
inhibitions
The set of inhibitors.
-
-
Constructor Details
-
EasyDeliberationStrategy
public EasyDeliberationStrategy()
-
-
Method Details
-
init
public void init()Init the strategy.- Specified by:
init
in interfaceIDeliberationStrategy
-
goalIsAdopted
Called when a goal has been adopted.- Specified by:
goalIsAdopted
in interfaceIDeliberationStrategy
- Parameters:
goal
- The goal.
-
goalIsDropped
Called when a goal has been dropped.- Specified by:
goalIsDropped
in interfaceIDeliberationStrategy
- Parameters:
goal
- The goal.
-
goalIsOption
Called when a goal becomes an option.- Specified by:
goalIsOption
in interfaceIDeliberationStrategy
- Parameters:
goal
- The goal.
-
goalIsActive
Called when a goal becomes active.- Specified by:
goalIsActive
in interfaceIDeliberationStrategy
- Parameters:
goal
- The goal.
-
goalIsNotActive
Called when a goal is not active any longer (suspended or option).- Specified by:
goalIsNotActive
in interfaceIDeliberationStrategy
- Parameters:
goal
- The goal.
-
addInhibitor
Add an inhibitor to a goal. -
inhibitGoal
Inhibit a goal by making it an option. -
removeInhibitor
Remove an inhibitor from a goal. -
reactivateGoal
(Re)activate a goal. -
isInhibited
Test if goal is inhibited. -
isInhibitedBy
Test if goal is inhibited by another goal. -
inhibits
Test if this goal inhibits the other. -
getCapability
Get the capability. -
getInhibitions
Get or create the inhibition set.
-