Class SloMeasurementSpecSelectionWizardModel
- java.lang.Object
-
- org.palladiosimulator.measurementsui.wizardmodel.pages.SloMeasurementSpecSelectionWizardModel
-
- All Implemented Interfaces:
WizardModelSlo
public class SloMeasurementSpecSelectionWizardModel extends Object implements WizardModelSlo
WizardModel for the selecting a measurement specification for a Service Level Objective
-
-
Constructor Summary
Constructors Constructor Description SloMeasurementSpecSelectionWizardModel(SloProvider dataProvider, boolean isEditing)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canFinish()
This method returns true if the MeasurementSpec Selection Page contains all necessary information.String
getInfoText()
Returns info text displayed in the WizardPageorg.palladiosimulator.monitorrepository.MeasurementSpecification
getMeasurement()
This method retrieves the Measurement Specification from the current Slo.EList<org.palladiosimulator.monitorrepository.MeasurementSpecification>
getMeasurementSpecs(org.palladiosimulator.monitorrepository.Monitor monitor)
This method returns all Measurement Specifications of a Monitor.EList<org.palladiosimulator.monitorrepository.Monitor>
getMonitors()
This method returns all available Monitors.org.palladiosimulator.servicelevelobjective.ServiceLevelObjective
getSlo()
This method retrieves the current Slo from the Slo-ProviderString
getTitleText()
Returns title text displayed in the WizardPagevoid
setMeasurementSpecificationTmp(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpec)
This method sets the Measurement Specification temporary.
-
-
-
Constructor Detail
-
SloMeasurementSpecSelectionWizardModel
public SloMeasurementSpecSelectionWizardModel(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
-
canFinish
public boolean canFinish()
This method returns true if the MeasurementSpec Selection Page contains all necessary information.- Specified by:
canFinish
in interfaceWizardModelSlo
- Returns:
- true if the user has chosen a Measurement Specification
-
getSlo
public org.palladiosimulator.servicelevelobjective.ServiceLevelObjective getSlo()
This method retrieves the current Slo from the Slo-Provider- Returns:
- ServiceLevelObjective slo
-
getMonitors
public EList<org.palladiosimulator.monitorrepository.Monitor> getMonitors()
This method returns all available Monitors.- Returns:
- returns all available Monitors
-
getMeasurementSpecs
public EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> getMeasurementSpecs(org.palladiosimulator.monitorrepository.Monitor monitor)
This method returns all Measurement Specifications of a Monitor.- Parameters:
monitor
-- Returns:
-
setMeasurementSpecificationTmp
public void setMeasurementSpecificationTmp(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpec)
This method sets the Measurement Specification temporary. Avoids changing Measurement Specification if user cancels editing.- Parameters:
measurementSpec
-
-
getMeasurement
public org.palladiosimulator.monitorrepository.MeasurementSpecification getMeasurement()
This method retrieves the Measurement Specification from the current Slo.- Returns:
- returns the Measurement Specification currently set to the Slo.
-
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
-
-