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 Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description ExpressionToPDFWrapper(de.uka.ipd.sdq.probfunction.ProbabilityDensityFunction pdf)
ExpressionToPDFWrapper(Double meanValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExpressionToPDFWrapper
createExpressionToPDFWrapper(de.uka.ipd.sdq.stoex.Expression rdExpression)
Can create a wrapper forProbabilityFunctionLiteral
s andNumericLiteral
s.Double
getMeanValue()
de.uka.ipd.sdq.probfunction.ProbabilityDensityFunction
getPDF()
Double
getStandardDeviation()
boolean
isOriginalPDF()
Returns whether this resource demand is a derived pdf (i.e.
-
-
-
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 forProbabilityFunctionLiteral
s andNumericLiteral
s.- 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)
.
-
-