org.ujac.util.table
Interface FunctionExecutor

All Superinterfaces:
Serializable
All Known Implementing Classes:
CountFunctionExecutor, SumFunctionExecutor

public interface FunctionExecutor
extends Serializable

Name: FunctionExecutor
Description: A common interface for table function executors.

Author:
lauerc

Method Summary
 double execute(double currentValue, Object operand)
          Applies the function for the given operand on the given current value.
 boolean integersGuaranteed()
          Tells whether the function executor serves integers under guarantee (f.e.
 

Method Detail

execute

double execute(double currentValue,
               Object operand)
               throws TypeMismatchException
Applies the function for the given operand on the given current value.

Parameters:
currentValue - The current value to apply the operand to.
operand - The operand to apply.
Returns:
The calculated result.
Throws:
TypeMismatchException - In case the given operand type was invalid.

integersGuaranteed

boolean integersGuaranteed()
Tells whether the function executor serves integers under guarantee (f.e. count function).

Returns:
true if integers are served under guarantee, else false.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.