Class MonitorCreationWizardModel
- java.lang.Object
-
- org.palladiosimulator.measurementsui.wizardmodel.pages.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 Summary
Constructors Constructor Description MonitorCreationWizardModel(org.palladiosimulator.monitorrepository.Monitor monitor, boolean isEditing)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canFinish()
String
getInfoText()
org.palladiosimulator.monitorrepository.Monitor
getMonitor()
Get monitorString
getTitleText()
void
setMonitorActivated(boolean activatedOrNot)
Sets the activated attribute of the monitor.void
setMonitorName(String name)
Sets the name of the monitor.
-
-
-
Method Detail
-
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
public String getInfoText()
- Specified by:
getInfoText
in interfaceWizardModel
- Returns:
- an info text based on the changes made in the model.
-
getTitleText
public String getTitleText()
- Specified by:
getTitleText
in interfaceWizardModel
- Returns:
- the title of the wizard page
-
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
-
-