org.jscience.mathematics.analysis.expressions.logical
Class LogicalBinary

java.lang.Object
  extended by org.jscience.mathematics.analysis.expressions.logical.LogicalBinary
All Implemented Interfaces:
java.io.Serializable, Logical
Direct Known Subclasses:
And, Or, Xor

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

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
protected static java.lang.String CR
          DOCUMENT ME!
protected  Logical firstOperand
          DOCUMENT ME!
protected  Logical secondOperand
          DOCUMENT ME!
 
Constructor Summary
LogicalBinary(Logical firstOperand, Logical secondOperand)
          Creates a new LogicalBinary object.
 
Method Summary
 boolean contains(Expression e)
          DOCUMENT ME!
 Logical getFirstOperand()
          DOCUMENT ME!
 Logical 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 Logical firstOperand
DOCUMENT ME!


secondOperand

protected Logical secondOperand
DOCUMENT ME!

Constructor Detail

LogicalBinary

public LogicalBinary(Logical firstOperand,
                     Logical secondOperand)
Creates a new LogicalBinary object.

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

getFirstOperand

public Logical getFirstOperand()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSecondOperand

public Logical 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!