hep.aida.ref.tuple
Class Evaluator
- java.lang.Object
-
- hep.aida.ref.tuple.Evaluator
-
- All Implemented Interfaces:
- IEvaluator
public class Evaluator extends java.lang.Object implements IEvaluator
-
-
Constructor Summary
Constructors Constructor and Description Evaluator(java.lang.String expression)Default contructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleevaluateDouble()Evaluate the IEvaluator from the data in the current row of the ITuple it is associated to.java.lang.Stringexpression()Get the expression that defined the IEvaluator.voidinitialize(ITuple tuple)Initialize the IEvaluator and associate it to an ITuple.
-
-
-
Constructor Detail
-
Evaluator
public Evaluator(java.lang.String expression)
Default contructor.- Parameters:
expression- The expression to evaluate on the tuple.
-
-
Method Detail
-
expression
public java.lang.String expression()
Description copied from interface:IEvaluatorGet the expression that defined the IEvaluator.- Specified by:
expressionin interfaceIEvaluator- Returns:
- The expression.
-
initialize
public void initialize(ITuple tuple)
Description copied from interface:IEvaluatorInitialize the IEvaluator and associate it to an ITuple.- Specified by:
initializein interfaceIEvaluator- Parameters:
tuple- The ITuple to which the IEvaluator is associated.
-
evaluateDouble
public double evaluateDouble()
Description copied from interface:IEvaluatorEvaluate the IEvaluator from the data in the current row of the ITuple it is associated to.- Specified by:
evaluateDoublein interfaceIEvaluator- Returns:
- The current value of the Evaluator.
-
-
DMelt 3.0 © DataMelt by jWork.ORG