public class SetBeliefStep extends java.lang.Object implements IComponentStep<java.lang.Void>
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
beliefs |
Constructor and Description |
---|
SetBeliefStep(java.util.Map beliefs)
Sets multiple agent beliefs.
|
SetBeliefStep(java.lang.String belief,
java.lang.Object fact)
Sets an agent's belief.
|
Modifier and Type | Method and Description |
---|---|
IFuture<java.lang.Void> |
execute(IInternalAccess ia)
Execute the command.
|
public SetBeliefStep(java.lang.String belief, java.lang.Object fact)
belief
- Name of the belief.fact
- New fact of the belief.public SetBeliefStep(java.util.Map beliefs)
beliefs
- The beliefs.public IFuture<java.lang.Void> execute(IInternalAccess ia)
IComponentStep
execute
in interface IComponentStep<java.lang.Void>