|
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.vc.MembershipProofStep
This proof step indicates that, in the frame system, a
specific ValueCollection
contains the value in
question.
Created: Wed Oct 25 03:01:28 2000
Field Summary | |
protected Object |
value
|
protected ValueCollection |
vc
|
Fields inherited from class jtp.proof.Proof |
bindings, goal, inference, subGoals, subProofs |
Constructor Summary | |
MembershipProofStep(ValueCollection vc,
Object value)
|
Method Summary | |
protected boolean |
cloneNeedsDereferencing(ReasoningStep clone0)
Determines if clone is different from this
because this has data members that contain
Unifyables that were
dereferenced in clone . |
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. |
void |
setBindings(Map bindings)
|
void |
setSubStep(ReasoningStep rs)
|
String |
tracePrint()
Returns a string that describes the inference that this reasoning step makes. |
Methods inherited from class jtp.ReasoningStep |
addContentsIfUnifyable, backtrack, clone, collectUnifyableElements, 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 |
Field Detail |
protected ValueCollection vc
protected Object value
Constructor Detail |
public MembershipProofStep(ValueCollection vc, Object value)
Method Detail |
public Object getGoal()
Proof
CNFSentence
s, but they can be other Objects as well.
getGoal
in class Proof
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 clone0)
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
clone0
- a dereferenced clone of this
created with ReasoningStep.createDereferencedClone()
clone
; false otherwisepublic String tracePrint()
ReasoningStep
tracePrint
in class ReasoningStep
public void setBindings(Map bindings)
public void setSubStep(ReasoningStep rs)
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |