Release Planner v1.0

rp.expn
Class BinaryOperatorExpn

java.lang.Object
  |
  +--java.util.Observable
        |
        +--rp.expn.Expn
              |
              +--rp.expn.OperatorExpn
                    |
                    +--rp.expn.BinaryOperatorExpn
All Implemented Interfaces:
java.util.Observer
Direct Known Subclasses:
AddExpn, DivideExpn, MultiplyExpn, SubtractExpn

public abstract class BinaryOperatorExpn
extends OperatorExpn

A generic node in an expression tree.

Version:
$Revision: 1.1 $, $Date: 2001/05/23 18:44:53 $

Field Summary
 
Fields inherited from class rp.expn.OperatorExpn
operands
 
Constructor Summary
BinaryOperatorExpn(Expn left, Expn right)
          Construct a new binary operator with the given operands.
 
Method Summary
 Expn getLeft()
          Gets the left operand.
 Expn getRight()
          Gets the right operand.
 void setLeft(Expn left)
          Sets the left operand.
 void setRight(Expn right)
          Sets the right operand.
 
Methods inherited from class rp.expn.OperatorExpn
getNumOperands, getOperand, getOperand, setNumOperands, setOperand, setOperand, update
 
Methods inherited from class rp.expn.Expn
getScalarMean
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryOperatorExpn

public BinaryOperatorExpn(Expn left,
                          Expn right)
Construct a new binary operator with the given operands.

Parameters:
left - the left operand
right - the right operand
Method Detail

setLeft

public void setLeft(Expn left)
Sets the left operand.

Parameters:
left - the new left operand

getLeft

public Expn getLeft()
Gets the left operand.

Returns:
the left operand

setRight

public void setRight(Expn right)
Sets the right operand.

Parameters:
right - the new right operand

getRight

public Expn getRight()
Gets the right operand.

Returns:
the right operand

Release Planner v1.0