|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectRaptor.LogicParser.Formula.Formula
Raptor.LogicParser.Formula.Quantifier
Raptor.LogicParser.Formula.Exists
public class Exists
The There Exists quantifier formula.
Extends abstract class Quantifier.
| Constructor Summary | |
|---|---|
Exists(Var pVar,
Formula pFormula)
Constructs a There Exists Formula. |
|
| Method Summary | |
|---|---|
void |
addToSignature(PanSignature pSignature)
This method adds this Formula to the passed PanSignature's IF it is not already in the signature. |
boolean |
checkSub(Term pTermX,
Term pTermY,
Formula pFormula)
Returns true if the passed formula f can be reached by substituting the occurrences of Term x by Term y. |
java.lang.String |
display()
Returns the a String to display the There Exists Formula. |
Formula |
getFormula()
Returns the Formula which is bound by the quantifier. |
Var |
getVar()
Returns the bound variable of the quantifier formula. |
Formula |
regenerate()
Returns a copy of the Formula which can be saved as part of the copy made for the undo function. |
Formula |
s()
Creates VVar to replace PVar in the formula where necessary. |
void |
setAtoms()
Adds this atom to the list of atoms for the formula. The list of atoms is found in Formula class. |
void |
setVars(Var pVar)
This method adds Var v to the list of variables this Formula is bound to. |
Term |
ST()
|
Formula |
subAll(PTerm left,
PTerm right)
|
Formula |
subAll(Term pTermX,
Term pTermY)
Returns the Formula that is derived after substituting ALL the occurrences of Term x with Term y. |
Formula |
subBoolRes(java.lang.String display)
|
| Methods inherited from class Raptor.LogicParser.Formula.Quantifier |
|---|
clashes, getAllTerms, getPrecedence, getTerms |
| Methods inherited from class Raptor.LogicParser.Formula.Formula |
|---|
check, concatNoDup, getAtoms, getLeft, getRight, getTuples, getVars, higher, map, setLeft, setRight, setTuples, showTuples, sub, subBool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Exists(Var pVar,
Formula pFormula)
pVar - Var represents the variable of the There Exists Formula.pFormula - Formula represents the Formula the quantifier is applied on.| Method Detail |
|---|
public Var getVar()
getVar in class Quantifierpublic Formula getFormula()
getFormula in class Quantifierpublic java.lang.String display()
display in class Quantifierpublic void setAtoms()
setAtoms in class Formulapublic void setVars(Var pVar)
setVars in class FormulapVar - Var represents the Var to be added to the list of this
Formula's variables.
public boolean checkSub(Term pTermX,
Term pTermY,
Formula pFormula)
checkSub in class FormulapTermX - Term represents the Term to be substituted.pTermY - Term represents the Term to substituted Term x.pFormula - Formula represents the Formula to check if it can be reached
after substitution.
public Formula subAll(Term pTermX,
Term pTermY)
subAll in class FormulapTermX - Term represents the Term to be substituted.pTermY - Term represents the Term to substitute Term x.public void addToSignature(PanSignature pSignature)
addToSignature in class FormulapSignature - PanSignature represents the signature to add this Formula to.public Formula s()
s in class Formulapublic Formula regenerate()
regenerate in class Formulapublic Term ST()
ST in class Formula
public Formula subAll(PTerm left,
PTerm right)
subAll in class Formulapublic Formula subBoolRes(java.lang.String display)
subBoolRes in class Formula
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||