Class MonitorCreationWizardModel

  • All Implemented Interfaces:
    WizardModel

    public class MonitorCreationWizardModel
    extends Object
    implements WizardModel
    This class provides provides all necessary data for the first Wizard page, to create or Edit a Monitor.
    • Constructor Detail

      • MonitorCreationWizardModel

        public MonitorCreationWizardModel​(org.palladiosimulator.monitorrepository.Monitor monitor,
                                          boolean isEditing)
        Constructor
        Parameters:
        monitor - to edit
        isEditing - indicates whether we are in edit mode or creation mode
    • Method Detail

      • getMonitor

        public org.palladiosimulator.monitorrepository.Monitor getMonitor()
        Get monitor
        Returns:
        monitor
      • canFinish

        public boolean canFinish()
        Specified by:
        canFinish in interface WizardModel
        Returns:
        true if all necessary attributes are set in order to finish
      • getInfoText

        public String getInfoText()
        Specified by:
        getInfoText in interface WizardModel
        Returns:
        an info text based on the changes made in the model.
      • setMonitorName

        public void setMonitorName​(String name)
        Sets the name of the monitor.
        Parameters:
        name - the new given name of the monitor
      • setMonitorActivated

        public void setMonitorActivated​(boolean activatedOrNot)
        Sets the activated attribute of the monitor.
        Parameters:
        activatedOrNot - the given boolean to be set for the activated attribute