public class ScenarioRandomUtil extends Object
Constructor and Description |
---|
ScenarioRandomUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
oneInFreq(int freq) |
static int |
randomChildrenCount(String name)
Returns 3 for root, 3 for children of root, 9 for offspring of generation 2
and 3, and for generations 4 and later, return 0 with probability 0.5 and a
gaussian (average=AVERAGE_CHILDREN_COUNT) with probability 0.5.
|
static String |
randomId() |
static Level |
randomLevel() |
static String |
randomLoggerName(int average,
int stdDeviation) |
public ScenarioRandomUtil()
public static boolean oneInFreq(int freq)
public static Level randomLevel()
public static String randomLoggerName(int average, int stdDeviation)
public static int randomChildrenCount(String name)
name
- Copyright © 2005–2018 QOS.ch. All rights reserved.