hu.mta.sztaki.lpds.cloud.simulator.util
Class SeedSyncer
java.lang.Object
hu.mta.sztaki.lpds.cloud.simulator.util.SeedSyncer
public class SeedSyncer
- extends Object
A class to manage the random generator to be used if reproducible but random
results are expected from the simulator
- Author:
- "Gabor Kecskemeti, Distributed and Parallel Systems Group, University of Innsbruck (c) 2013"
Field Summary |
static Random |
centralRnd
The random generator that will be used by the system components and that
is recommended to be used by simulations built on top of DISSECT-CF |
static int |
seed
The random seed for the central random generator. |
Method Summary |
static void |
resetCentral()
To restart the simulator's random generator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
centralRnd
public static final Random centralRnd
- The random generator that will be used by the system components and that
is recommended to be used by simulations built on top of DISSECT-CF
seed
public static final int seed
- The random seed for the central random generator.
To set this seed, you must define the system property of
"hu.mta.sztaki.lpds.cloud.simulator.util.SeedSyncer.seed" before running
any simulations.
SeedSyncer
public SeedSyncer()
resetCentral
public static void resetCentral()
- To restart the simulator's random generator
Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.