Class StoExCacheEntry
java.lang.Object
de.uka.ipd.sdq.simucomframework.variables.cache.StoExCacheEntry
-
Constructor Summary
ConstructorDescriptionStoExCacheEntry
(String spec) Parse the expression and store its AST as well as its infered types -
Method Summary
Modifier and TypeMethodDescriptionde.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum
getInferedType
(de.uka.ipd.sdq.stoex.Expression e) de.uka.ipd.sdq.stoex.Expression
de.uka.ipd.sdq.probfunction.math.IProbabilityFunction
Get the probfunction from the probfunction cachegetSpec()
de.uka.ipd.sdq.stoex.analyser.visitors.ExpressionInferTypeVisitor
-
Constructor Details
-
StoExCacheEntry
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
- 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
- Returns:
- Probfunction cache used to cache the probfunctions of this stoex
-
getProbFunction
Get the probfunction from the probfunction cache- Parameters:
e
- A subexpression which represents a probfunction literal- Returns:
- The probfunction for the given subexpression
-