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 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

      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