Class ClassesFailureProbabilityAggregation
- java.lang.Object
-
- org.palladiosimulator.solver.reliability.reporting.ClassesFailureProbabilityAggregation
-
public class ClassesFailureProbabilityAggregation extends Object
Class used for aggregation of failure probabilities according to a FailureAnalysisFailureType when considering failure categories (classes).
-
-
Constructor Summary
Constructors Constructor Description ClassesFailureProbabilityAggregation(FailureAnalysisFailureType failureType)
Creates a new instance of this class, given the failure analysis failure type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToFailureProbabilityBy(double failureProbability)
Adds to the current aggregated failure probability additional failure probability.double
getFailureProbability()
Retrieves the aggregated failure probability.FailureAnalysisFailureType
getType()
Returns the failure type.void
setType(FailureAnalysisFailureType failureType)
Sets the failure type.
-
-
-
Constructor Detail
-
ClassesFailureProbabilityAggregation
public ClassesFailureProbabilityAggregation(FailureAnalysisFailureType failureType)
Creates a new instance of this class, given the failure analysis failure type.- Parameters:
failureAggregationType
-
-
-
Method Detail
-
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
public FailureAnalysisFailureType getType()
Returns the failure type.- Returns:
- the failure type
-
setType
public void setType(FailureAnalysisFailureType failureType)
Sets the failure type.- Parameters:
failureAggregationType
- the failure type
-
-