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
ConstructorsConstructorDescriptionMonitorCreationWizardModel(org.palladiosimulator.monitorrepository.Monitor monitor, boolean isEditing) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.palladiosimulator.monitorrepository.MonitorGet monitorvoidsetMonitorActivated(boolean activatedOrNot) Sets the activated attribute of the monitor.voidsetMonitorName(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:
canFinishin interfaceWizardModel- Returns:
- true if all necessary attributes are set in order to finish
-
getInfoText
- Specified by:
getInfoTextin interfaceWizardModel- Returns:
- an info text based on the changes made in the model.
-
getTitleText
- Specified by:
getTitleTextin 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
-