Class MultiSensitivity
- java.lang.Object
-
- org.palladiosimulator.solver.reliability.sensitivity.MarkovSensitivity
-
- org.palladiosimulator.solver.reliability.sensitivity.MultiSensitivity
-
public class MultiSensitivity extends MarkovSensitivity
Provides a possibility to define multiple sensitivity parameters to be defined within one sensitivity analysis.
-
-
Field Summary
Fields Modifier and Type Field Description List<MarkovSensitivity>
sensitivityParameters
List of sensitivity parameters.-
Fields inherited from class org.palladiosimulator.solver.reliability.sensitivity.MarkovSensitivity
calculator, helper, LOGGER, logWriter, model, name, numberOfSteps
-
-
Constructor Summary
Constructors Constructor Description MultiSensitivity(String name, List<MarkovSensitivity> sensitivityParameters, boolean isCombinatory)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
alterModel()
Alters the model according to the next sensitivity analysis step.protected void
extractSensitivityInformation()
Extracts the relevant sensitivity information from the given model.protected int
getCurrentStepNumber()
Retrieves the current step number.protected List<List<String>>
getLogHeadingsMulti()
Builds the headings strings for logging.protected List<String>
getLogSingleResultsMulti()
Builds the results strings for sensitivity logging.protected boolean
increaseCurrentStepNumber()
Increases the current step number.protected void
resetCurrentStepNumber()
Resets the current step number.protected void
setModel(PCMInstance model)
Sets the PCM instance.-
Methods inherited from class org.palladiosimulator.solver.reliability.sensitivity.MarkovSensitivity
finalize, getDoubleVariation, getLogSingleResults, getModel, getNextModel, getStringSequence, initialize, logResults, setLogFileName, setResultSpecifications
-
-
-
-
Field Detail
-
sensitivityParameters
public List<MarkovSensitivity> sensitivityParameters
List of sensitivity parameters.
-
-
Constructor Detail
-
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 Detail
-
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
protected List<List<String>> getLogHeadingsMulti()
Builds the headings strings for logging.- Specified by:
getLogHeadingsMulti
in classMarkovSensitivity
- Returns:
- the log headings strings
-
getLogSingleResultsMulti
protected List<String> 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(PCMInstance model)
Sets the PCM instance.- Overrides:
setModel
in classMarkovSensitivity
- Parameters:
model
- the PCM instance
-
-