Class MultiSensitivity
java.lang.Object
org.palladiosimulator.reliability.solver.sensitivity.MarkovSensitivity
org.palladiosimulator.reliability.solver.sensitivity.MultiSensitivity
Provides a possibility to define multiple sensitivity parameters to be defined within one
sensitivity analysis.
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of sensitivity parameters.Fields inherited from class org.palladiosimulator.reliability.solver.sensitivity.MarkovSensitivity
calculator, helper, LOGGER, logWriter, model, name, numberOfSteps -
Constructor Summary
ConstructorsConstructorDescriptionMultiSensitivity(String name, List<MarkovSensitivity> sensitivityParameters, boolean isCombinatory) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanAlters the model according to the next sensitivity analysis step.protected voidExtracts the relevant sensitivity information from the given model.protected intRetrieves the current step number.Builds the headings strings for logging.Builds the results strings for sensitivity logging.protected booleanIncreases the current step number.protected voidResets the current step number.protected voidsetModel(org.palladiosimulator.solver.core.models.PCMInstance model) Sets the PCM instance.Methods inherited from class org.palladiosimulator.reliability.solver.sensitivity.MarkovSensitivity
finalize, getDoubleVariation, getLogSingleResults, getModel, getNextModel, getStringSequence, initialize, logResults, setLogFileName, setResultSpecifications
-
Field Details
-
sensitivityParameters
List of sensitivity parameters.
-
-
Constructor Details
-
MultiSensitivity
public MultiSensitivity(String name, List<MarkovSensitivity> sensitivityParameters, boolean isCombinatory) The constructor.- Parameters:
name- name of the sensitivity analysissensitivityParameters- list of sensitivity parametersisCombinatory- indicates if all combinations of sensitivity parameters shall be examined
-
-
Method Details
-
alterModel
protected boolean alterModel()Alters the model according to the next sensitivity analysis step.- Specified by:
alterModelin classMarkovSensitivity- Returns:
- indicates if the model could be successfully altered
-
extractSensitivityInformation
protected void extractSensitivityInformation()Extracts the relevant sensitivity information from the given model.- Specified by:
extractSensitivityInformationin classMarkovSensitivity
-
getCurrentStepNumber
protected int getCurrentStepNumber()Retrieves the current step number.- Overrides:
getCurrentStepNumberin classMarkovSensitivity- Returns:
- the current step number
-
getLogHeadingsMulti
Builds the headings strings for logging.- Specified by:
getLogHeadingsMultiin classMarkovSensitivity- Returns:
- the log headings strings
-
getLogSingleResultsMulti
Builds the results strings for sensitivity logging.- Specified by:
getLogSingleResultsMultiin classMarkovSensitivity- Returns:
- the results strings
-
increaseCurrentStepNumber
protected boolean increaseCurrentStepNumber()Increases the current step number.- Overrides:
increaseCurrentStepNumberin classMarkovSensitivity- Returns:
- indicates an overflow
-
resetCurrentStepNumber
protected void resetCurrentStepNumber()Resets the current step number.- Overrides:
resetCurrentStepNumberin classMarkovSensitivity
-
setModel
protected void setModel(org.palladiosimulator.solver.core.models.PCMInstance model) Sets the PCM instance.- Overrides:
setModelin classMarkovSensitivity- Parameters:
model- the PCM instance
-