Class SloCreationWizardModel

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

public class SloCreationWizardModel extends Object implements WizardModelSlo
WizardModel for the creating and editing a Service Level Objective. Model for the first SloWizardPage.
  • Constructor Details

    • SloCreationWizardModel

      public SloCreationWizardModel(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

    • getSlo

      public org.palladiosimulator.servicelevelobjective.ServiceLevelObjective getSlo()
      Gets the Service Level Objective from the SLO-Provider. Is used by the wizard pages
      Returns:
      the service level objective
    • setServiceLevelObjective

      public void setServiceLevelObjective(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective slo)
      Sets the Service Level Objective in the SLO-Provider. Is used by the wizard pages
    • setName

      public void setName(String name)
      Sets the name of the slo.
      Parameters:
      name - the new name of the slo
    • setDescription

      public void setDescription(String description)
      Sets the description of the slo.
      Parameters:
      description - the new description of the slo
    • canFinish

      public boolean canFinish()
      Returns true if this wizard page contains all necessary information
      Specified by:
      canFinish in interface WizardModelSlo
      Returns:
      true if all necessary attributes are set in order to finish
    • getName

      public String getName()
    • getDescription

      public String getDescription()
    • 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