Class AnalysisProxy
java.lang.Object
de.uka.ipd.sdq.dsexplore.analysis.AnalysisProxy
- All Implemented Interfaces:
IAnalysis
Singleton
-
Constructor Summary
ConstructorsConstructorDescriptionAnalysisProxy(DSEWorkflowConfiguration configuration, DSEConstantsContainer.QualityAttribute qualityAttribute, DSELaunch dseLaunch, String methodName) -
Method Summary
Modifier and TypeMethodDescriptionvoidanalyse(PCMPhenotype pheno, IProgressMonitor monitor) Analyses the current PCM instance from the blackboard.List<org.opt4j.core.Criterion>Can only be called after initialisation (#initialise(MDSDBlackboard, ILaunchConfiguration, ILaunch, IProgressMonitor)).Returns aStringthat represents the quality attribute that this analysis determines.booleanReturns whether this analysis provides one objective per usage scenario.booleanReturns whether this analysis also provides statistics for the objectives.voidinitialise(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)
-
Constructor Details
-
AnalysisProxy
public AnalysisProxy(DSEWorkflowConfiguration configuration, DSEConstantsContainer.QualityAttribute qualityAttribute, DSELaunch dseLaunch, String methodName)
-
-
Method Details
-
analyse
public void analyse(PCMPhenotype pheno, IProgressMonitor monitor) throws CoreException, de.uka.ipd.sdq.workflow.jobs.UserCanceledException, AnalysisFailedException, de.uka.ipd.sdq.workflow.jobs.JobFailedException Description copied from interface:IAnalysisAnalyses 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.- Specified by:
analysein interfaceIAnalysis- Parameters:
pheno- TODO- Throws:
CoreExceptionde.uka.ipd.sdq.workflow.jobs.UserCanceledExceptionAnalysisFailedExceptionde.uka.ipd.sdq.workflow.jobs.JobFailedException
-
initialise
Description copied from interface:IAnalysisSaves 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
-
getQualityAttribute
Description copied from interface:IAnalysisReturns aStringthat represents the quality attribute that this analysis determines. This method can be called without initialization.- Specified by:
getQualityAttributein interfaceIAnalysis- Returns:
- Throws:
CoreException
-
hasStatisticResultsFor
Description copied from interface:IAnalysisReturns whether this analysis also provides statistics for the objectives. This method can be called without initialization.- Specified by:
hasStatisticResultsForin interfaceIAnalysis- Returns:
- Throws:
CoreException
-
getCriterions
Description copied from interface:IAnalysisCan only be called after initialisation (#initialise(MDSDBlackboard, ILaunchConfiguration, ILaunch, IProgressMonitor)).- Specified by:
getCriterionsin interfaceIAnalysis- Returns:
- Throws:
CoreException
-
retrieveResultsFor
public IAnalysisResult retrieveResultsFor(PCMPhenotype pheno, org.opt4j.core.Criterion criterion) throws CoreException, 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:
CoreExceptionAnalysisFailedException
-
hasObjectivePerUsageScenario
Description 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:
CoreException
-
setBlackboard
public void setBlackboard(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard) - Specified by:
setBlackboardin interfaceIAnalysis
-