public class StoExCache
extends java.lang.Object
IRandomGenerator
which may contain a fixed seed.Modifier | Constructor and Description |
---|---|
protected |
StoExCache(de.uka.ipd.sdq.probfunction.math.IProbabilityFunctionFactory probFunctionFactory)
Only protected because the cost model should have its own instance of the StoExCache so that
it can be resetted independently of the main singleton instance.
|
Modifier and Type | Method and Description |
---|---|
StoExCacheEntry |
getEntry(java.lang.String spec)
Get a cached stoex parse tree and visitors.
|
de.uka.ipd.sdq.probfunction.math.IProbabilityFunctionFactory |
getProbabilityFunctionFactory() |
de.uka.ipd.sdq.probfunction.math.IRandomGenerator |
getRandomGenerator() |
static void |
initialiseStoExCache(de.uka.ipd.sdq.probfunction.math.IProbabilityFunctionFactory probFunctionFactory) |
static StoExCache |
singleton() |
protected StoExCache(de.uka.ipd.sdq.probfunction.math.IProbabilityFunctionFactory probFunctionFactory)
randomGenerator
- public static void initialiseStoExCache(de.uka.ipd.sdq.probfunction.math.IProbabilityFunctionFactory probFunctionFactory)
public static StoExCache singleton()
public StoExCacheEntry getEntry(java.lang.String spec)
spec
- The stoex to search for in the cachepublic de.uka.ipd.sdq.probfunction.math.IRandomGenerator getRandomGenerator()
public de.uka.ipd.sdq.probfunction.math.IProbabilityFunctionFactory getProbabilityFunctionFactory()