Class SloEditor
java.lang.Object
org.palladiosimulator.measurementsui.datamanipulation.SloEditor
Used for editing and creating Service Level Objective Objects
by calling methods from the ResourceEditor and the SLO-AddOn implementation.
Provides methods for the SLOWizardManager.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.palladiosimulator.servicelevelobjective.ServicelevelObjectiveFactory
protected org.palladiosimulator.servicelevelobjective.ServicelevelObjectivePackage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.palladiosimulator.servicelevelobjective.ServiceLevelObjective
createServiceLevelObjective
(String name, String description, org.palladiosimulator.servicelevelobjective.Threshold lowerthreshold, org.palladiosimulator.servicelevelobjective.Threshold upperThreshold, org.palladiosimulator.monitorrepository.MeasurementSpecification msp) Creates a new ServiceLevelObjective Objectvoid
setMeasurementSpecification
(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective serviceLevelObjective, org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpec) Sets the measurement specification of the ServiceLevelObjectivevoid
setSLODescription
(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, String newDescription) Sets the description of the ServiceLevelObjectivevoid
setSLOLowerThreshold
(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, org.palladiosimulator.servicelevelobjective.Threshold threshold) Sets the lower threshold of the ServiceLevelObjectivevoid
setSLOName
(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, String newName) Sets the name of the ServiceLevelObjective to the new namevoid
setSLOUpperThreshold
(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, org.palladiosimulator.servicelevelobjective.Threshold threshold) Sets the upper threshold of the ServiceLevelObjective
-
Field Details
-
serviceLevelObjectivePackage
protected org.palladiosimulator.servicelevelobjective.ServicelevelObjectivePackage serviceLevelObjectivePackage -
servicelevelObjectiveFactory
protected org.palladiosimulator.servicelevelobjective.ServicelevelObjectiveFactory servicelevelObjectiveFactory
-
-
Constructor Details
-
SloEditor
public SloEditor()
-
-
Method Details
-
createServiceLevelObjective
public org.palladiosimulator.servicelevelobjective.ServiceLevelObjective createServiceLevelObjective(String name, String description, org.palladiosimulator.servicelevelobjective.Threshold lowerthreshold, org.palladiosimulator.servicelevelobjective.Threshold upperThreshold, org.palladiosimulator.monitorrepository.MeasurementSpecification msp) Creates a new ServiceLevelObjective Object- Parameters:
name
- the name of the ServiceLevelObjectivedescription
- the descriptionlowerThreshold
- the lowerThresholdupperThreshold
- the upperThresholdmsp
- the measurement specification- Returns:
- returns the created ServiceLevelObjective
-
setSLOName
public void setSLOName(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, String newName) Sets the name of the ServiceLevelObjective to the new name- Parameters:
ServiceLevelObjective
- the slo to change the namenewName
- the new ServiceLevelObjective name
-
setSLODescription
public void setSLODescription(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, String newDescription) Sets the description of the ServiceLevelObjective- Parameters:
serviceLevelObjective
- the slo to change the descriptionnewDescription
- the new ServiceLevelObjective description
-
setSLOLowerThreshold
public void setSLOLowerThreshold(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, org.palladiosimulator.servicelevelobjective.Threshold threshold) Sets the lower threshold of the ServiceLevelObjective- Parameters:
serviceLevelObjective
- the slo to change the thresholdthreshold
- the new ServiceLevelObjective threshold
-
setSLOUpperThreshold
public void setSLOUpperThreshold(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, org.palladiosimulator.servicelevelobjective.Threshold threshold) Sets the upper threshold of the ServiceLevelObjective- Parameters:
serviceLevelObjective
- the slo to change the thresholdthreshold
- the new ServiceLevelObjective threshold
-
setMeasurementSpecification
public void setMeasurementSpecification(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective serviceLevelObjective, org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpec) Sets the measurement specification of the ServiceLevelObjective- Parameters:
ServiceLevelObjective
- the slo to change the measurementSpecificationmsp
- the new measurement specification
-