Class SensitivityCalculator
- java.lang.Object
-
- org.palladiosimulator.reliability.solver.sensitivity.SensitivityCalculator
-
public class SensitivityCalculator extends Object
-
-
Constructor Summary
Constructors Constructor Description SensitivityCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calculateCurrentDoubleValue(DoubleParameterVariation variation, int stepNumber, double baseValue)
Calculates the current double value from a given parameter variation and step number.String
calculateCurrentStringValue(StringParameterSequence sequence, int stepNumber)
Calculates the current string value from a given parameter variation and step number.double
calculateFailurePotential(MarkovTransformationResult result, SensitivityResultSpecification specification)
Calculates the total failure potential associated to a given sensitivity result specification.int
calculateNumberOfSteps(SensitivityParameterVariation variation)
Calculates the number of steps to perform for a given parameter variation.String
getCurrentLogEntry(SensitivityParameterVariation variation, int stepNumber)
Retrieves the current log entry for a certain sensitivity step.
-
-
-
Method Detail
-
calculateCurrentDoubleValue
public double calculateCurrentDoubleValue(DoubleParameterVariation variation, int stepNumber, double baseValue)
Calculates the current double value from a given parameter variation and step number.- Parameters:
variation
- the parameter variationstepNumber
- the step numberbaseValue
- the original value (for offset calculations)- Returns:
- the current value
-
calculateCurrentStringValue
public String calculateCurrentStringValue(StringParameterSequence sequence, int stepNumber)
Calculates the current string value from a given parameter variation and step number.- Parameters:
sequence
- the parameter variationstepNumber
- the step number- Returns:
- the current value
-
calculateFailurePotential
public double calculateFailurePotential(MarkovTransformationResult result, SensitivityResultSpecification specification)
Calculates the total failure potential associated to a given sensitivity result specification.- Parameters:
result
- the Markov transformation resultspecification
- the result specification- Returns:
- the failure potential
-
calculateNumberOfSteps
public int calculateNumberOfSteps(SensitivityParameterVariation variation)
Calculates the number of steps to perform for a given parameter variation.- Parameters:
variation
- the parameter variation- Returns:
- the number of steps to perform
-
getCurrentLogEntry
public String getCurrentLogEntry(SensitivityParameterVariation variation, int stepNumber)
Retrieves the current log entry for a certain sensitivity step.- Parameters:
variation
- the parameter variationstepNumber
- the step number- Returns:
- the current log entry
-
-