|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Dispatcher is a Reasoner that typically does not perform any reasoning itself, but rather redirects queries/assertions to its child reasoners. A dispatcher can have multiple child reasoners, some of those can be dispatchers themselves. Dispathcers and reasoners, therefore, form a hierarchy; dispatchers are inner nodes of a tree, non-dispatcher reasoners are leaf nodes.
If the query/assertion is routed to several children, it is the task of the Dispatcher to aggregate the results into a common ReasoningStepIterator.
DispatcherUtils
Method Summary | |
boolean |
addReasoner(Reasoner r)
Add a reasoner directly to this dispatcher. |
Class |
getReasonerClass()
Returns the class of reasoners this dispatcher works with. |
Collection |
getReasoners()
Retrieves the collection of child reasoners directly beneath this dispatcher. |
boolean |
removeReasoner(Reasoner r)
Removes a reasoner directly from this dispatcher. |
Methods inherited from interface jtp.Reasoner |
acceptable, process |
Method Detail |
public boolean addReasoner(Reasoner r)
DispatcherUtils.addToDispatcher(jtp.Reasoner, jtp.Dispatcher)
.
r
- the reasoner to add
public boolean removeReasoner(Reasoner r)
DispatcherUtils.removeFromDispatcher(jtp.Reasoner, jtp.Dispatcher)
.
r
- the reasoner to remove
public Class getReasonerClass()
public Collection getReasoners()
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |