Class RandomFactorGenerator

java.lang.Object
java.lang.Thread
de.das.encrypter.tools.BaseThread
de.das.encrypter.processors.RandomFactorGenerator
All Implemented Interfaces:
Runnable

public class RandomFactorGenerator extends BaseThread
The random factor generator is a tool that can run independently and concurrently with an application. It permanently generates random floating point numbers between 0.0 and 1.0 in intervals of 100ms and passes them to the instance registered as RandomFactorReceiver.
  • Constructor Details

    • RandomFactorGenerator

      public RandomFactorGenerator(RandomFactorReceiver rfr)
      Creates an instance of the class RandomFactorGenerator.
      Parameters:
      rfr - instance of a class which implements the interface RandomFactorReceiver.
  • Method Details

    • createInstance

      public static void createInstance(RandomFactorReceiver rfr)
      Creates an instance of the class RandomFactorGenerator and starts the underlying thread.
      Parameters:
      rfr - instance of a class which implements the interface RandomFactorReceiver.
    • doTask

      public void doTask()
      Specified by:
      doTask in class BaseThread