Class TypesFailureProbabilityAggregation

java.lang.Object
org.palladiosimulator.reliability.solver.reporting.TypesFailureProbabilityAggregation

public class TypesFailureProbabilityAggregation extends Object
Class used for aggregation of failure probabilities according to a FailureAnalysisFailureType when considering failure types.
  • 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 type
      typeIdentifier - the type identifier
      failureProbability - 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

      public boolean compareTo(FailureAnalysisFailureType otherfailureType, String otherTypeIdentifier)
      Compares this instances failure type and type identifier to another instance's failure type and type identifier.
      Parameters:
      otherfailureType - the other instance's failure type
      otherTypeIdentifier - 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

      public FailureAnalysisFailureType getType()
      Returns the failure type.
      Returns:
      the failure type
    • getTypeIdentifier

      public String getTypeIdentifier()
      Gets the type identifier.
      Returns:
      the type identifier
    • setType

      public void setType(FailureAnalysisFailureType failureType)
      Sets the failure type.
      Parameters:
      failureType - the failure type
    • setTypeIdentifier

      public void setTypeIdentifier(String typeIdentifier)
      Sets the type identifier
      Parameters:
      typeIdentifier - the type identifier