Class MarkovResultApproximation
java.lang.Object
org.palladiosimulator.reliability.solver.pcm2markov.MarkovResultApproximation
This class represents an approximated Markov transformation result value.
-
Constructor Summary
ConstructorDescriptionMarkovResultApproximation
(double lowerBound, double upperBound) Initializes a new Markov result value approximation. -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the accuracy (i.e., number of exact decimal values) of the approximation.double
Retrieves the lower approximation bound after adjustment.double
Retrieves the upper approximation bound after adjustment.double
Retrieves the lower approximation bound.double
Retrieves the upper approximation bound.boolean
hasRequiredAccuracy
(int requiredAccuracy) Checks if the approximation fulfills a required accuracy (i.e., number of exact decimal places).
-
Constructor Details
-
MarkovResultApproximation
public MarkovResultApproximation(double lowerBound, double upperBound) Initializes a new Markov result value approximation.- Parameters:
lowerBound
- the lower bound of the approximationupperBound
- the upper bound of the approximation
-
-
Method Details
-
getAccuracy
public int getAccuracy()Retrieves the accuracy (i.e., number of exact decimal values) of the approximation.- Returns:
- the accuracy of the approximation
-
getAdjustedLowerBound
public double getAdjustedLowerBound()Retrieves the lower approximation bound after adjustment.- Returns:
- the lower approximation bound
-
getAdjustedUpperBound
public double getAdjustedUpperBound()Retrieves the upper approximation bound after adjustment.- Returns:
- the upper approximation bound
-
getLowerBound
public double getLowerBound()Retrieves the lower approximation bound.- Returns:
- the lower approximation bound
-
getUpperBound
public double getUpperBound()Retrieves the upper approximation bound.- Returns:
- the upper approximation bound
-
hasRequiredAccuracy
public boolean hasRequiredAccuracy(int requiredAccuracy) Checks if the approximation fulfills a required accuracy (i.e., number of exact decimal places).- Parameters:
requiredAccuracy
- the required accuracy- Returns:
- true if the required accuracy is fulfilled
-