|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fmrisc.Proving.Formula
public final class Formula
A formula occuring in a proof state.
Constructor Summary | |
---|---|
Formula(ProofState state,
Expression formula,
boolean isGoal)
construct a formula from an expression |
|
Formula(ProofState state,
Formula formula)
construct a copy of the given formula in the denoted state |
Method Summary | |
---|---|
Expression |
getExpression()
Get formula expression. |
java.lang.String |
getLabel()
get formula label |
ProofState |
getState()
Get proof state of formula. |
boolean |
isGoal()
get formula isGoal |
void |
print(java.io.PrintWriter out)
print formula on output stream as "[label] formula" |
void |
setExpression(Expression formula)
Set formula expression. |
static Formula[] |
toArray(java.util.Vector v)
converts vector v of Formula objects to array |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Formula(ProofState state, Expression formula, boolean isGoal)
state
- the proof state in which the formula occursformula
- the expression representing the formulaisGoal
- true if formula is a goal, false, if it is an assumption.public Formula(ProofState state, Formula formula)
state
- the proof state in which the new formula occursformula
- a given formulaMethod Detail |
---|
public ProofState getState()
public Expression getExpression()
public void setExpression(Expression formula)
formula
- the formula expressionpublic java.lang.String getLabel()
public boolean isGoal()
public void print(java.io.PrintWriter out)
out
- the stream on which to print the formulapublic static Formula[] toArray(java.util.Vector v)
v
- a vector holding Formula objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |