com.japisoft.formula
Class FormulaFactory

java.lang.Object
  |
  +--com.japisoft.formula.FormulaFactory

public class FormulaFactory
extends java.lang.Object

Factory for retreiving a formula

More information at : http://www.japisoft.com

Version:
1.0
Author:
(c) 2002 JAPISoft

Field Summary
static boolean HIGH_PRECISION_MODE
           
 
Method Summary
 Formula getFormula()
          Deprecated. Use getNewFormula
 Formula getFormula(java.lang.String expression)
          Deprecated. Use getNewFormula
static FormulaFactory getInstance()
           
static FormulaFactory getInstance(boolean hightPrecisionMode)
           
 Formula getNewFormula()
           
 Formula getNewFormula(java.lang.String expression)
           
 OperatorFactory getSharedOperatorFactory()
           
 void setSharedOperatorFactory(OperatorFactory factory)
          Reset the default operator factory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIGH_PRECISION_MODE

public static final boolean HIGH_PRECISION_MODE
See Also:
Constant Field Values
Method Detail

getInstance

public static FormulaFactory getInstance()

getInstance

public static FormulaFactory getInstance(boolean hightPrecisionMode)

getFormula

public Formula getFormula(java.lang.String expression)
Deprecated. Use getNewFormula

Returns:
a new formula for this expression

getNewFormula

public Formula getNewFormula(java.lang.String expression)
Returns:
a new formula for an expression

getFormula

public Formula getFormula()
Deprecated. Use getNewFormula

Returns:
a new formula evaluator. You will have to call the setExpression method before evaluating

getNewFormula

public Formula getNewFormula()
Returns:
a new formula evaluator. You will have to call the setExpression method before evaluating

setSharedOperatorFactory

public void setSharedOperatorFactory(OperatorFactory factory)
Reset the default operator factory


getSharedOperatorFactory

public OperatorFactory getSharedOperatorFactory()
Returns:
the default operator factory