Class ExpressionToPDFWrapper

java.lang.Object
org.palladiosimulator.solver.transformations.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 Details

    • STOEX_SERIALISER

      protected static final org.palladiosimulator.pcm.stoex.api.StoExSerialiser STOEX_SERIALISER
    • LOGGER

      protected static final org.apache.log4j.Logger LOGGER
  • Constructor Details

    • ExpressionToPDFWrapper

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

      public ExpressionToPDFWrapper(Double meanValue)
  • Method Details

    • 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).