Package de.uka.ipd.sdq.dsexplore.launch
Class QMLManager
java.lang.Object
de.uka.ipd.sdq.dsexplore.launch.QMLManager
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
Modifier and TypeFieldDescriptionprotected DSEAnalysisMethodTab
protected DSEAnalysisMethodTab
protected String
protected String
protected String
protected QMLDimensionReader
protected DSEAnalysisMethodTab
protected Set<EvaluationAspectWithContext>
protected PCMDeclarationsReader
protected DSEAnalysisMethodTab
protected DSEAnalysisMethodTab
protected boolean
Indicates ifprocessQMLFile(String, String)
was successful.protected DSEAnalysisMethodTab
protected DSEAnalysisMethodTab
protected List<DSEAnalysisMethodTab>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTabs
(DSEAnalysisMethodTab... tabs) Add tabs to be de-/activates here.protected void
protected boolean
fileExists
(String path) protected List<IExtension>
boolean
boolean
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 Details
-
tabs
-
qmlLoaded
protected boolean qmlLoadedIndicates ifprocessQMLFile(String, String)
was successful. -
diagnosis
-
pcmReader
-
dimensionReader
-
currentQMLPath
-
currentUsageModelPath
-
costTab
-
pofodTab
-
performanceTab
-
securityTab
-
nqrTab
-
reasoningTab
-
confidentialityTab
-
objectives
-
-
Constructor Details
-
QMLManager
public QMLManager()
-
-
Method Details
-
getActivatedObjectives
-
hasActivatedObjectives
public boolean hasActivatedObjectives() -
addTabs
Add tabs to be de-/activates here.- Parameters:
tabs
-
-
processQMLFile
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
-
getExtensionsThatEvaluateAspect
-
isQMLLoaded
public boolean isQMLLoaded()Indicates ifprocessQMLFile(String, String)
was successful.- Returns:
- the QMLLoaded
-
getDiagnosis
- Returns:
- the diagnosis
-