Package jason.bb
Class ChainBB
java.lang.Object
jason.bb.BeliefBase
jason.bb.ChainBBAdapter
jason.bb.ChainBB
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 Summary
Fields Modifier and Type Field Description private static java.util.logging.Logger
logger
Fields inherited from class jason.bb.ChainBBAdapter
nextBB
-
Constructor Summary
Constructors Constructor Description ChainBB()
-
Method Summary
Modifier and Type Method Description void
addInChain(BeliefBase bb)
add a new BB at the end of the chainjava.util.List<java.lang.Class>
getChainClasses()
void
init(Agent ag, java.lang.String[] args)
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"].Methods inherited from class jason.bb.ChainBBAdapter
abolish, add, add, clear, clone, contains, getAsDOM, getCandidateBeliefs, getCandidateBeliefs, getLastBB, getNameSpaces, getNextAdapter, getPercepts, iterator, remove, setNext, size, stop, toString
Methods inherited from class jason.bb.BeliefBase
abolish, getLock
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
-
Field Details
-
logger
private static java.util.logging.Logger logger
-
-
Constructor Details
-
ChainBB
public ChainBB()
-
-
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
-
addInChain
add a new BB at the end of the chain -
getChainClasses
public java.util.List<java.lang.Class> getChainClasses()
-