Class ExpressionToPDFWrapper


  • public class ExpressionToPDFWrapper
    extends Object
    Wraps the actual content of an expression to allow computation with it. Only supports probability density function or double so far. Allows to access the expression as a PDF or to get the mean value.
    • Field Detail

      • logger

        protected static org.apache.log4j.Logger logger
    • Constructor Detail

      • ExpressionToPDFWrapper

        public ExpressionToPDFWrapper​(de.uka.ipd.sdq.probfunction.ProbabilityDensityFunction pdf)
      • ExpressionToPDFWrapper

        public ExpressionToPDFWrapper​(Double meanValue)
    • Method Detail

      • createExpressionToPDFWrapper

        public static ExpressionToPDFWrapper createExpressionToPDFWrapper​(de.uka.ipd.sdq.stoex.Expression rdExpression)
        Can create a wrapper for ProbabilityFunctionLiterals and NumericLiterals.
        Parameters:
        rdExpression -
        Returns:
      • getPDF

        public de.uka.ipd.sdq.probfunction.ProbabilityDensityFunction getPDF()
      • getMeanValue

        public Double getMeanValue()
      • getStandardDeviation

        public Double getStandardDeviation()
      • isOriginalPDF

        public boolean isOriginalPDF()
        Returns whether this resource demand is a derived pdf (i.e. it has been created using a mean value) or whether it is an original pdf (i.e. the mean value is derived).
        Returns:
        true if it has been created using #ResourceDemandWrapper(ParametricResourceDemand, ProbabilityDensityFunction), false if this has been created using #ResourceDemandWrapper(ParametricResourceDemand, Double).