Class RpThreadSpeed.RpeEvaluationThread
java.lang.Object
java.lang.Thread
com.singularsys.extexamples.diagnostics.RpThreadSpeed.RpeEvaluationThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
RpThreadSpeed
A thread which evaluates an expression multiple times using RpEval.
This version uses LightWeightComponentSet and SerializableExpression
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionRpeEvaluationThread(int index, Jep baseJep, Node baseExpression, String varName, double minValue, double maxValue, int numItts) Construct a thread. -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Constructor Details
-
RpeEvaluationThread
public RpeEvaluationThread(int index, Jep baseJep, Node baseExpression, String varName, double minValue, double maxValue, int numItts) throws JepException Construct a thread. Usesnew RpEval(baseJep)to create a local RpeEval instance andrpe.compile(baseExpression)to create a compiled rpe command sequence.- Parameters:
index- the number of this threadbaseJep- the base Jep instancebaseExpression- the expressionvarName- name of the variableminValue- minimum value for variablemaxValue- maximum value for variablenumItts- number of iterations- Throws:
JepException
-
-
Method Details