Package de.das.encrypter.processors
Class RandomFactorGenerator
java.lang.Object
java.lang.Thread
de.das.encrypter.tools.BaseThread
de.das.encrypter.processors.RandomFactorGenerator
- All Implemented Interfaces:
Runnable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class de.das.encrypter.tools.BaseThread
threadIDFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of the class RandomFactorGenerator. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCreates an instance of the class RandomFactorGenerator and starts the underlying thread.voiddoTask()Methods inherited from class de.das.encrypter.tools.BaseThread
finish, getSleepTime, getThreadID, isKilled, isTerminated, kill, prolog, run, setSleepTime, setSleepTimeMax, setSleepTimeMinMethods 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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
RandomFactorGenerator
Creates an instance of the class RandomFactorGenerator.- Parameters:
rfr- instance of a class which implements the interface RandomFactorReceiver.
-
-
Method Details
-
createInstance
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:
doTaskin classBaseThread
-