|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.japisoft.formula.FormulaContext
This context is for formula evaluation with access to the symbol table or to the function definition deleguate. User can uses it for maintaining state about previous variable evaluation result and reintroduces it in the next formula evaluation.
More information at : http://www.japisoft.com
Constructor Summary | |
FormulaContext(Formula f)
|
Method Summary | |
FunctionResolver |
getFunctionResolver()
|
OperatorFactory |
getOperatorFactory()
|
SymbolResolver |
getSymbolResolver()
|
Variant |
getValue(java.lang.String symbol)
throw a SymbolResolverException if the symbol is unknown. |
Variant |
getValue(java.lang.String function,
ListOfArgument args)
throw a FunctionResolverException is the function is unknown or something is wrong with arguments |
boolean |
isHighPrecisionMode()
|
void |
setValue(java.lang.String symbol,
Variant v)
Reset a new value . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FormulaContext(Formula f)
Method Detail |
public SymbolResolver getSymbolResolver()
getSymbolResolver
in interface NodeContext
public FunctionResolver getFunctionResolver()
getFunctionResolver
in interface NodeContext
public Variant getValue(java.lang.String symbol)
SymbolResolver
getValue
in interface SymbolResolver
public void setValue(java.lang.String symbol, Variant v)
public Variant getValue(java.lang.String function, ListOfArgument args)
FunctionResolver
getValue
in interface FunctionResolver
args
- List of arguments String or doublepublic OperatorFactory getOperatorFactory()
getOperatorFactory
in interface NodeContext
public boolean isHighPrecisionMode()
isHighPrecisionMode
in interface NodeContext
true
for high precision mode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |