Release Planner v1.0

rp.expn
Class NaryOperatorExpn

java.lang.Object
  |
  +--java.util.Observable
        |
        +--rp.expn.Expn
              |
              +--rp.expn.OperatorExpn
                    |
                    +--rp.expn.NaryOperatorExpn
All Implemented Interfaces:
java.util.Observer
Direct Known Subclasses:
SumExpn

public abstract class NaryOperatorExpn
extends OperatorExpn

An N'ary operation node in an expression tree.

Version:
$Revision: 1.1 $, $Date: 2001/05/23 18:45:04 $

Field Summary
 
Fields inherited from class rp.expn.OperatorExpn
operands
 
Constructor Summary
NaryOperatorExpn(Expn[] operands)
          Construct a new n'ary operator with the given operands.
 
Method Summary
 void setOperand(Expn[] operands)
          Sets all the operands at once Either this method or setNumOperands must be called before any other
 void setOperand(int i, Expn operand)
          Sets the i'th operand (0-based) to the given expression.
 
Methods inherited from class rp.expn.OperatorExpn
getNumOperands, getOperand, getOperand, setNumOperands, 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

NaryOperatorExpn

public NaryOperatorExpn(Expn[] operands)
Construct a new n'ary operator with the given operands.

Parameters:
operands - an arrya of operands
Method Detail

setOperand

public void setOperand(int i,
                       Expn operand)
Description copied from class: OperatorExpn
Sets the i'th operand (0-based) to the given expression. If the expression is null, cleanly removes the previous i'th operand.

Overrides:
setOperand in class OperatorExpn
Parameters:
i - the index (0-based) of the operand to set

setOperand

public void setOperand(Expn[] operands)
Description copied from class: OperatorExpn
Sets all the operands at once Either this method or setNumOperands must be called before any other

Overrides:
setOperand in class OperatorExpn

Release Planner v1.0