Class ProbFunctionCache
- java.lang.Object
-
- de.uka.ipd.sdq.simucomframework.variables.cache.ProbFunctionCache
-
public class ProbFunctionCache extends Object
A cache for Probability Functions. This saves the time to calculate the inverse commulative distribution function every time again
-
-
Constructor Summary
Constructors Constructor Description ProbFunctionCache(de.uka.ipd.sdq.stoex.Expression ex)
Initialise the probfunctition cache for all probfunctions in the given expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.uka.ipd.sdq.probfunction.math.IProbabilityFunction
getProbFunction(EObject e)
Return the cached probfuntion for partial expression e
-
-
-
Method Detail
-
getProbFunction
public de.uka.ipd.sdq.probfunction.math.IProbabilityFunction getProbFunction(EObject e)
Return the cached probfuntion for partial expression e- Parameters:
e
- SubExpession which has to be a probfunction literal for which to query the cache- Returns:
- Cached probfunction
-
-