| 
 | |||||||||
| 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.Implies
public class Implies
The Implies formula.
 Extends abstract class Formula.
| Constructor Summary | |
|---|---|
| Implies(Formula pLeft,
        Formula pRight)Constructs an Implies Formula. | |
| Method Summary | |
|---|---|
|  void | addToSignature(PanSignature pSignature)This method adds the Atoms and Terms of this Formula to the passed PanSignature 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 th eoccurrences of Term x by Term y in this Formula. | 
|  java.lang.String | clashes(PanSignature pSignature)Returns a String containing an Error character if this Formula clashes with the passed PanSignature, Otherwise it will return an Empty String "" An Implies Formula clashes with a signature if any of its left or right sub-Formulae clashes with the signature. | 
|  java.lang.String | display()Returns the a String to display the Implies formula. | 
|  Formula | getLeft()Returns the left side formula. | 
|  int | getPrecedence()Returns an integer representing the precedence of this formula according to binding conventions | 
|  Formula | getRight()Returns the right side formula. | 
|  java.util.List<Term> | getTerms()This method returns a list | 
|  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()Obtains the atoms in the formula and adds them to the list of atoms for the tree which contains this formula. | 
|  void | setLeft(Formula pLeft)Sets the left formula of the implication | 
|  void | setRight(Formula pRight)Sets the right formula of the implication | 
|  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 in this Formula. | 
|  Formula | subBoolRes(java.lang.String display) | 
| Methods inherited from class Raptor.LogicParser.Formula.Formula | 
|---|
| check, concatNoDup, getAtoms, getTuples, getVars, higher, map, 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 Implies(Formula pLeft,
               Formula pRight)
pLeft - Formula of left side of implicationpRight - Formula of right side of cimplication| Method Detail | 
|---|
public void setAtoms()
setAtoms in class Formulapublic Formula getLeft()
getLeft in class Formulapublic Formula getRight()
getRight in class Formulapublic void setLeft(Formula pLeft)
setLeft in class Formulapublic void setRight(Formula pRight)
setRight in class Formulapublic java.lang.String display()
display in class Formula
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 substitute 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 setVars(Var pVar)
setVars in class FormulapVar - Var represents the Var to be added to the list of this
            formula's variables.public java.lang.String clashes(PanSignature pSignature)
clashes in class FormulapSignature - PanSignature represents the PanSignature to be checked if this
            Formula clashes with.public void addToSignature(PanSignature pSignature)
addToSignature in class FormulapSignature - PanSignature represents the signature to add this Formula to.public java.util.List<Term> getTerms()
getTerms in class Formulapublic Formula s()
s in class Formulapublic Formula regenerate()
regenerate in class Formulapublic int getPrecedence()
getPrecedence 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 | ||||||||