Package jasima.core.random
Class RandomFactoryOld
- java.lang.Object
-
- jasima.core.random.RandomFactory
-
- jasima.core.random.RandomFactoryOld
-
- All Implemented Interfaces:
Serializable
@Deprecated public class RandomFactoryOld extends RandomFactory
Deprecated.UseRandomFactoryinstead.UseRandomFactoryinstead.- Author:
- Torsten Hildebrandt
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jasima.core.random.RandomFactory
RANDOM_CLASS_PROP_KEY, RANDOM_FACTORY_PROP_KEY, randomClass, randomFactoryClass
-
-
Constructor Summary
Constructors Constructor Description RandomFactoryOld()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected longgetSeed(String name, Consumer<String> warningReceiver)Deprecated.Compute a (hopefully unique) seed which only depends on 'name' and this RandomFactory's seed.voidsetSeed(long seed)Deprecated.Sets the seed that is used to initialize all random number streams.-
Methods inherited from class jasima.core.random.RandomFactory
createInstance, createInstance, createRandom, getSim, initRndGen, initRndGen, newInstance, reloadSysProps, setSim
-
-
-
-
Method Detail
-
getSeed
protected long getSeed(String name, @Nullable Consumer<String> warningReceiver)
Deprecated.Description copied from class:RandomFactoryCompute a (hopefully unique) seed which only depends on 'name' and this RandomFactory's seed.- Overrides:
getSeedin classRandomFactorywarningReceiver- used to issue a warning message in case of a hash collision
-
setSeed
public void setSeed(long seed)
Deprecated.Description copied from class:RandomFactorySets the seed that is used to initialize all random number streams.- Overrides:
setSeedin classRandomFactory- Parameters:
seed- The seed to use.
-
-