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 Details

  • Constructor Details

    • QMLManager

      public QMLManager()
  • Method Details

    • 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() returns true.
      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 if processQMLFile(String, String) was successful.
      Returns:
      the QMLLoaded
    • getDiagnosis

      public String getDiagnosis()
      Returns:
      the diagnosis