|
|||||||||
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.Atom
Raptor.LogicParser.Formula.Predicate
Raptor.LogicParser.Formula.Equals
public class Equals
The Equals formula.
Extends class Predicate.
Constructor Summary | |
---|---|
Equals(java.util.Vector<Term> pTerms)
Constructs an Equals formula. |
Method Summary | |
---|---|
boolean |
check2(Term pTermX,
Term pTermY,
Equals pEquals)
A helper function used by the checkSub method Returns true if the passed formula f can be reached by substituting th eoccurrences of Term x by Term y in this Formula. |
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 in this Formula. |
java.lang.String |
display()
Returns the String to display the equality formula. |
Term |
getLeftTerm()
Returns the left hand side of the equality. |
Term |
getRightTerm()
Returns the right hand side of the equality. |
java.util.List<Term> |
getTerms()
Returns both left and right side of the equality in a list of Terms. |
Formula |
regenerate()
Returns a copy of the Formula which can be saved as part of the copy made for the undo function. |
void |
setAtoms()
Adds this atom to the list of atoms for the formula. |
Formula |
subAll(Term pTermX,
Term pTermY)
Returns the Formula that is derived after substituting ALL the occurrences of Term x with Term y in this Formula. |
Methods inherited from class Raptor.LogicParser.Formula.Predicate |
---|
check2, checkFunc, clone, equals, getArity, getName, getParams, setParams, setVars, subVar |
Methods inherited from class Raptor.LogicParser.Formula.Atom |
---|
addToSignature, clashes, clashes, clashes, equals, getPrecedence, isIn, s, ST, subAll, subBoolRes |
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 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Equals(java.util.Vector<Term> pTerms)
pTerms
- VectorMethod Detail |
---|
public Term getLeftTerm()
public Term getRightTerm()
public java.lang.String display()
display
in class Predicate
public void setAtoms()
setAtoms
in class Atom
public java.util.List<Term> getTerms()
getTerms
in class Predicate
public boolean checkSub(Term pTermX, Term pTermY, Formula pFormula)
checkSub
in class Predicate
pTermX
- Term represents the Term to be substituted.pTermY
- Term represents the Term to substitute Term a.pFormula
- Formula represents the Formula to check if it can be reached
after substitution.public boolean check2(Term pTermX, Term pTermY, Equals pEquals)
pTermX
- Term represents the Term to be substituted.pTermY
- Term represents the Term to substitute Term a.pEquals
- Equals represents the Equals Formula to check if it can be
reached after substitution.public Formula subAll(Term pTermX, Term pTermY)
subAll
in class Predicate
pTermX
- Term represents the Term to be substituted.pTermY
- Term represents the Term to substitute Term a.public Formula regenerate()
regenerate
in class Predicate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |