Package jadex.bdi.planlib.iasteps
Class SetBeliefStep
- java.lang.Object
-
- jadex.bdi.planlib.iasteps.SetBeliefStep
-
- All Implemented Interfaces:
IComponentStep<java.lang.Void>
public class SetBeliefStep extends java.lang.Object implements IComponentStep<java.lang.Void>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map
beliefs
-
Constructor Summary
Constructors Constructor Description SetBeliefStep(java.lang.String belief, java.lang.Object fact)
Sets an agent's belief.SetBeliefStep(java.util.Map beliefs)
Sets multiple agent beliefs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
execute(IInternalAccess ia)
Execute the command.
-
-
-
Constructor Detail
-
SetBeliefStep
public SetBeliefStep(java.lang.String belief, java.lang.Object fact)
Sets an agent's belief.- Parameters:
belief
- Name of the belief.fact
- New fact of the belief.
-
SetBeliefStep
public SetBeliefStep(java.util.Map beliefs)
Sets multiple agent beliefs.- Parameters:
beliefs
- The beliefs.
-
-
Method Detail
-
execute
public IFuture<java.lang.Void> execute(IInternalAccess ia)
Description copied from interface:IComponentStep
Execute the command.- Specified by:
execute
in interfaceIComponentStep<java.lang.Void>
- Returns:
- The result of the command.
-
-