Class SloCreationWizardModel
- java.lang.Object
-
- org.palladiosimulator.measurementsui.wizardmodel.pages.SloCreationWizardModel
-
- All Implemented Interfaces:
WizardModelSlo
public class SloCreationWizardModel extends Object implements WizardModelSlo
WizardModel for the creating and editing a Service Level Objective. Model for the first SloWizardPage.
-
-
Constructor Summary
Constructors Constructor Description SloCreationWizardModel(SloProvider dataprovider, boolean isEditing)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canFinish()
Returns true if this wizard page contains all necessary informationString
getDescription()
String
getInfoText()
Returns info text displayed in the WizardPageString
getName()
org.palladiosimulator.servicelevelobjective.ServiceLevelObjective
getSlo()
Gets the Service Level Objective from the SLO-Provider.String
getTitleText()
Returns title text displayed in the WizardPagevoid
setDescription(String description)
Sets the description of the slo.void
setName(String name)
Sets the name of the slo.void
setServiceLevelObjective(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective slo)
Sets the Service Level Objective in the SLO-Provider.
-
-
-
Constructor Detail
-
SloCreationWizardModel
public SloCreationWizardModel(SloProvider dataprovider, boolean isEditing)
Constructor- Parameters:
slo
- the service level objective to editisEditing
- indicates whether we are in edit mode or creation mode
-
-
Method Detail
-
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
public void setName(String name)
Sets the name of the slo.- Parameters:
name
- the new name of the slo
-
setDescription
public void setDescription(String description)
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
public String getName()
-
getDescription
public String getDescription()
-
getInfoText
public String 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
public String 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
-
-