Class SloCreationWizardModel
java.lang.Object
org.palladiosimulator.measurementsui.wizardmodel.pages.SloCreationWizardModel
- All Implemented Interfaces:
WizardModelSlo
WizardModel for the creating and editing a Service Level Objective.
Model for the first SloWizardPage.
-
Constructor Summary
ConstructorDescriptionSloCreationWizardModel
(SloProvider dataprovider, boolean isEditing) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if this wizard page contains all necessary informationReturns info text displayed in the WizardPagegetName()
org.palladiosimulator.servicelevelobjective.ServiceLevelObjective
getSlo()
Gets the Service Level Objective from the SLO-Provider.Returns title text displayed in the WizardPagevoid
setDescription
(String description) Sets the description of the slo.void
Sets the name of the slo.void
setServiceLevelObjective
(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective slo) Sets the Service Level Objective in the SLO-Provider.
-
Constructor Details
-
SloCreationWizardModel
Constructor- Parameters:
slo
- the service level objective to editisEditing
- indicates whether we are in edit mode or creation mode
-
-
Method Details
-
getSlo
public org.palladiosimulator.servicelevelobjective.ServiceLevelObjective getSlo()Gets the Service Level Objective from the SLO-Provider. Is used by the wizard pages- Returns:
- the service level objective
-
setServiceLevelObjective
public void setServiceLevelObjective(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective slo) Sets the Service Level Objective in the SLO-Provider. Is used by the wizard pages -
setName
Sets the name of the slo.- Parameters:
name
- the new name of the slo
-
setDescription
Sets the description of the slo.- Parameters:
description
- the new description of the slo
-
canFinish
public boolean canFinish()Returns true if this wizard page contains all necessary information- Specified by:
canFinish
in interfaceWizardModelSlo
- Returns:
- true if all necessary attributes are set in order to finish
-
getName
-
getDescription
-
getInfoText
Description copied from interface:WizardModelSlo
Returns info text displayed in the WizardPage- Specified by:
getInfoText
in interfaceWizardModelSlo
- Returns:
- an info text based on the changes made in the model.
-
getTitleText
Description copied from interface:WizardModelSlo
Returns title text displayed in the WizardPage- Specified by:
getTitleText
in interfaceWizardModelSlo
- Returns:
- the title of the wizard page
-