Class 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.ServicelevelObjectiveFactory servicelevelObjectiveFactory  
      protected org.palladiosimulator.servicelevelobjective.ServicelevelObjectivePackage serviceLevelObjectivePackage  
    • Constructor Summary

      Constructors 
      Constructor Description
      SloEditor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      void setMeasurementSpecification​(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective serviceLevelObjective, org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpec)
      Sets the measurement specification of the ServiceLevelObjective
      void setSLODescription​(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, String newDescription)
      Sets the description of the ServiceLevelObjective
      void setSLOLowerThreshold​(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, org.palladiosimulator.servicelevelobjective.Threshold threshold)
      Sets the lower threshold of the ServiceLevelObjective
      void setSLOName​(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, String newName)
      Sets the name of the ServiceLevelObjective to the new name
      void setSLOUpperThreshold​(org.palladiosimulator.servicelevelobjective.ServiceLevelObjective servicelevelObjective, org.palladiosimulator.servicelevelobjective.Threshold threshold)
      Sets the upper threshold of the ServiceLevelObjective
    • Field Detail

      • serviceLevelObjectivePackage

        protected org.palladiosimulator.servicelevelobjective.ServicelevelObjectivePackage serviceLevelObjectivePackage
      • servicelevelObjectiveFactory

        protected org.palladiosimulator.servicelevelobjective.ServicelevelObjectiveFactory servicelevelObjectiveFactory
    • Constructor Detail

      • SloEditor

        public SloEditor()
    • 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 ServiceLevelObjective
        description - the description
        lowerThreshold - the lowerThreshold
        upperThreshold - the upperThreshold
        msp - 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 name
        newName - 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 description
        newDescription - 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 threshold
        threshold - 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 threshold
        threshold - 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 measurementSpecification
        msp - the new measurement specification