Package jason.bb
Class ChainBB
java.lang.Object
jason.bb.BeliefBase
jason.bb.ChainBBAdapter
jason.bb.ChainBB
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 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
addInChain
(BeliefBase bb) add a new BB at the end of the chainvoid
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, 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
-
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
-