public class TimeConstrainedEvaluator extends EvalUtilities implements java.lang.Runnable
String in a time
limited thread| Modifier and Type | Field and Description |
|---|---|
protected IExpr |
fEvaluationResult |
protected java.lang.Throwable |
fException |
protected IExpr |
fParsedExpression |
fEvalEngine, fMathMLFactory| Constructor and Description |
|---|
TimeConstrainedEvaluator(EvalEngine evalEngine,
boolean msie,
long milliSeconds) |
TimeConstrainedEvaluator(EvalEngine evalEngine,
boolean msie,
long milliSeconds,
boolean relaxedSyntax) |
| Modifier and Type | Method and Description |
|---|---|
IExpr |
constrainedEval(java.io.Writer writer,
IExpr inputExpression)
Runs the evaluation of the given math expression in a time limited thread
|
IExpr |
constrainedEval(java.io.Writer writer,
java.lang.String inputString,
boolean traceEvaluation)
Runs the evaluation of the given math formula
String in a time
limited thread |
IExpr |
getParsedExpression()
Get the parsed expression after calling the
constrainedEval()
method |
void |
run() |
eval, evalTrace, evalTrace, evaluate, evaluate, toJavaForm, toMathMLgetEvalEngine, startRequest, stopRequest, toJava, toMathMLprotected IExpr fEvaluationResult
protected java.lang.Throwable fException
protected IExpr fParsedExpression
public TimeConstrainedEvaluator(EvalEngine evalEngine, boolean msie, long milliSeconds)
public TimeConstrainedEvaluator(EvalEngine evalEngine, boolean msie, long milliSeconds, boolean relaxedSyntax)
public void run()
run in interface java.lang.Runnablepublic IExpr constrainedEval(java.io.Writer writer, java.lang.String inputString, boolean traceEvaluation) throws java.lang.Exception
String in a time
limited threadtraceEvaluation - java.lang.Exceptionpublic IExpr constrainedEval(java.io.Writer writer, IExpr inputExpression) throws java.lang.Exception
java.lang.Exceptionpublic IExpr getParsedExpression()
constrainedEval()
method