Class ResourceEditorImpl
java.lang.Object
org.palladiosimulator.measurementsui.datamanipulation.ResourceEditorImpl
- All Implemented Interfaces:
ResourceEditor
Class for editing resources without use of parsley
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMeasurementSpecificationsToMonitor(EObject monitor, EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> mSpecList) voidaddMeasurementSpecificationToMonitor(EObject monitor, org.palladiosimulator.monitorrepository.MeasurementSpecification mspec) Appends a new MeasurementSpecification to the list of MeasurementSpecifications for the monitor.voidaddMeasuringPointToRepository(EObject mpRep, EObject mp) alternative method to add measuring points, if it is not possible with parsley.voidaddMonitorToRepository(EObject monitorRepository, EObject monitor) Appends a Monitor to a Monitor Repository through AddCommands.voidaddServiceLevelObjectiveToRepository(EObject sloRep, EObject slo) Sets the name of the Service Level Objective using EMF Set Command.voidchangeMonitorActive(EObject monitor, boolean currentBool) Changes the current status of "activated" to its negative through EMF Commands.voidchangeTriggersSelfAdapting(org.palladiosimulator.monitorrepository.MeasurementSpecification mspec) Changes current bool triggers self adapting to its negative through EMF Commands.voiddeleteMultipleResources(EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> objsToDelete) Delete a List of MeasurementSpecifications, specifically for deleting mspecs out of the wizard monitor in edit mode in the 3rd page.voiddeleteResource(EObject objToDelete) Delete the passed EObject.static ResourceEditorImplReturns the instance of the ResourceEditorImplvoidsetAProcessingTypeAttribute(EObject processingType, String processingTypeAttributeName, Object value) Sets the PT attribute using EMF Set Command.voidsetMeasurementSpecificationToServiceLevelObjective(EObject slo, EObject measurementSpec) Binds a Measurement Specification the Service Level Objective using EMF Set Command.voidsetMeasuringPointToMonitor(EObject monitor, EObject mp) Binds a Measuring Point to a Monitor using EMF Command.voidsetMeasuringPointToMonitor(EObject monitor, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint mp) alternative method to set measuring points, if it is not possible with parsley.voidsetMetricDescription(EObject aMeasurementSpecification, org.palladiosimulator.metricspec.MetricDescription aMetricDescription) Sets MetricDescription for a MeasurementSpecification using EMF Commands.voidsetProcessingType(EObject measurementSpecification, EObject processingType) Sets the Processing Type for a Measurement Specification using EMF Set Command.voidsetResourceName(EObject resource, String newName) Changes the EntityName of a resource through EMF Commands.voidsetServiceLevelObjectiveDescription(EObject slo, String description) Sets the description of the Service Level Objective using EMF Set Command.voidsetServiceLevelObjectiveName(EObject slo, String name) Sets the name of the Service Level Objective using EMF Set Command.
-
Method Details
-
getInstance
Returns the instance of the ResourceEditorImpl- Returns:
- instance of the ResourceEditorImpl
-
setResourceName
Description copied from interface:ResourceEditorChanges the EntityName of a resource through EMF Commands.- Specified by:
setResourceNamein interfaceResourceEditor- Parameters:
resource- The resource to change the namenewName- The new name of the resource
-
changeMonitorActive
Description copied from interface:ResourceEditorChanges the current status of "activated" to its negative through EMF Commands.- Specified by:
changeMonitorActivein interfaceResourceEditor- Parameters:
monitor- the monitor to changecurrentBool- the value to change
-
changeTriggersSelfAdapting
public void changeTriggersSelfAdapting(org.palladiosimulator.monitorrepository.MeasurementSpecification mspec) Description copied from interface:ResourceEditorChanges current bool triggers self adapting to its negative through EMF Commands.- Specified by:
changeTriggersSelfAdaptingin interfaceResourceEditor- Parameters:
mspec- the measurement specification to change
-
setMeasuringPointToMonitor
public void setMeasuringPointToMonitor(EObject monitor, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint mp) Description copied from interface:ResourceEditoralternative method to set measuring points, if it is not possible with parsley. Current MP is overwritten through new MP.- Specified by:
setMeasuringPointToMonitorin interfaceResourceEditor
-
setMeasuringPointToMonitor
Description copied from interface:ResourceEditorBinds a Measuring Point to a Monitor using EMF Command.- Specified by:
setMeasuringPointToMonitorin interfaceResourceEditor
-
addMeasuringPointToRepository
Description copied from interface:ResourceEditoralternative method to add measuring points, if it is not possible with parsley. New MP is appended to MPRepository.- Specified by:
addMeasuringPointToRepositoryin interfaceResourceEditor
-
addServiceLevelObjectiveToRepository
Description copied from interface:ResourceEditorSets the name of the Service Level Objective using EMF Set Command.- Specified by:
addServiceLevelObjectiveToRepositoryin interfaceResourceEditor
-
deleteResource
Description copied from interface:ResourceEditorDelete the passed EObject.- Specified by:
deleteResourcein interfaceResourceEditor
-
deleteMultipleResources
public void deleteMultipleResources(EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> objsToDelete) Description copied from interface:ResourceEditorDelete a List of MeasurementSpecifications, specifically for deleting mspecs out of the wizard monitor in edit mode in the 3rd page.- Specified by:
deleteMultipleResourcesin interfaceResourceEditor
-
setMetricDescription
public void setMetricDescription(EObject aMeasurementSpecification, org.palladiosimulator.metricspec.MetricDescription aMetricDescription) Description copied from interface:ResourceEditorSets MetricDescription for a MeasurementSpecification using EMF Commands.- Specified by:
setMetricDescriptionin interfaceResourceEditor
-
addMeasurementSpecificationToMonitor
public void addMeasurementSpecificationToMonitor(EObject monitor, org.palladiosimulator.monitorrepository.MeasurementSpecification mspec) Description copied from interface:ResourceEditorAppends a new MeasurementSpecification to the list of MeasurementSpecifications for the monitor.- Specified by:
addMeasurementSpecificationToMonitorin interfaceResourceEditor- Parameters:
monitor- The Monitor to which the new specification is added
-
addMeasurementSpecificationsToMonitor
public void addMeasurementSpecificationsToMonitor(EObject monitor, EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> mSpecList) - Specified by:
addMeasurementSpecificationsToMonitorin interfaceResourceEditor
-
addMonitorToRepository
Description copied from interface:ResourceEditorAppends a Monitor to a Monitor Repository through AddCommands.- Specified by:
addMonitorToRepositoryin interfaceResourceEditor
-
setProcessingType
Description copied from interface:ResourceEditorSets the Processing Type for a Measurement Specification using EMF Set Command. Used in 4th page of Wizard.- Specified by:
setProcessingTypein interfaceResourceEditor
-
setAProcessingTypeAttribute
public void setAProcessingTypeAttribute(EObject processingType, String processingTypeAttributeName, Object value) Description copied from interface:ResourceEditorSets the PT attribute using EMF Set Command. Value should be either double or int, depending on the attribute.- Specified by:
setAProcessingTypeAttributein interfaceResourceEditorprocessingTypeAttributeName- The String name of the PT Attribute that we want to set
-
setServiceLevelObjectiveName
Description copied from interface:ResourceEditorSets the name of the Service Level Objective using EMF Set Command.- Specified by:
setServiceLevelObjectiveNamein interfaceResourceEditor
-
setServiceLevelObjectiveDescription
Description copied from interface:ResourceEditorSets the description of the Service Level Objective using EMF Set Command.- Specified by:
setServiceLevelObjectiveDescriptionin interfaceResourceEditor
-
setMeasurementSpecificationToServiceLevelObjective
public void setMeasurementSpecificationToServiceLevelObjective(EObject slo, EObject measurementSpec) Description copied from interface:ResourceEditorBinds a Measurement Specification the Service Level Objective using EMF Set Command.- Specified by:
setMeasurementSpecificationToServiceLevelObjectivein interfaceResourceEditor
-