Class MarkovResultApproximation
- java.lang.Object
-
- org.palladiosimulator.reliability.solver.pcm2markov.MarkovResultApproximation
-
public class MarkovResultApproximation extends Object
This class represents an approximated Markov transformation result value.
-
-
Constructor Summary
Constructors Constructor Description MarkovResultApproximation(double lowerBound, double upperBound)Initializes a new Markov result value approximation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAccuracy()Retrieves the accuracy (i.e., number of exact decimal values) of the approximation.doublegetAdjustedLowerBound()Retrieves the lower approximation bound after adjustment.doublegetAdjustedUpperBound()Retrieves the upper approximation bound after adjustment.doublegetLowerBound()Retrieves the lower approximation bound.doublegetUpperBound()Retrieves the upper approximation bound.booleanhasRequiredAccuracy(int requiredAccuracy)Checks if the approximation fulfills a required accuracy (i.e., number of exact decimal places).
-
-
-
Method Detail
-
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
-
-