Class ReliabilityAnalysis
java.lang.Object
de.uka.ipd.sdq.dsexplore.analysis.AbstractAnalysis
de.uka.ipd.sdq.dsexplore.analysis.reliability.ReliabilityAnalysis
- All Implemented Interfaces:
IAnalysis
Starts a reliability Solver Analysis for the design space exploration.
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.dsexplore.analysis.AbstractAnalysis
blackboard, criteriaList, criterionToAspect, qualityAttribute -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanalyse(PCMPhenotype pheno, org.eclipse.core.runtime.IProgressMonitor monitor) Analyses the current PCM instance from the blackboard.booleanReturns whether this analysis provides one objective per usage scenario.booleanvoidinitialise(DSEWorkflowConfiguration configuration) Saves the passed Run Configuration information so that we do not have to pass them as parameters all the time.retrieveResultsFor(PCMPhenotype pheno, org.opt4j.core.Criterion criterion) This method can only be called after calling a#analyse()for this phenotype and the current PCM models of this candidate have to be in theBlackboardpartitionLoadPCMModelsIntoBlackboardJob.PCM_MODELS_PARTITION_ID FIXME: Make this method independent of the blackboard state.voidsetBlackboard(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard) Methods inherited from class de.uka.ipd.sdq.dsexplore.analysis.AbstractAnalysis
canEvaluateAspect, getCriterions, getPCMInstance, getQualityAttribute, hasStatisticResultsFor, initialiseCriteriaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.uka.ipd.sdq.dsexplore.analysis.IAnalysis
getCriterions, getQualityAttribute, hasStatisticResultsFor
-
Constructor Details
-
ReliabilityAnalysis
public ReliabilityAnalysis()
-
-
Method Details
-
analyse
public void analyse(PCMPhenotype pheno, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException, de.uka.ipd.sdq.workflow.jobs.JobFailedException, de.uka.ipd.sdq.workflow.jobs.UserCanceledException Analyses the current PCM instance from the blackboard. This method can only be called after calling#initialise(MDSDBlackboard, ILaunchConfiguration, ILaunch). The PCM instance for thisPCMPhenotypehas to be copied to the Blackboard into partitionLoadPCMModelsIntoBlackboardJob.PCM_MODELS_PARTITION_ID before callings this. Otherwise, a wrong PCM model is analysed. The Analysis has to store the results for thisPCMPhenotype, so thatIAnalysis.retrieveResultsFor(PCMPhenotype, Criterion)can be called on it multiple times. The results should be stored in a memory-efficient way. -
initialise
public void initialise(DSEWorkflowConfiguration configuration) throws org.eclipse.core.runtime.CoreException Saves the passed Run Configuration information so that we do not have to pass them as parameters all the time. For real analyses, you need to call setBlackboard before this so that the objectives can be determined from the usage model. For theAnalysisProxyit is ok to call this first, you then need to call setBlackboard before callingIAnalysis.analyse(PCMPhenotype, IProgressMonitor),#retrieveLastResultsForObjective(Objective),#getObjectives(), orIAnalysis.hasObjectivePerUsageScenario().- Specified by:
initialisein interfaceIAnalysis- Throws:
org.eclipse.core.runtime.CoreException- See Also:
-
de.uka.ipd.sdq.dsexplore.analysis.IAnalysis#initialise(org.eclipse.debug.core.ILaunchConfiguration, java.lang.String, org.eclipse.debug.core.ILaunch, org.eclipse.core.runtime.IProgressMonitor)
-
hasStatisticResults
public boolean hasStatisticResults() throws org.eclipse.core.runtime.CoreException- Throws:
org.eclipse.core.runtime.CoreException
-
retrieveResultsFor
public IAnalysisResult retrieveResultsFor(PCMPhenotype pheno, org.opt4j.core.Criterion criterion) throws AnalysisFailedException Description copied from interface:IAnalysisThis method can only be called after calling a#analyse()for this phenotype and the current PCM models of this candidate have to be in theBlackboardpartitionLoadPCMModelsIntoBlackboardJob.PCM_MODELS_PARTITION_ID FIXME: Make this method independent of the blackboard state. Currently, the SimuComAnalysis and the LQN analyses still require the current PCM model to be on the blackboard.- Specified by:
retrieveResultsForin interfaceIAnalysis- Parameters:
pheno- TODO- Returns:
- Throws:
AnalysisFailedException
-
hasObjectivePerUsageScenario
public boolean hasObjectivePerUsageScenario() throws org.eclipse.core.runtime.CoreExceptionDescription copied from interface:IAnalysisReturns whether this analysis provides one objective per usage scenario. This method can be called before calling#initialise(MDSDBlackboard, ILaunchConfiguration, ILaunch, IProgressMonitor).- Specified by:
hasObjectivePerUsageScenarioin interfaceIAnalysis- Throws:
org.eclipse.core.runtime.CoreException
-
setBlackboard
public void setBlackboard(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard) - Specified by:
setBlackboardin interfaceIAnalysis
-