|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FormulaParser
Interface for classes that implement formula parsing and evaluation.
Method Summary | |
---|---|
FormulaArray |
evaluate()
Evaluates the formula and returns the result as a FormulaArray. |
java.lang.String |
getFormulaAsString()
Gets the String representation of the formula. |
ASTTreeInfo |
parse()
Parses the formula and returns information about the parse tree. |
void |
setCoodinateIndices(int timeStep,
int layer,
int x,
int y)
Sets the coordinate indices under which the next evaluation will take place. |
void |
setVariable(java.lang.String name,
DataFrame value)
Sets the value of the variable to the specified array. |
Method Detail |
---|
ASTTreeInfo parse() throws IllegalFormulaException
IllegalFormulaException
- if there is an error during parsing.java.lang.String getFormulaAsString()
void setCoodinateIndices(int timeStep, int layer, int x, int y)
timeStep
- the time step indexlayer
- the layer indexx
- the x indexy
- the y indexvoid setVariable(java.lang.String name, DataFrame value)
name
- the name of the variablevalue
- the array valueFormulaArray evaluate() throws IllegalFormulaException
IllegalFormulaException
- if the formula is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |