Class SloEditor
- java.lang.Object
-
- org.palladiosimulator.measurementsui.datamanipulation.SloEditor
-
public class SloEditor extends Object
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
Fields Modifier and Type Field Description protected org.palladiosimulator.servicelevelobjective.ServicelevelObjectiveFactoryservicelevelObjectiveFactoryprotected org.palladiosimulator.servicelevelobjective.ServicelevelObjectivePackageserviceLevelObjectivePackage
-
Constructor Summary
Constructors Constructor Description SloEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.servicelevelobjective.ServiceLevelObjectivecreateServiceLevelObjective(String name, String description, org.palladiosimulator.servicelevelobjective.Threshold lowerthreshold, org.palladiosimulator.servicelevelobjective.Threshold upperThreshold, org.palladiosimulator.monitorrepository.MeasurementSpecification msp)Creates a new ServiceLevelObjective ObjectvoidsetMeasurementSpecification(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective serviceLevelObjective, org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpec)Sets the measurement specification of the ServiceLevelObjectivevoidsetSLODescription(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, String newDescription)Sets the description of the ServiceLevelObjectivevoidsetSLOLowerThreshold(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, org.palladiosimulator.servicelevelobjective.Threshold threshold)Sets the lower threshold of the ServiceLevelObjectivevoidsetSLOName(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, String newName)Sets the name of the ServiceLevelObjective to the new namevoidsetSLOUpperThreshold(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, org.palladiosimulator.servicelevelobjective.Threshold threshold)Sets the upper threshold of the ServiceLevelObjective
-
-
-
Method Detail
-
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
-
-