Class ImpactAnalysisFailureProbabilityAggregation
java.lang.Object
org.palladiosimulator.reliability.solver.reporting.ImpactAnalysisFailureProbabilityAggregation
Class used for aggregation of failure probabilities according to an entity. An entity may be a
component's ID, a component's interface ID, a component's signature ID, etc.
-
Constructor Summary
ConstructorDescriptionImpactAnalysisFailureProbabilityAggregation
(ImpactAnalysisFailureType failureAggregationType, List<String> entityIdentifiers, List<String> entityNameParts, double failureProbability) Creates a new failure probability aggregation instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToFailureProbabilityBy
(double failureProbability) Adds to the current entity's aggregated failure probability additional failure probability.boolean
compareToIdentifier
(ImpactAnalysisFailureType otherEntityType, List<String> otherEntityIdentifiers) Compares this instance's failure probability aggregation type and identification strings List to the given type and identification strings, respectively.Retrieves the identification strings List of the entity.Retrieves the name parts of the entity.double
Retrieves the entity's aggregated failure probability.getType()
Returns the failure probability aggregation type.void
setEntityIdentifiers
(List<String> entityIdentifiers) Sets the identification strings List of the entity.void
setEntityNameParts
(List<String> entityNameParts) Sets the name parts of the entity.void
setFailureProbability
(double failureProbability) Sets the entity's aggregated failure probability.void
setType
(ImpactAnalysisFailureType failureAggregationType) Sets the failure probability aggregation type.
-
Constructor Details
-
ImpactAnalysisFailureProbabilityAggregation
public ImpactAnalysisFailureProbabilityAggregation(ImpactAnalysisFailureType failureAggregationType, List<String> entityIdentifiers, List<String> entityNameParts, double failureProbability) Creates a new failure probability aggregation instance.- Parameters:
failureAggregationType
- the failure probability aggregation type of the entityentityIdentifiers
- the entity's identification strings listentityNameParts
- the entity's name parts; the entity's name is made up of its single partsfailureProbability
- the failure probability of the entity
-
-
Method Details
-
addToFailureProbabilityBy
public void addToFailureProbabilityBy(double failureProbability) Adds to the current entity's aggregated failure probability additional failure probability.- Parameters:
failureProbability
- the failure probability to be added to the existing one
-
compareToIdentifier
public boolean compareToIdentifier(ImpactAnalysisFailureType otherEntityType, List<String> otherEntityIdentifiers) Compares this instance's failure probability aggregation type and identification strings List to the given type and identification strings, respectively.- Parameters:
otherEntityType
- the other entity's failure probability aggregation typeotherEntityIdentifiers
- the other entitity's identification strings List- Returns:
true
, if both types and identification strings match each other,false
otherwise
-
getEntityIdentifiers
Retrieves the identification strings List of the entity.- Returns:
- the identification strings List
-
getEntityNameParts
Retrieves the name parts of the entity. The entity's name is made up of its single parts.- Returns:
- the name parts of the entity
-
getFailureProbability
public double getFailureProbability()Retrieves the entity's aggregated failure probability.- Returns:
- the entity's aggregated failure probability
-
getType
Returns the failure probability aggregation type.- Returns:
- the failure probability aggregation type
-
setEntityIdentifiers
Sets the identification strings List of the entity.- Parameters:
entityIdentifier
- the identification strings List
-
setEntityNameParts
Sets the name parts of the entity. The entity's name is made up of its single parts.- Parameters:
entityNameParts
- the name parts of the entity
-
setFailureProbability
public void setFailureProbability(double failureProbability) Sets the entity's aggregated failure probability.- Parameters:
failureProbability
- the entity's aggregated failure probability
-
setType
Sets the failure probability aggregation type.- Parameters:
failureAggregationType
- the failure probability aggregation type
-