|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jtp.demod.DemodulatingProxy
DemodulatingProxy.java Created: Thu Aug 8 23:10:09 2002
Constructor Summary | |
DemodulatingProxy(CanonicalMapping mapping,
Reasoner delegate)
|
Method Summary | |
boolean |
acceptable(Object goal)
decides if the goal is suitable for being processed by this reasoner. |
ReasoningStepIterator |
process(Object goal)
This method attempts to find proof for the goal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DemodulatingProxy(CanonicalMapping mapping, Reasoner delegate)
Method Detail |
public boolean acceptable(Object goal)
Reasoner
Example. Many reasoners only process literals with certain predicates and arity. These reasoners will use those criteria to determine acceptability, for example a reasoner dealing with equality could accept goals that are:
acceptable
in interface Reasoner
public ReasoningStepIterator process(Object goal) throws ReasoningException
Reasoner
Example. A reasoner that performs unification of the goal with facts in a
knowledge base can return the following enumeration for the goal (parent joe ?x)
:
(parent joe fred)
with variable assignment
?x=fred,(parent joe mary)
with variable assignment
?x=mary.
process
in interface Reasoner
goal
- the goal: either a query or an assertion
ReasoningException
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |