Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • beliefs

        protected java.util.Map beliefs
    • 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.