Class ThreadSafeSpeedTest.EvaluationThread

java.lang.Object
java.lang.Thread
com.singularsys.jepexamples.diagnostics.ThreadSafeSpeedTest.EvaluationThread
All Implemented Interfaces:
Runnable
Enclosing class:
ThreadSafeSpeedTest

public static class ThreadSafeSpeedTest.EvaluationThread extends Thread
A thread which evaluates an expression multiple times.
See Also:
  • Constructor Details

    • EvaluationThread

      public EvaluationThread(int index, Jep baseJep, Node baseExpression, String varName, double minValue, double maxValue, int numItts)
      Construct a thread. Uses new Jep(new LightWeightComponentSet(baseJep)) to create a local Jep instance.
      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
  • Method Details

    • run

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