FreeHEP API
Version 3.0

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

Method Detail

initialize

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

Parameters:
tuple - The ITuple to which the IEvaluator is sssociated.
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.

FreeHEP API
Version 3.0

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