Package jadex.bdiv3.runtime
Class EasyDeliberationStrategy
- java.lang.Object
- 
- jadex.bdiv3.runtime.EasyDeliberationStrategy
 
- 
- All Implemented Interfaces:
- IDeliberationStrategy
 
 public class EasyDeliberationStrategy extends java.lang.Object implements IDeliberationStrategy The easy deliberation strategy.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected java.util.Map<jadex.bdiv3.runtime.impl.RGoal,java.util.Set<jadex.bdiv3.runtime.impl.RGoal>>inhibitionsThe set of inhibitors.
 - 
Constructor SummaryConstructors Constructor Description EasyDeliberationStrategy()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInhibitor(jadex.bdiv3.runtime.impl.RGoal goal, jadex.bdiv3.runtime.impl.RGoal inhibitor)Add an inhibitor to a goal.protected jadex.bdiv3.runtime.impl.RCapabilitygetCapability()Get the capability.protected java.util.Set<jadex.bdiv3.runtime.impl.RGoal>getInhibitions(jadex.bdiv3.runtime.impl.RGoal goal, boolean create)Get or create the inhibition set.IFuture<java.lang.Void>goalIsActive(jadex.bdiv3.runtime.impl.RGoal goal)Called when a goal becomes active.IFuture<java.lang.Void>goalIsAdopted(jadex.bdiv3.runtime.impl.RGoal goal)Called when a goal has been adopted.IFuture<java.lang.Void>goalIsDropped(jadex.bdiv3.runtime.impl.RGoal goal)Called when a goal has been dropped.IFuture<java.lang.Void>goalIsNotActive(jadex.bdiv3.runtime.impl.RGoal goal)Called when a goal is not active any longer (suspended or option).IFuture<java.lang.Void>goalIsOption(jadex.bdiv3.runtime.impl.RGoal goal)Called when a goal becomes an option.protected voidinhibitGoal(jadex.bdiv3.runtime.impl.RGoal goal)Inhibit a goal by making it an option.protected booleaninhibits(jadex.bdiv3.runtime.impl.RGoal goal, jadex.bdiv3.runtime.impl.RGoal other)Test if this goal inhibits the other.voidinit(IInternalAccess agent)Init the strategy.protected booleanisInhibited(jadex.bdiv3.runtime.impl.RGoal goal)Test if goal is inhibited.protected booleanisInhibitedBy(jadex.bdiv3.runtime.impl.RGoal goal, jadex.bdiv3.runtime.impl.RGoal other)Test if goal is inhibited by another goal.protected voidreactivateGoal(jadex.bdiv3.runtime.impl.RGoal goal)(Re)activate a goal.protected voidremoveInhibitor(jadex.bdiv3.runtime.impl.RGoal goal, jadex.bdiv3.runtime.impl.RGoal inhibitor)Remove an inhibitor from a goal.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
inhibitionsprotected java.util.Map<jadex.bdiv3.runtime.impl.RGoal,java.util.Set<jadex.bdiv3.runtime.impl.RGoal>> inhibitions The set of inhibitors.
 
- 
 - 
Method Detail- 
initpublic void init(IInternalAccess agent) Init the strategy.- Specified by:
- initin interface- IDeliberationStrategy
- Parameters:
- agent- The agent.
 
 - 
goalIsAdoptedpublic IFuture<java.lang.Void> goalIsAdopted(jadex.bdiv3.runtime.impl.RGoal goal) Called when a goal has been adopted.- Specified by:
- goalIsAdoptedin interface- IDeliberationStrategy
- Parameters:
- goal- The goal.
 
 - 
goalIsDroppedpublic IFuture<java.lang.Void> goalIsDropped(jadex.bdiv3.runtime.impl.RGoal goal) Called when a goal has been dropped.- Specified by:
- goalIsDroppedin interface- IDeliberationStrategy
- Parameters:
- goal- The goal.
 
 - 
goalIsOptionpublic IFuture<java.lang.Void> goalIsOption(jadex.bdiv3.runtime.impl.RGoal goal) Called when a goal becomes an option.- Specified by:
- goalIsOptionin interface- IDeliberationStrategy
- Parameters:
- goal- The goal.
 
 - 
goalIsActivepublic IFuture<java.lang.Void> goalIsActive(jadex.bdiv3.runtime.impl.RGoal goal) Called when a goal becomes active.- Specified by:
- goalIsActivein interface- IDeliberationStrategy
- Parameters:
- goal- The goal.
 
 - 
goalIsNotActivepublic IFuture<java.lang.Void> goalIsNotActive(jadex.bdiv3.runtime.impl.RGoal goal) Called when a goal is not active any longer (suspended or option).- Specified by:
- goalIsNotActivein interface- IDeliberationStrategy
- Parameters:
- goal- The goal.
 
 - 
addInhibitorpublic void addInhibitor(jadex.bdiv3.runtime.impl.RGoal goal, jadex.bdiv3.runtime.impl.RGoal inhibitor)Add an inhibitor to a goal.
 - 
inhibitGoalprotected void inhibitGoal(jadex.bdiv3.runtime.impl.RGoal goal) Inhibit a goal by making it an option.
 - 
removeInhibitorprotected void removeInhibitor(jadex.bdiv3.runtime.impl.RGoal goal, jadex.bdiv3.runtime.impl.RGoal inhibitor)Remove an inhibitor from a goal.
 - 
reactivateGoalprotected void reactivateGoal(jadex.bdiv3.runtime.impl.RGoal goal) (Re)activate a goal.
 - 
isInhibitedprotected boolean isInhibited(jadex.bdiv3.runtime.impl.RGoal goal) Test if goal is inhibited.
 - 
isInhibitedByprotected boolean isInhibitedBy(jadex.bdiv3.runtime.impl.RGoal goal, jadex.bdiv3.runtime.impl.RGoal other)Test if goal is inhibited by another goal.
 - 
inhibitsprotected boolean inhibits(jadex.bdiv3.runtime.impl.RGoal goal, jadex.bdiv3.runtime.impl.RGoal other)Test if this goal inhibits the other.
 - 
getCapabilityprotected jadex.bdiv3.runtime.impl.RCapability getCapability() Get the capability.
 - 
getInhibitionsprotected java.util.Set<jadex.bdiv3.runtime.impl.RGoal> getInhibitions(jadex.bdiv3.runtime.impl.RGoal goal, boolean create)Get or create the inhibition set.
 
- 
 
-