Class WizardModelManager

java.lang.Object
org.palladiosimulator.measurementsui.wizardmodel.WizardModelManager

public class WizardModelManager extends Object
This class manages all WizardModels used in the wizard
  • Constructor Details

    • WizardModelManager

      public WizardModelManager()
      Creates a new empty monitor which will be edited in the wizard pages
    • WizardModelManager

      public WizardModelManager(org.palladiosimulator.monitorrepository.Monitor monitor)
      Parameters:
      monitor - an existing monitor which will be edited in the wizard pages
  • Method Details

    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
      Adds the propertyChangeListener to the PropertyChangeSupport
      Parameters:
      listener - the PropertyChangeListener
    • cancel

      public void cancel()
      Discards all changes made
    • finish

      public void finish()
      Saves the changes made in the wizard pages in the Monitor and MeasuringPoint.
    • canFinish

      public boolean canFinish()
      Returns:
      true if all necessary attributes of the monitor are set and the wizard can finish
    • getWizardModel

      public WizardModel getWizardModel(WizardModelType wizardModelType)
      Parameters:
      wizardModelType - an enum which indicates which wizardmodel should be returned
      Returns:
      a wizardmodel which allows to use data methods for a specific wizardpage