Class TypesFailureProbabilityAggregation
java.lang.Object
org.palladiosimulator.reliability.solver.reporting.TypesFailureProbabilityAggregation
Class used for aggregation of failure probabilities according to a FailureAnalysisFailureType
when considering failure types.
-
Constructor Summary
ConstructorsConstructorDescriptionTypesFailureProbabilityAggregation
(FailureAnalysisFailureType failureType, String typeIdentifier, double failureProbability) Creates a new instance of this class, given the failure analysis failure type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToFailureProbability
(double failureProbability) Adds to the current aggregated failure probability additional failure probability.boolean
compareTo
(FailureAnalysisFailureType otherfailureType, String otherTypeIdentifier) Compares this instances failure type and type identifier to another instance's failure type and type identifier.double
Retrieves the aggregated failure probability.getType()
Returns the failure type.Gets the type identifier.void
setType
(FailureAnalysisFailureType failureType) Sets the failure type.void
setTypeIdentifier
(String typeIdentifier) Sets the type identifier
-
Constructor Details
-
TypesFailureProbabilityAggregation
public TypesFailureProbabilityAggregation(FailureAnalysisFailureType failureType, String typeIdentifier, double failureProbability) Creates a new instance of this class, given the failure analysis failure type.- Parameters:
failureAggregationType
- the failure analysis failure typetypeIdentifier
- the type identifierfailureProbability
- the failure probability
-
-
Method Details
-
addToFailureProbability
public void addToFailureProbability(double failureProbability) Adds to the current aggregated failure probability additional failure probability.- Parameters:
failureProbability
- the failure probability to be added to the existing one
-
compareTo
Compares this instances failure type and type identifier to another instance's failure type and type identifier.- Parameters:
otherfailureType
- the other instance's failure typeotherTypeIdentifier
- the other instance's type identifier- Returns:
true
, if and only if both the failure types and type identifiers match
-
getFailureProbability
public double getFailureProbability()Retrieves the aggregated failure probability.- Returns:
- the aggregated failure probability
-
getType
Returns the failure type.- Returns:
- the failure type
-
getTypeIdentifier
Gets the type identifier.- Returns:
- the type identifier
-
setType
Sets the failure type.- Parameters:
failureType
- the failure type
-
setTypeIdentifier
Sets the type identifier- Parameters:
typeIdentifier
- the type identifier
-