Class StoExCacheEntry
- java.lang.Object
-
- de.uka.ipd.sdq.simucomframework.variables.cache.StoExCacheEntry
-
public class StoExCacheEntry extends Object
-
-
Constructor Summary
Constructors Constructor Description StoExCacheEntry(String spec)Parse the expression and store its AST as well as its infered types
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnumgetInferedType(de.uka.ipd.sdq.stoex.Expression e)de.uka.ipd.sdq.stoex.ExpressiongetParsedExpression()de.uka.ipd.sdq.probfunction.math.IProbabilityFunctiongetProbFunction(EObject e)Get the probfunction from the probfunction cacheProbFunctionCachegetProbFunctionCache()StringgetSpec()de.uka.ipd.sdq.stoex.analyser.visitors.ExpressionInferTypeVisitorgetTypeInferer()
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-