Class RpThreadSpeed.RpeEvaluationThread

java.lang.Object
java.lang.Thread
com.singularsys.extexamples.diagnostics.RpThreadSpeed.RpeEvaluationThread
All Implemented Interfaces:
Runnable
Enclosing class:
RpThreadSpeed

public static class RpThreadSpeed.RpeEvaluationThread extends Thread
A thread which evaluates an expression multiple times using RpEval. This version uses LightWeightComponentSet and SerializableExpression
See Also:
  • Constructor Details

    • RpeEvaluationThread

      public RpeEvaluationThread(int index, Jep baseJep, Node baseExpression, String varName, double minValue, double maxValue, int numItts) throws JepException
      Construct a thread. Uses new RpEval(baseJep) to create a local RpeEval instance and rpe.compile(baseExpression) to create a compiled rpe command sequence.
      Parameters:
      index - the number of this thread
      baseJep - the base Jep instance
      baseExpression - the expression
      varName - name of the variable
      minValue - minimum value for variable
      maxValue - maximum value for variable
      numItts - number of iterations
      Throws:
      JepException
  • Method Details

    • run

      public void run()
      Evaluates the expression numItts times.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread