Class ClassesFailureProbabilityAggregation
java.lang.Object
org.palladiosimulator.reliability.solver.reporting.ClassesFailureProbabilityAggregation
Class used for aggregation of failure probabilities according to a FailureAnalysisFailureType
when considering failure categories (classes).
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of this class, given the failure analysis failure type. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToFailureProbabilityBy(double failureProbability) Adds to the current aggregated failure probability additional failure probability.doubleRetrieves the aggregated failure probability.getType()Returns the failure type.voidsetType(FailureAnalysisFailureType failureType) Sets the failure type.
-
Constructor Details
-
ClassesFailureProbabilityAggregation
Creates a new instance of this class, given the failure analysis failure type.- Parameters:
failureAggregationType-
-
-
Method Details
-
addToFailureProbabilityBy
public void addToFailureProbabilityBy(double failureProbability) Adds to the current aggregated failure probability additional failure probability.- Parameters:
failureProbability- the failure probability to be added to the existing one
-
getFailureProbability
public double getFailureProbability()Retrieves the aggregated failure probability.- Returns:
- the aggregated failure probability
-
getType
Returns the failure type.- Returns:
- the failure type
-
setType
Sets the failure type.- Parameters:
failureAggregationType- the failure type
-