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 booleancanFinish()Returns true if this wizard page contains all necessary informationStringgetDescription()StringgetInfoText()Returns info text displayed in the WizardPageStringgetName()org.palladiosimulator.servicelevelobjective.ServiceLevelObjectivegetSlo()Gets the Service Level Objective from the SLO-Provider.StringgetTitleText()Returns title text displayed in the WizardPagevoidsetDescription(String description)Sets the description of the slo.voidsetName(String name)Sets the name of the slo.voidsetServiceLevelObjective(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:
canFinishin 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:WizardModelSloReturns info text displayed in the WizardPage- Specified by:
getInfoTextin interfaceWizardModelSlo- Returns:
- an info text based on the changes made in the model.
-
getTitleText
public String getTitleText()
Description copied from interface:WizardModelSloReturns title text displayed in the WizardPage- Specified by:
getTitleTextin interfaceWizardModelSlo- Returns:
- the title of the wizard page
-
-