Ontimize 5.2072EN

com.ontimize.util.math
Class MespMathExpressionParser

java.lang.Object
  extended bycom.ontimize.util.math.MespMathExpressionParser
All Implemented Interfaces:
MathExpressionParser

public class MespMathExpressionParser
extends java.lang.Object
implements MathExpressionParser


Field Summary
protected  boolean error
           
protected  java.lang.String errorInfo
           
protected  com.graphbuilder.math.Expression expression
           
protected  com.graphbuilder.math.FuncMap funcMap
           
protected  com.graphbuilder.math.VarMap varMap
           
 
Fields inherited from interface com.ontimize.util.math.MathExpressionParser
JEP, JEP3x, MESP
 
Constructor Summary
MespMathExpressionParser()
           
 
Method Summary
 void addFunction(java.lang.String key, java.lang.Object function)
           
 void addStandardConstants()
           
 void addStandardFunctions()
           
 void addVariable(java.lang.String var, double value)
           
 void addVariableAsObject(java.lang.String var, java.lang.Object o)
           
 java.lang.String getErrorInfo()
           
 double getValue()
           
 java.lang.Object getValueAsObject()
           
 boolean hasError()
           
 void parseExpression(java.lang.String expression)
           
 void removeVariable(java.lang.String var)
           
 void setTraverse(boolean value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

funcMap

protected com.graphbuilder.math.FuncMap funcMap

varMap

protected com.graphbuilder.math.VarMap varMap

expression

protected com.graphbuilder.math.Expression expression

errorInfo

protected java.lang.String errorInfo

error

protected boolean error
Constructor Detail

MespMathExpressionParser

public MespMathExpressionParser()
Method Detail

addFunction

public void addFunction(java.lang.String key,
                        java.lang.Object function)
Specified by:
addFunction in interface MathExpressionParser

addStandardConstants

public void addStandardConstants()
Specified by:
addStandardConstants in interface MathExpressionParser

addStandardFunctions

public void addStandardFunctions()
Specified by:
addStandardFunctions in interface MathExpressionParser

addVariable

public void addVariable(java.lang.String var,
                        double value)
Specified by:
addVariable in interface MathExpressionParser

addVariableAsObject

public void addVariableAsObject(java.lang.String var,
                                java.lang.Object o)
Specified by:
addVariableAsObject in interface MathExpressionParser

getErrorInfo

public java.lang.String getErrorInfo()
Specified by:
getErrorInfo in interface MathExpressionParser

getValue

public double getValue()
Specified by:
getValue in interface MathExpressionParser

getValueAsObject

public java.lang.Object getValueAsObject()
Specified by:
getValueAsObject in interface MathExpressionParser

hasError

public boolean hasError()
Specified by:
hasError in interface MathExpressionParser

parseExpression

public void parseExpression(java.lang.String expression)
Specified by:
parseExpression in interface MathExpressionParser

removeVariable

public void removeVariable(java.lang.String var)
Specified by:
removeVariable in interface MathExpressionParser

setTraverse

public void setTraverse(boolean value)
Specified by:
setTraverse in interface MathExpressionParser

Ontimize