|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.util.Randomizer
Singleton holder of Random
object to ensure all of system is using same random
sequence. This is important for testing and diagnostics since it can guarantee
reproducability.
Constructor Summary | |
Randomizer()
should call init() after ctor |
Method Summary | |
java.util.Random |
getRand()
|
long |
getSeed()
|
void |
init(Properties props)
See Parameter Details for specific property settings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Randomizer()
init()
after ctor
Method Detail |
public void init(Properties props)
init
in interface Configurable
props
- configuration parameterspublic java.util.Random getRand()
public long getSeed()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |