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
ConstructorDescriptionCreates a new instance of this class, given the failure analysis failure type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToFailureProbabilityBy
(double failureProbability) Adds to the current aggregated failure probability additional failure probability.double
Retrieves the aggregated failure probability.getType()
Returns the failure type.void
setType
(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
-