Class ExpressionHelper


  • public class ExpressionHelper
    extends Object
    • Constructor Detail

      • ExpressionHelper

        public ExpressionHelper()
    • 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 IllegalArgumentException
        calculated 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)