public class TimeConstrainedEvaluator extends EvalUtilities implements java.lang.Runnable
String
in a time
limited threadModifier 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, toMathML
getEvalEngine, startRequest, stopRequest, toJava, toMathML
protected 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.Runnable
public IExpr constrainedEval(java.io.Writer writer, java.lang.String inputString, boolean traceEvaluation) throws java.lang.Exception
String
in a time
limited threadtraceEvaluation
- java.lang.Exception
public IExpr constrainedEval(java.io.Writer writer, IExpr inputExpression) throws java.lang.Exception
java.lang.Exception
public IExpr getParsedExpression()
constrainedEval()
method