Class ExpressionToPDFWrapper
java.lang.Object
org.palladiosimulator.solver.transformations.ExpressionToPDFWrapper
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
Modifier and TypeFieldDescriptionprotected static final org.apache.log4j.Logger
protected static final org.palladiosimulator.pcm.stoex.api.StoExSerialiser
-
Constructor Summary
ConstructorDescriptionExpressionToPDFWrapper
(de.uka.ipd.sdq.probfunction.ProbabilityDensityFunction pdf) ExpressionToPDFWrapper
(Double meanValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionToPDFWrapper
createExpressionToPDFWrapper
(de.uka.ipd.sdq.stoex.Expression rdExpression) Can create a wrapper forProbabilityFunctionLiteral
s andNumericLiteral
s.de.uka.ipd.sdq.probfunction.ProbabilityDensityFunction
getPDF()
boolean
Returns whether this resource demand is a derived pdf (i.e.
-
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
-
-
Method Details
-
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
-
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)
.
-