Class SloMeasurementSpecSelectionWizardModel
java.lang.Object
org.palladiosimulator.measurementsui.wizardmodel.pages.SloMeasurementSpecSelectionWizardModel
- All Implemented Interfaces:
WizardModelSlo
WizardModel for the selecting a measurement specification for a Service Level Objective
-
Constructor Summary
ConstructorDescriptionSloMeasurementSpecSelectionWizardModel
(SloProvider dataProvider, boolean isEditing) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method returns true if the MeasurementSpec Selection Page contains all necessary information.Returns info text displayed in the WizardPageorg.palladiosimulator.monitorrepository.MeasurementSpecification
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>
This method returns all available Monitors.org.palladiosimulator.servicelevelobjective.ServiceLevelObjective
getSlo()
This method retrieves the current Slo from the Slo-ProviderReturns title text displayed in the WizardPagevoid
setMeasurementSpecificationTmp
(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpec) This method sets the Measurement Specification temporary.
-
Constructor Details
-
SloMeasurementSpecSelectionWizardModel
Constructor- Parameters:
slo
- the service level objective to editisEditing
- indicates whether we are in edit mode or creation mode
-
-
Method Details
-
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
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
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
-