Package jason.bb

Class ChainBB

java.lang.Object
All Implemented Interfaces:
ToDOM, java.lang.Cloneable, java.lang.Iterable<Literal>

public class ChainBB
extends ChainBBAdapter
A wrapper for a chain of belief bases customisations. The arguments are the belief bases in the chain jason.bb.ChainBB( bb1, bb2, bb3, ... ) where each BB is bbclass(bb parameters) e.g.:
  agents:
        bob beliefBaseClass jason.bb.ChainBB(
              jason.bb.TextPersistentBB,
              jason.bb.IndexedBB("student(key,_)", "depot(_,_,_)")
            );
  
  • Field Details

    • logger

      private static java.util.logging.Logger logger
  • Constructor Details

    • ChainBB

      public ChainBB()
  • Method Details

    • init

      public void init​(Agent ag, java.lang.String[] args)
      Description copied from class: BeliefBase
      Called before the MAS execution with the agent that uses this BB and the args informed in .mas2j project.
      Example in .mas2j:
      agent BeliefBaseClass(1,bla);
      the init args will be ["1", "bla"].
      Overrides:
      init in class ChainBBAdapter
    • addInChain

      public void addInChain​(BeliefBase bb)
      add a new BB at the end of the chain
    • getChainClasses

      public java.util.List<java.lang.Class> getChainClasses()