|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jtp.proof.Proof | +--jtp.ReasoningStep | +--jtp.frame.listen.VCListenerCreationReasoningStep
A forward-chaining resolution reasoning step.
Field Summary |
Fields inherited from class jtp.proof.Proof |
bindings, goal, inference, subGoals, subProofs |
Constructor Summary | |
VCListenerCreationReasoningStep(String ID,
VCTemplate[] vcTemplates,
ListenerTemplate goalTemplate)
|
|
VCListenerCreationReasoningStep(String ID,
VCTemplate[] vcTemplates,
ListenerTemplate goalTemplate,
Collection unacceptableSources)
|
|
VCListenerCreationReasoningStep(String ID,
VCTemplate[] vcTemplates,
ListenerTemplate goalTemplate,
Collection unacceptableSources,
URL kbLocation)
|
|
VCListenerCreationReasoningStep(String ID,
VCTemplate[] vcTemplates,
ListenerTemplate goalTemplate,
List subSteps)
|
|
VCListenerCreationReasoningStep(String ID,
VCTemplate[] vcTemplates,
ListenerTemplate goalTemplate,
List subSteps,
Collection unacceptableSources)
|
Method Summary | |
protected boolean |
cloneNeedsDereferencing(ReasoningStep clone)
Determines if clone is different from this
because this has data members that contain
Unifyables that were
dereferenced in clone . |
protected Collection |
collectUnifyableElements()
Returns a collection of data members of this ReasoningStep that are instances of Unifyable. |
VCListenerCreationReasoningStep |
createChildlessClone()
|
protected ReasoningStep |
createDereferencedClone()
Returns a clone of this ReasoningStep in which all nested Variables have been replaced by the values that they are bound to at the time of clone creation. |
Object |
getGoal()
Returns the goal that this Proof proves. |
ListenerTemplate |
getGoalTemplate()
|
String |
getID()
|
URL |
getKBLocation()
|
protected VCTemplate[] |
getVCTemplates()
|
String |
tracePrint()
Returns a string that describes the inference that this reasoning step makes. |
Methods inherited from class jtp.ReasoningStep |
addContentsIfUnifyable, backtrack, clone, contains, deReferenceBindings, deReferenceElement, deReferenceList, deReferenceVariables, getCost, getInference, getSubProofs, getVariables, makeStep, unify |
Methods inherited from class jtp.proof.Proof |
getBindings, getSubGoals, toString, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VCListenerCreationReasoningStep(String ID, VCTemplate[] vcTemplates, ListenerTemplate goalTemplate, Collection unacceptableSources)
public VCListenerCreationReasoningStep(String ID, VCTemplate[] vcTemplates, ListenerTemplate goalTemplate, List subSteps, Collection unacceptableSources)
public VCListenerCreationReasoningStep(String ID, VCTemplate[] vcTemplates, ListenerTemplate goalTemplate)
public VCListenerCreationReasoningStep(String ID, VCTemplate[] vcTemplates, ListenerTemplate goalTemplate, List subSteps)
public VCListenerCreationReasoningStep(String ID, VCTemplate[] vcTemplates, ListenerTemplate goalTemplate, Collection unacceptableSources, URL kbLocation)
Method Detail |
protected VCTemplate[] getVCTemplates()
public ListenerTemplate getGoalTemplate()
public String getID()
public URL getKBLocation()
public Object getGoal()
Proof
CNFSentence
s, but they can be other Objects as well.
getGoal
in class Proof
protected Collection collectUnifyableElements()
ReasoningStep
This default implementation handles the collection of Unifyables
from the goal
, bindings
,
subgoals
, and subproofs
.
Subclasses should override this method
if they have other data members that could contain Unifyables.
Overriding methods should make a call to super
to collect
Unifyables from the common members mentioned above.
collectUnifyableElements
in class ReasoningStep
protected ReasoningStep createDereferencedClone()
ReasoningStep
This default implementation handles dereferencing of Unifyables
nested in goal
,
bindings
, subgoals
,
and subproofs
.
Subclasses should override this method if they have
other data members that could contain
Unifyables that need to be dereferenced. Overriding methods
should make a call to super
to get initial clone
that has the data members mentioned above dereferenced.
createDereferencedClone
in class ReasoningStep
protected boolean cloneNeedsDereferencing(ReasoningStep clone)
ReasoningStep
clone
is different from this
because this
has data members that contain
Unifyables that were
dereferenced in clone
.
This default implementation compares goal
,
bindings
, subgoals
,
and subproofs
of clone
and this
to determine if Unifyables were
dereferenced in the clone.
Subclasses should override this method if they also
override ReasoningStep.createDereferencedClone()
and may dereference
other data members in the clone.
Overriding methods should make a call to super
to
do comparison for the data members mentioned above.
cloneNeedsDereferencing
in class ReasoningStep
clone
- a dereferenced clone of this
created with ReasoningStep.createDereferencedClone()
clone
; false otherwisepublic String tracePrint()
ReasoningStep
tracePrint
in class ReasoningStep
public VCListenerCreationReasoningStep createChildlessClone()
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |