hep.aida.ref.tuple
Class Evaluator

java.lang.Object
  extended by hep.aida.ref.tuple.Evaluator
All Implemented Interfaces:
IEvaluator

public class Evaluator
extends Object
implements IEvaluator


Constructor Summary
Evaluator(String expression)
          Default contructor.
 
Method Summary
 double evaluateDouble()
          Evaluate the IEvaluator from the data in the current row of the ITuple it is associated to.
 String expression()
          Get the expression that defined the IEvaluator.
 void initialize(ITuple tuple)
          Initialize the IEvaluator and associate it to an ITuple.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Evaluator

public Evaluator(String expression)
Default contructor.

Parameters:
expression - The expression to evaluate on the tuple.
Method Detail

expression

public String expression()
Description copied from interface: IEvaluator
Get the expression that defined the IEvaluator.

Specified by:
expression in interface IEvaluator
Returns:
The expression.

initialize

public void initialize(ITuple tuple)
Description copied from interface: IEvaluator
Initialize the IEvaluator and associate it to an ITuple.

Specified by:
initialize in interface IEvaluator
Parameters:
tuple - The ITuple to which the IEvaluator is associated.

evaluateDouble

public double evaluateDouble()
Description copied from interface: IEvaluator
Evaluate the IEvaluator from the data in the current row of the ITuple it is associated to.

Specified by:
evaluateDouble in interface IEvaluator
Returns:
The current value of the Evaluator.


jHepWork 3.2 © jWork.org