Class SloMeasurementSpecSelectionWizardModel

java.lang.Object
org.palladiosimulator.measurementsui.wizardmodel.pages.SloMeasurementSpecSelectionWizardModel
All Implemented Interfaces:
WizardModelSlo

public class SloMeasurementSpecSelectionWizardModel extends Object implements WizardModelSlo
WizardModel for the selecting a measurement specification for a Service Level Objective
  • Constructor Summary

    Constructors
    Constructor
    Description
    SloMeasurementSpecSelectionWizardModel(SloProvider dataProvider, boolean isEditing)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method returns true if the MeasurementSpec Selection Page contains all necessary information.
    Returns info text displayed in the WizardPage
    org.palladiosimulator.monitorrepository.MeasurementSpecification
    This method retrieves the Measurement Specification from the current Slo.
    EList<org.palladiosimulator.monitorrepository.MeasurementSpecification>
    getMeasurementSpecs(org.palladiosimulator.monitorrepository.Monitor monitor)
    This method returns all Measurement Specifications of a Monitor.
    EList<org.palladiosimulator.monitorrepository.Monitor>
    This method returns all available Monitors.
    org.palladiosimulator.servicelevelobjective.ServiceLevelObjective
    This method retrieves the current Slo from the Slo-Provider
    Returns title text displayed in the WizardPage
    void
    setMeasurementSpecificationTmp(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpec)
    This method sets the Measurement Specification temporary.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SloMeasurementSpecSelectionWizardModel

      public SloMeasurementSpecSelectionWizardModel(SloProvider dataProvider, boolean isEditing)
      Constructor
      Parameters:
      slo - the service level objective to edit
      isEditing - indicates whether we are in edit mode or creation mode
  • Method Details

    • canFinish

      public boolean canFinish()
      This method returns true if the MeasurementSpec Selection Page contains all necessary information.
      Specified by:
      canFinish in interface WizardModelSlo
      Returns:
      true if the user has chosen a Measurement Specification
    • getSlo

      public org.palladiosimulator.servicelevelobjective.ServiceLevelObjective getSlo()
      This method retrieves the current Slo from the Slo-Provider
      Returns:
      ServiceLevelObjective slo
    • getMonitors

      public EList<org.palladiosimulator.monitorrepository.Monitor> getMonitors()
      This method returns all available Monitors.
      Returns:
      returns all available Monitors
    • getMeasurementSpecs

      public EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> getMeasurementSpecs(org.palladiosimulator.monitorrepository.Monitor monitor)
      This method returns all Measurement Specifications of a Monitor.
      Parameters:
      monitor -
      Returns:
    • setMeasurementSpecificationTmp

      public void setMeasurementSpecificationTmp(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpec)
      This method sets the Measurement Specification temporary. Avoids changing Measurement Specification if user cancels editing.
      Parameters:
      measurementSpec -
    • getMeasurement

      public org.palladiosimulator.monitorrepository.MeasurementSpecification getMeasurement()
      This method retrieves the Measurement Specification from the current Slo.
      Returns:
      returns the Measurement Specification currently set to the Slo.
    • getInfoText

      public String getInfoText()
      Description copied from interface: WizardModelSlo
      Returns info text displayed in the WizardPage
      Specified by:
      getInfoText in interface WizardModelSlo
      Returns:
      an info text based on the changes made in the model.
    • getTitleText

      public String getTitleText()
      Description copied from interface: WizardModelSlo
      Returns title text displayed in the WizardPage
      Specified by:
      getTitleText in interface WizardModelSlo
      Returns:
      the title of the wizard page