1 /* 2 // $Id: //open/mondrian/src/main/mondrian/calc/DoubleCalc.java#3 $ 3 // This software is subject to the terms of the Common Public License 4 // Agreement, available at the following URL: 5 // http://www.opensource.org/licenses/cpl.html. 6 // Copyright (C) 2006-2006 Julian Hyde 7 // All Rights Reserved. 8 // You must accept the terms of that agreement to use this software. 9 */ 10 package mondrian.calc; 11 12 import mondrian.olap.Evaluator; 13 14 /** 15 * Compiled expression whose result is a <code>double</code>. 16 * 17 * <p>When implementing this interface, it is convenient to extend 18 * {@link mondrian.calc.impl.AbstractDoubleCalc}, but it is not required. 19 * 20 * @author jhyde 21 * @version $Id: //open/mondrian/src/main/mondrian/calc/DoubleCalc.java#3 $ 22 * @since Sep 27, 2005 23 */ 24 public interface DoubleCalc extends Calc { 25 /** 26 * Evaluates this expression to yield a <code>double</code> value. 27 * If the result is null, returns the special 28 * {@link mondrian.olap.fun.FunUtil#DoubleNull} value. 29 * 30 * @param evaluator Evaluation context 31 * @return evaluation result 32 */ 33 double evaluateDouble(Evaluator evaluator); 34 } 35 36 // End DoubleCalc.java 37