Raptor.LogicParser.Formula.BExp
Class LessThan

java.lang.Object
  extended by Raptor.LogicParser.Formula.Formula
      extended by Raptor.LogicParser.Formula.BExp.BExp
          extended by Raptor.LogicParser.Formula.BExp.LessThan
All Implemented Interfaces:
java.io.Serializable

public class LessThan
extends BExp

Creates a less than expression.
Extends BExp.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class Raptor.LogicParser.Formula.BExp.BExp
left, op, right
 
Constructor Summary
LessThan(Term pLeft, Term pRight)
          Constructs a new GreaterThan BExp.
 
Method Summary
 java.lang.String display()
          Returns a String to display the less than expression.
 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.
 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.BExp.BExp
addToSignature, checkSub, clashes, getLeftTerm, getPrecedence, getRightTerm, getTerms, setAtoms, setVars
 
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

LessThan

public LessThan(Term pLeft,
                Term pRight)
Constructs a new GreaterThan BExp.

Parameters:
pLeft - the term on the left side of the greater than symbol
pRight - the term on the right side of the greater than symbol
Method Detail

display

public java.lang.String display()
Returns a String to display the less than expression.

Specified by:
display in class BExp

s

public Formula s()
Creates VVar to replace PVar in the formula where necessary. Used in Raptor.

Specified by:
s in class Formula

regenerate

public Formula regenerate()
Returns a copy of the Formula which can be saved as part of the copy made for the undo function.

Specified by:
regenerate in class Formula

subAll

public 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

Specified by:
subAll in class Formula
Parameters:
pTermX - Term represents the Term to be substituted.
pTermY - Term represents the Term to substitute Term x.

ST

public Term ST()
Specified by:
ST in class Formula

subAll

public Formula subAll(PTerm left,
                      PTerm right)
Specified by:
subAll in class Formula

subBoolRes

public Formula subBoolRes(java.lang.String display)
Specified by:
subBoolRes in class Formula