Package jason.bb
Class TextPersistentBB
java.lang.Object
jason.bb.BeliefBase
jason.bb.ChainBBAdapter
jason.bb.TextPersistentBB
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".
-
Field Summary
Fields inherited from class jason.bb.ChainBBAdapter
nextBB
Fields inherited from class jason.bb.BeliefBase
APercept, ASelf, TPercept, TSelf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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"].void
stop()
Called just before the end of MAS executionMethods inherited from class jason.bb.ChainBBAdapter
abolish, add, add, clear, clone, contains, getAsDOM, getCandidateBeliefs, getCandidateBeliefs, getLastBB, getNameSpaces, getNextAdapter, getPercepts, iterator, remove, setNext, size, toString
Methods inherited from class jason.bb.BeliefBase
abolish, getLock, getNameSpaceProp, getNameSpaceProps, setNameSpaceProp
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TextPersistentBB
public TextPersistentBB() -
TextPersistentBB
-
-
Method Details
-
init
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 classChainBBAdapter
-
stop
public void stop()Description copied from class:BeliefBase
Called just before the end of MAS execution- Overrides:
stop
in classChainBBAdapter
-