Class StoExCacheEntry

java.lang.Object
de.uka.ipd.sdq.simucomframework.variables.cache.StoExCacheEntry

public class StoExCacheEntry extends Object
  • Constructor Details

    • StoExCacheEntry

      public StoExCacheEntry(String spec)
      Parse the expression and store its AST as well as its infered types
      Parameters:
      spec - The stoex to parse and store
  • Method Details

    • getParsedExpression

      public de.uka.ipd.sdq.stoex.Expression getParsedExpression()
      Returns:
      The AST of the cached stoex
    • getSpec

      public String getSpec()
      Returns:
      Original stoex as string
    • getTypeInferer

      public de.uka.ipd.sdq.stoex.analyser.visitors.ExpressionInferTypeVisitor getTypeInferer()
      Returns:
      Type inferer for this stoex
    • getInferedType

      public de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum getInferedType(de.uka.ipd.sdq.stoex.Expression e)
      Parameters:
      e - Return the infered type of the given subexpression of this stoex
      Returns:
      The type of the given subexpression or null if the subexpression is not part of this stoex
    • getProbFunctionCache

      public ProbFunctionCache getProbFunctionCache()
      Returns:
      Probfunction cache used to cache the probfunctions of this stoex
    • getProbFunction

      public de.uka.ipd.sdq.probfunction.math.IProbabilityFunction getProbFunction(EObject e)
      Get the probfunction from the probfunction cache
      Parameters:
      e - A subexpression which represents a probfunction literal
      Returns:
      The probfunction for the given subexpression