Class ProbFunctionCache
java.lang.Object
de.uka.ipd.sdq.simucomframework.variables.cache.ProbFunctionCache
A cache for Probability Functions. This saves the time to calculate the inverse commulative
distribution function every time again
-
Constructor Summary
ConstructorDescriptionProbFunctionCache
(de.uka.ipd.sdq.stoex.Expression ex) Initialise the probfunctition cache for all probfunctions in the given expression. -
Method Summary
Modifier and TypeMethodDescriptionde.uka.ipd.sdq.probfunction.math.IProbabilityFunction
Return the cached probfuntion for partial expression e
-
Constructor Details
-
ProbFunctionCache
public ProbFunctionCache(de.uka.ipd.sdq.stoex.Expression ex) Initialise the probfunctition cache for all probfunctions in the given expression. A visitor is used to search for and cache all probfuntions- Parameters:
ex
- The stoex to analyse
-
-
Method Details
-
getProbFunction
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
-