Package de.uka.ipd.sdq.dsexplore.launch
Class QMLManager
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.launch.QMLManager
-
public class QMLManager extends Object
The QMLManager component can be queried for getting the currently activated QML criteria. Based on the activated criteria, it de-/activates evaluators in the launch configuration tabs. TODO: this class seems to slow-down the opening of the launch configuration tab tremendously and needs to be profiled. TODO: this class and the QML plugin have their own methods to access files based on the filename Strings in the launch config. It would be better to add an abstraction layer (maybe use DSEWriter).
-
-
Field Summary
Fields Modifier and Type Field Description protected DSEAnalysisMethodTab
confidentialityTab
protected DSEAnalysisMethodTab
costTab
protected String
currentQMLPath
protected String
currentUsageModelPath
protected String
diagnosis
protected QMLDimensionReader
dimensionReader
protected DSEAnalysisMethodTab
nqrTab
protected Set<EvaluationAspectWithContext>
objectives
protected PCMDeclarationsReader
pcmReader
protected DSEAnalysisMethodTab
performanceTab
protected DSEAnalysisMethodTab
pofodTab
protected boolean
qmlLoaded
Indicates ifprocessQMLFile(String, String)
was successful.protected DSEAnalysisMethodTab
reasoningTab
protected DSEAnalysisMethodTab
securityTab
protected List<DSEAnalysisMethodTab>
tabs
-
Constructor Summary
Constructors Constructor Description QMLManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTabs(DSEAnalysisMethodTab... tabs)
Add tabs to be de-/activates here.protected void
deactivateAllTabs()
protected boolean
fileExists(String path)
List<EvaluationAspectWithContext>
getActivatedObjectives()
String
getDiagnosis()
protected List<IExtension>
getExtensionsThatEvaluateAspect(EvaluationAspectWithContext aspect)
boolean
hasActivatedObjectives()
boolean
isQMLLoaded()
Indicates ifprocessQMLFile(String, String)
was successful.void
processQMLFile(String qmlFilePath, String usageModelFilePath)
Reads QML definitions and activates or deactivates extensions in the tabs based on the definitions.
-
-
-
Field Detail
-
tabs
protected List<DSEAnalysisMethodTab> tabs
-
qmlLoaded
protected boolean qmlLoaded
Indicates ifprocessQMLFile(String, String)
was successful.
-
diagnosis
protected String diagnosis
-
pcmReader
protected PCMDeclarationsReader pcmReader
-
dimensionReader
protected QMLDimensionReader dimensionReader
-
currentQMLPath
protected String currentQMLPath
-
currentUsageModelPath
protected String currentUsageModelPath
-
costTab
protected DSEAnalysisMethodTab costTab
-
pofodTab
protected DSEAnalysisMethodTab pofodTab
-
performanceTab
protected DSEAnalysisMethodTab performanceTab
-
securityTab
protected DSEAnalysisMethodTab securityTab
-
nqrTab
protected DSEAnalysisMethodTab nqrTab
-
reasoningTab
protected DSEAnalysisMethodTab reasoningTab
-
confidentialityTab
protected DSEAnalysisMethodTab confidentialityTab
-
objectives
protected Set<EvaluationAspectWithContext> objectives
-
-
Method Detail
-
getActivatedObjectives
public List<EvaluationAspectWithContext> getActivatedObjectives()
-
hasActivatedObjectives
public boolean hasActivatedObjectives()
-
addTabs
public void addTabs(DSEAnalysisMethodTab... tabs)
Add tabs to be de-/activates here.- Parameters:
tabs
-
-
processQMLFile
public void processQMLFile(String qmlFilePath, String usageModelFilePath)
Reads QML definitions and activates or deactivates extensions in the tabs based on the definitions. If processing is successful,isQMLLoaded()
returnstrue
.- Parameters:
qmlFilePath
-usageModelFilePath
-
-
deactivateAllTabs
protected void deactivateAllTabs()
-
fileExists
protected boolean fileExists(String path)
-
getExtensionsThatEvaluateAspect
protected List<IExtension> getExtensionsThatEvaluateAspect(EvaluationAspectWithContext aspect)
-
isQMLLoaded
public boolean isQMLLoaded()
Indicates ifprocessQMLFile(String, String)
was successful.- Returns:
- the QMLLoaded
-
getDiagnosis
public String getDiagnosis()
- Returns:
- the diagnosis
-
-