Class MultiSensitivity
- java.lang.Object
-
- org.palladiosimulator.reliability.solver.sensitivity.MarkovSensitivity
-
- org.palladiosimulator.reliability.solver.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>sensitivityParametersList of sensitivity parameters.-
Fields inherited from class org.palladiosimulator.reliability.solver.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 booleanalterModel()Alters the model according to the next sensitivity analysis step.protected voidextractSensitivityInformation()Extracts the relevant sensitivity information from the given model.protected intgetCurrentStepNumber()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 booleanincreaseCurrentStepNumber()Increases the current step number.protected voidresetCurrentStepNumber()Resets the current step number.protected voidsetModel(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 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:
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
protected List<List<String>> getLogHeadingsMulti()
Builds the headings strings for logging.- Specified by:
getLogHeadingsMultiin classMarkovSensitivity- Returns:
- the log headings strings
-
getLogSingleResultsMulti
protected List<String> 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.models.PCMInstance model)
Sets the PCM instance.- Overrides:
setModelin classMarkovSensitivity- Parameters:
model- the PCM instance
-
-