Class MonitorCreationWizardModel
java.lang.Object
org.palladiosimulator.measurementsui.wizardmodel.pages.MonitorCreationWizardModel
- All Implemented Interfaces:
WizardModel
This class provides provides all necessary data for the first
Wizard page, to create or Edit a Monitor.
-
Constructor Summary
ConstructorDescriptionMonitorCreationWizardModel
(org.palladiosimulator.monitorrepository.Monitor monitor, boolean isEditing) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.palladiosimulator.monitorrepository.Monitor
Get monitorvoid
setMonitorActivated
(boolean activatedOrNot) Sets the activated attribute of the monitor.void
setMonitorName
(String name) Sets the name of the monitor.
-
Constructor Details
-
MonitorCreationWizardModel
public MonitorCreationWizardModel(org.palladiosimulator.monitorrepository.Monitor monitor, boolean isEditing) Constructor- Parameters:
monitor
- to editisEditing
- indicates whether we are in edit mode or creation mode
-
-
Method Details
-
getMonitor
public org.palladiosimulator.monitorrepository.Monitor getMonitor()Get monitor- Returns:
- monitor
-
canFinish
public boolean canFinish()- Specified by:
canFinish
in interfaceWizardModel
- Returns:
- true if all necessary attributes are set in order to finish
-
getInfoText
- Specified by:
getInfoText
in interfaceWizardModel
- Returns:
- an info text based on the changes made in the model.
-
getTitleText
- Specified by:
getTitleText
in interfaceWizardModel
- Returns:
- the title of the wizard page
-
setMonitorName
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
-