Class SensitivityCalculator
- java.lang.Object
-
- org.palladiosimulator.solver.reliability.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(org.palladiosimulator.reliability.sensitivity.DoubleParameterVariation variation, int stepNumber, double baseValue)
Calculates the current double value from a given parameter variation and step number.String
calculateCurrentStringValue(org.palladiosimulator.reliability.sensitivity.StringParameterSequence sequence, int stepNumber)
Calculates the current string value from a given parameter variation and step number.double
calculateFailurePotential(MarkovTransformationResult result, org.palladiosimulator.reliability.sensitivity.SensitivityResultSpecification specification)
Calculates the total failure potential associated to a given sensitivity result specification.int
calculateNumberOfSteps(org.palladiosimulator.reliability.sensitivity.SensitivityParameterVariation variation)
Calculates the number of steps to perform for a given parameter variation.String
getCurrentLogEntry(org.palladiosimulator.reliability.sensitivity.SensitivityParameterVariation variation, int stepNumber)
Retrieves the current log entry for a certain sensitivity step.
-
-
-
Method Detail
-
calculateCurrentDoubleValue
public double calculateCurrentDoubleValue(org.palladiosimulator.reliability.sensitivity.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(org.palladiosimulator.reliability.sensitivity.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, org.palladiosimulator.reliability.sensitivity.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(org.palladiosimulator.reliability.sensitivity.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(org.palladiosimulator.reliability.sensitivity.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
-
-