Class ExpressionHelper
- java.lang.Object
-
- org.palladiosimulator.solver.visitors.ExpressionHelper
-
public class ExpressionHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ExpressionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublegetMeanValue(org.palladiosimulator.pcm.core.PCMRandomVariable variable)static de.uka.ipd.sdq.stoex.ExpressiongetSolvedExpression(de.uka.ipd.sdq.stoex.Expression expr, ContextWrapper ctxWrp)static de.uka.ipd.sdq.stoex.ExpressiongetSolvedExpression(String specification, ContextWrapper ctxWrp)static StringgetSolvedExpressionAsString(String specification, ContextWrapper ctxWrp)static HashMap<de.uka.ipd.sdq.stoex.Expression,de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum>getTypeAnnotation(de.uka.ipd.sdq.stoex.Expression expr)static doublemeanValue(de.uka.ipd.sdq.stoex.Expression expression)calculated the mean value for a solved expressionstatic de.uka.ipd.sdq.stoex.ExpressionparseToExpression(String specification)
-
-
-
Method Detail
-
parseToExpression
public static de.uka.ipd.sdq.stoex.Expression parseToExpression(String specification)
- Parameters:
specification-
-
getSolvedExpressionAsString
public static String getSolvedExpressionAsString(String specification, ContextWrapper ctxWrp)
-
getSolvedExpression
public static de.uka.ipd.sdq.stoex.Expression getSolvedExpression(String specification, ContextWrapper ctxWrp)
-
getSolvedExpression
public static de.uka.ipd.sdq.stoex.Expression getSolvedExpression(de.uka.ipd.sdq.stoex.Expression expr, ContextWrapper ctxWrp)
-
getTypeAnnotation
public static HashMap<de.uka.ipd.sdq.stoex.Expression,de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum> getTypeAnnotation(de.uka.ipd.sdq.stoex.Expression expr)
-
meanValue
public static double meanValue(de.uka.ipd.sdq.stoex.Expression expression) throws IllegalArgumentExceptioncalculated the mean value for a solved expression- Parameters:
expression-- Returns:
- Throws:
IllegalArgumentException- if the passed expression has not been solved before.
-
getMeanValue
public static double getMeanValue(org.palladiosimulator.pcm.core.PCMRandomVariable variable)
-
-