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
Modifier and TypeFieldDescriptionList of sensitivity parameters.Fields inherited from class org.palladiosimulator.reliability.solver.sensitivity.MarkovSensitivity
calculator, helper, LOGGER, logWriter, model, name, numberOfSteps
-
Constructor Summary
ConstructorDescriptionMultiSensitivity
(String name, List<MarkovSensitivity> sensitivityParameters, boolean isCombinatory) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Alters the model according to the next sensitivity analysis step.protected void
Extracts the relevant sensitivity information from the given model.protected int
Retrieves the current step number.Builds the headings strings for logging.Builds the results strings for sensitivity logging.protected boolean
Increases the current step number.protected void
Resets the current step number.protected void
setModel
(org.palladiosimulator.solver.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:
alterModel
in 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:
extractSensitivityInformation
in classMarkovSensitivity
-
getCurrentStepNumber
protected int getCurrentStepNumber()Retrieves the current step number.- Overrides:
getCurrentStepNumber
in classMarkovSensitivity
- Returns:
- the current step number
-
getLogHeadingsMulti
Builds the headings strings for logging.- Specified by:
getLogHeadingsMulti
in classMarkovSensitivity
- Returns:
- the log headings strings
-
getLogSingleResultsMulti
Builds the results strings for sensitivity logging.- Specified by:
getLogSingleResultsMulti
in classMarkovSensitivity
- Returns:
- the results strings
-
increaseCurrentStepNumber
protected boolean increaseCurrentStepNumber()Increases the current step number.- Overrides:
increaseCurrentStepNumber
in classMarkovSensitivity
- Returns:
- indicates an overflow
-
resetCurrentStepNumber
protected void resetCurrentStepNumber()Resets the current step number.- Overrides:
resetCurrentStepNumber
in classMarkovSensitivity
-
setModel
protected void setModel(org.palladiosimulator.solver.models.PCMInstance model) Sets the PCM instance.- Overrides:
setModel
in classMarkovSensitivity
- Parameters:
model
- the PCM instance
-