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
nextBBFields inherited from class jason.bb.BeliefBase
APercept, ASelf, TPercept, TSelf -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInChain(BeliefBase bb) add a new BB at the end of the chainvoidCalled 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, toStringMethods inherited from class jason.bb.BeliefBase
abolish, getLock, getNameSpaceProp, getNameSpaceProps, setNameSpacePropMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ChainBB
public ChainBB()
-
-
Method Details
-
init
Description copied from class:BeliefBaseCalled 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:
initin classChainBBAdapter
-
addInChain
add a new BB at the end of the chain -
getChainClasses
-