JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.formulae
Class Product

java.lang.Object
  |
  +--com.klg.jclass.util.formulae.Operation
        |
        +--com.klg.jclass.util.formulae.Product
All Implemented Interfaces:
Cloneable, Expression

public class Product
extends Operation

This is a concrete implementation for the product "*" operation. A product can be performed on a pair of elements or across a list.


Field Summary
 
Fields inherited from class com.klg.jclass.util.formulae.Operation
leftOperand, rightOperand
 
Constructor Summary
Product(com.klg.jclass.util.formulae.Expression operand)
          Product of the given operand (usually a list of expressions)
Product(com.klg.jclass.util.formulae.Expression left, com.klg.jclass.util.formulae.Expression right)
          Product of a pair of Expressions
Product(com.klg.jclass.util.formulae.Expression left, Number right)
          Product of an Expression and a Number
Product(Number left, com.klg.jclass.util.formulae.Expression right)
          Product of a Number and an Expression
Product(Number left, Number right)
          Product of two Numbers
 
Method Summary
 com.klg.jclass.util.formulae.Result evaluate()
          Return the result of multiplying the operands
 
Methods inherited from class com.klg.jclass.util.formulae.Operation
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Product

public Product(com.klg.jclass.util.formulae.Expression operand)
Product of the given operand (usually a list of expressions)


Product

public Product(com.klg.jclass.util.formulae.Expression left,
               com.klg.jclass.util.formulae.Expression right)
Product of a pair of Expressions


Product

public Product(com.klg.jclass.util.formulae.Expression left,
               Number right)
Product of an Expression and a Number


Product

public Product(Number left,
               com.klg.jclass.util.formulae.Expression right)
Product of a Number and an Expression


Product

public Product(Number left,
               Number right)
Product of two Numbers

Method Detail

evaluate

public com.klg.jclass.util.formulae.Result evaluate()
Return the result of multiplying the operands

Specified by:
evaluate in interface Expression
Specified by:
evaluate in class Operation
Returns:
The result of this product on the operands

Copyright © 2004 Quest Software Inc..
All rights reserved.