|
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's implementation of an InferenceWeb proof.
A Proof consists of a goal
,
bindings
for free variables in the goal,
the premises (subgoals
) upon which the bound goal
relies,
proofs
of the premises,
and an inference
representing the type of
inference made at this step of the proof.
A Proof is actually a tree. The child nodes are accessed through
the method getSubProofs()
.
Field Summary | |
protected Map |
bindings
|
protected Object |
goal
|
protected Inference |
inference
|
protected List |
subGoals
|
protected List |
subProofs
|
Constructor Summary | |
protected |
Proof()
|
|
Proof(Object goal,
List sps,
Inference i,
Map bindings)
|
Method Summary | |
Map |
getBindings()
A map of variable bindings in which the keys are free variables from the goal and the values are what the variables are bound to in the proof. |
Object |
getGoal()
Returns the goal that this Proof proves. |
Inference |
getInference()
The type of inference that this proof represents. |
List |
getSubGoals()
Returns a List of subgoals, or premises, that this Proof relies upon to prove its goal . |
List |
getSubProofs()
Returns a List of the direct child Proofs in the proof tree. |
String |
toString()
|
String |
toString(String path,
String prefix)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Object goal
protected Map bindings
protected List subGoals
protected List subProofs
protected Inference inference
Constructor Detail |
protected Proof()
public Proof(Object goal, List sps, Inference i, Map bindings)
goal
- the goal that this Proof provessps
- a List of the subproofs that this proof of the goal is based oni
- the type of inference that this proof representsbindings
- a map in which the keys are Variable
s and the values are what the variables are bound to in this proofMethod Detail |
public Object getGoal()
CNFSentence
s, but they can be other Objects as well.
public List getSubProofs()
getSubGoals()
public List getSubGoals()
goal
. If the subgoal
list and the subproof list are equal in length, then this is
a complete proof of the goal. If the subgoal list is longer,
then this is a partial proof, and the remaining subgoals must
be proven in order to prove the goal.
getSubProofs()
public Inference getInference()
public Map getBindings()
Variable
public String toString()
toString
in class Object
public String toString(String path, String prefix)
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |