org.matheclipse.core.eval
Class TimeConstrainedEvaluator
- java.lang.Object
-
- org.matheclipse.core.eval.MathMLUtilities
-
- org.matheclipse.core.eval.EvalUtilities
-
- org.matheclipse.core.eval.TimeConstrainedEvaluator
-
- All Implemented Interfaces:
- java.lang.Runnable
public class TimeConstrainedEvaluator extends EvalUtilities implements java.lang.Runnable
Run the evaluation of a given math formulaStringin a time limited thread
-
-
Constructor Summary
Constructors Constructor and Description TimeConstrainedEvaluator(EvalEngine evalEngine, boolean msie, long milliSeconds)TimeConstrainedEvaluator(EvalEngine evalEngine, boolean msie, long milliSeconds, boolean relaxedSyntax)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description IExprconstrainedEval(java.io.Writer writer, IExpr inputExpression)Runs the evaluation of the given math expression in a time limited threadIExprconstrainedEval(java.io.Writer writer, java.lang.String inputString, boolean traceEvaluation)Runs the evaluation of the given math formulaStringin a time limited threadIExprgetParsedExpression()Get the parsed expression after calling theconstrainedEval()methodvoidrun()-
Methods inherited from class org.matheclipse.core.eval.EvalUtilities
eval, evalTrace, evalTrace, evaluate, evaluate, toJavaForm, toMathML
-
Methods inherited from class org.matheclipse.core.eval.MathMLUtilities
startRequest, stopRequest, toJava, toMathML
-
-
-
-
Constructor Detail
-
TimeConstrainedEvaluator
public TimeConstrainedEvaluator(EvalEngine evalEngine, boolean msie, long milliSeconds)
-
TimeConstrainedEvaluator
public TimeConstrainedEvaluator(EvalEngine evalEngine, boolean msie, long milliSeconds, boolean relaxedSyntax)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
constrainedEval
public IExpr constrainedEval(java.io.Writer writer, java.lang.String inputString, boolean traceEvaluation) throws java.lang.Exception
Runs the evaluation of the given math formulaStringin a time limited thread- Parameters:
traceEvaluation-- Throws:
java.lang.Exception
-
constrainedEval
public IExpr constrainedEval(java.io.Writer writer, IExpr inputExpression) throws java.lang.Exception
Runs the evaluation of the given math expression in a time limited thread- Throws:
java.lang.Exception
-
getParsedExpression
public IExpr getParsedExpression()
Get the parsed expression after calling theconstrainedEval()method- Returns:
- the parsed expression; may return
null
-
-
DMelt 3.0 © DataMelt by jWork.ORG