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
FieldsModifier and TypeFieldDescriptionprotected DSEAnalysisMethodTabprotected DSEAnalysisMethodTabprotected Stringprotected Stringprotected Stringprotected QMLDimensionReaderprotected DSEAnalysisMethodTabprotected Set<EvaluationAspectWithContext>protected PCMDeclarationsReaderprotected DSEAnalysisMethodTabprotected DSEAnalysisMethodTabprotected booleanIndicates ifprocessQMLFile(String, String)was successful.protected DSEAnalysisMethodTabprotected DSEAnalysisMethodTabprotected List<DSEAnalysisMethodTab> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTabs(DSEAnalysisMethodTab... tabs) Add tabs to be de-/activates here.protected voidprotected booleanfileExists(String path) protected List<IExtension>booleanbooleanIndicates ifprocessQMLFile(String, String)was successful.voidprocessQMLFile(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
-