Package jason.bb

Class TextPersistentBB

All Implemented Interfaces:
ToDOM, Cloneable, Iterable<Literal>

public class TextPersistentBB extends ChainBBAdapter
Implementation of BB that stores the agent BB in text files. This implementation is very simple: when the agent starts, load the beliefs in the file; when the agent stops, save the BB in the file. The file name is the agent's name + ".bb".
  • Constructor Details

    • TextPersistentBB

      public TextPersistentBB()
    • TextPersistentBB

      public TextPersistentBB(BeliefBase next)
  • 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
    • stop

      public void stop()
      Description copied from class: BeliefBase
      Called just before the end of MAS execution
      Overrides:
      stop in class ChainBBAdapter