AIDA API
Version 3.3

hep.aida
Interface IEvaluator


public interface IEvaluator

User's level interface of an IEvaluator.

Author:
The AIDA team (http://aida.freehep.org/)

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 ituple)
          Initialize the IEvaluator and associate it to an ITuple.
 

Method Detail

initialize

public void initialize(ITuple ituple)
                throws IllegalArgumentException
Initialize the IEvaluator and associate it to an ITuple.

Parameters:
ituple - The ITuple to which the IEvaluator is associated.
Throws:
IllegalArgumentException - If the IEvaluator and the ITuple are not compatible.

evaluateDouble

public double evaluateDouble()
                      throws RuntimeException
Evaluate the IEvaluator from the data in the current row of the ITuple it is associated to.

Returns:
The current value of the Evaluator.
Throws:
RuntimeException - if the IEvaluator has not been initialized.

expression

public String expression()
Get the expression that defined the IEvaluator.

Returns:
The expression.

AIDA API
Version 3.3

Copyright © 2000-2004 AIDA Team, All Rights Reserved.