|
JTP API Documentation | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.beans.beancontext.BeanContextChildSupport
|
+--jtp.util.PropertyImporter
|
+--jtp.frame.fc.RuleInstantiator
| Field Summary | |
TriggerLiteralMatcher |
tm
|
| Fields inherited from class java.beans.beancontext.BeanContextChildSupport |
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport |
| Constructor Summary | |
RuleInstantiator()
|
|
| Method Summary | |
boolean |
acceptable(Object goal)
decides if the goal is suitable for being processed by this reasoner. |
void |
addTrigger(Literal trigger,
Literal target,
TriggerValidator validator)
|
Reasoner |
getAskingReasoner()
|
UndoManager |
getUndoManager()
|
ReasoningStepIterator |
process(Object o)
This method attempts to find proof for the goal. |
boolean |
removeTrigger(Literal trigger,
Symbol ruleSym)
|
void |
setAskingReasoner(Reasoner v)
|
void |
setUndoManager(UndoManager u)
|
| Methods inherited from class jtp.util.PropertyImporter |
getImportedProperties, initializeBeanContextResources, setImportedProperties |
| Methods inherited from class java.beans.beancontext.BeanContextChildSupport |
addPropertyChangeListener, addVetoableChangeListener, firePropertyChange, fireVetoableChange, getBeanContext, getBeanContextChildPeer, isDelegated, releaseBeanContextResources, removePropertyChangeListener, removeVetoableChangeListener, serviceAvailable, serviceRevoked, setBeanContext, validatePendingSetBeanContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public TriggerLiteralMatcher tm
| Constructor Detail |
public RuleInstantiator()
| Method Detail |
public Reasoner getAskingReasoner()
public void setAskingReasoner(Reasoner v)
public UndoManager getUndoManager()
public void setUndoManager(UndoManager u)
public void addTrigger(Literal trigger,
Literal target,
TriggerValidator validator)
public boolean removeTrigger(Literal trigger,
Symbol ruleSym)
public boolean acceptable(Object goal)
ReasonerExample. 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 Reasonerpublic ReasoningStepIterator process(Object o)
ReasonerExample. 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 Reasonero - the goal: either a query or an assertion
|
JTP API Documentation | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||