JTP API Documentation

jtp.disp
Class RelationBasedDispatcher

java.lang.Object
  |
  +--jtp.disp.RelationBasedDispatcher
All Implemented Interfaces:
Dispatcher, Reasoner
Direct Known Subclasses:
RelationBasedBCDispatcher, RelationBasedFCDispatcher

public abstract class RelationBasedDispatcher
extends Object
implements Dispatcher

RelationBasedDispatcher.java Created: Tue Oct 05 01:00:20 1999


Method Summary
protected  boolean addRelationBasedReasoner(RelationBasedReasoner rr)
           
 Collection getReasoners()
          Retrieves the collection of child reasoners directly beneath this dispatcher.
 ReasoningStepIterator process(Literal lit, Object o)
           
protected  boolean removeRelationBasedReasoner(RelationBasedReasoner r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jtp.Dispatcher
addReasoner, getReasonerClass, removeReasoner
 
Methods inherited from interface jtp.Reasoner
acceptable, process
 

Method Detail

process

public ReasoningStepIterator process(Literal lit,
                                     Object o)
                              throws ReasoningException
Returns:
ReasoningException

addRelationBasedReasoner

protected boolean addRelationBasedReasoner(RelationBasedReasoner rr)

removeRelationBasedReasoner

protected boolean removeRelationBasedReasoner(RelationBasedReasoner r)

getReasoners

public Collection getReasoners()
Description copied from interface: Dispatcher
Retrieves the collection of child reasoners directly beneath this dispatcher. This collection may be "live", i.e. in some cases modification to this collection will reflect on the state of the dispatcher. Therefore it might be a good idea to make a copy before trying to modify it.

Specified by:
getReasoners in interface Dispatcher
Returns:
the collection of child reasoners directly beneath this dispatcher.

JTP API Documentation