Package jason.bb

Class ChainBB

All Implemented Interfaces:
ToDOM, Cloneable, 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(_,_,_)")
            );
  
  • Constructor Details

    • ChainBB

      public ChainBB()
  • Method Details

    • init

      public void init(Agent ag, 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 List<Class> getChainClasses()