Class ImpactAnalysisFailureProbabilityAggregation
- java.lang.Object
-
- org.palladiosimulator.reliability.solver.reporting.ImpactAnalysisFailureProbabilityAggregation
-
public class ImpactAnalysisFailureProbabilityAggregation extends Object
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
Constructors Constructor Description ImpactAnalysisFailureProbabilityAggregation(ImpactAnalysisFailureType failureAggregationType, List<String> entityIdentifiers, List<String> entityNameParts, double failureProbability)Creates a new failure probability aggregation instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToFailureProbabilityBy(double failureProbability)Adds to the current entity's aggregated failure probability additional failure probability.booleancompareToIdentifier(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.List<String>getEntityIdentifiers()Retrieves the identification strings List of the entity.List<String>getEntityNameParts()Retrieves the name parts of the entity.doublegetFailureProbability()Retrieves the entity's aggregated failure probability.ImpactAnalysisFailureTypegetType()Returns the failure probability aggregation type.voidsetEntityIdentifiers(List<String> entityIdentifiers)Sets the identification strings List of the entity.voidsetEntityNameParts(List<String> entityNameParts)Sets the name parts of the entity.voidsetFailureProbability(double failureProbability)Sets the entity's aggregated failure probability.voidsetType(ImpactAnalysisFailureType failureAggregationType)Sets the failure probability aggregation type.
-
-
-
Constructor Detail
-
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 Detail
-
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,falseotherwise
-
getEntityIdentifiers
public List<String> getEntityIdentifiers()
Retrieves the identification strings List of the entity.- Returns:
- the identification strings List
-
getEntityNameParts
public List<String> 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
public ImpactAnalysisFailureType getType()
Returns the failure probability aggregation type.- Returns:
- the failure probability aggregation type
-
setEntityIdentifiers
public void setEntityIdentifiers(List<String> entityIdentifiers)
Sets the identification strings List of the entity.- Parameters:
entityIdentifier- the identification strings List
-
setEntityNameParts
public void setEntityNameParts(List<String> entityNameParts)
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
public void setType(ImpactAnalysisFailureType failureAggregationType)
Sets the failure probability aggregation type.- Parameters:
failureAggregationType- the failure probability aggregation type
-
-