org.jscience.mathematics.analysis.expressions.comparison
Class BinaryComparison

java.lang.Object
  extended by org.jscience.mathematics.analysis.expressions.comparison.BinaryComparison
All Implemented Interfaces:
java.io.Serializable, Logical
Direct Known Subclasses:
EQ, GE, GT, LE, LT, NEQ

public abstract class BinaryComparison
extends java.lang.Object
implements Logical

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
protected static java.lang.String CR
          DOCUMENT ME!
protected  Expression firstOperand
          DOCUMENT ME!
protected  Expression secondOperand
          DOCUMENT ME!
 
Constructor Summary
BinaryComparison(Expression firstOperand, Expression secondOperand)
          Creates a new BinaryComparison object.
 
Method Summary
 boolean contains(Expression e)
          DOCUMENT ME!
 Expression getFirstOperand()
          DOCUMENT ME!
 Expression getSecondOperand()
          DOCUMENT ME!
 Logical optimize()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jscience.mathematics.analysis.expressions.logical.Logical
replace, toJava, toString, toXML, truthValue
 

Field Detail

CR

protected static final java.lang.String CR
DOCUMENT ME!


firstOperand

protected Expression firstOperand
DOCUMENT ME!


secondOperand

protected Expression secondOperand
DOCUMENT ME!

Constructor Detail

BinaryComparison

public BinaryComparison(Expression firstOperand,
                        Expression secondOperand)
Creates a new BinaryComparison object.

Parameters:
firstOperand - DOCUMENT ME!
secondOperand - DOCUMENT ME!
Method Detail

getFirstOperand

public Expression getFirstOperand()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSecondOperand

public Expression getSecondOperand()
DOCUMENT ME!

Returns:
DOCUMENT ME!

optimize

public Logical optimize()
DOCUMENT ME!

Specified by:
optimize in interface Logical
Returns:
DOCUMENT ME!

contains

public boolean contains(Expression e)
DOCUMENT ME!

Specified by:
contains in interface Logical
Parameters:
e - DOCUMENT ME!
Returns:
DOCUMENT ME!