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 TypeMethodDescriptionvoid
addMeasurementSpecificationsToMonitor
(EObject monitor, EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> mSpecList) void
addMeasurementSpecificationToMonitor
(EObject monitor, org.palladiosimulator.monitorrepository.MeasurementSpecification mspec) Appends a new MeasurementSpecification to the list of MeasurementSpecifications for the monitor.void
addMeasuringPointToRepository
(EObject mpRep, EObject mp) alternative method to add measuring points, if it is not possible with parsley.void
addMonitorToRepository
(EObject monitorRepository, EObject monitor) Appends a Monitor to a Monitor Repository through AddCommands.void
addServiceLevelObjectiveToRepository
(EObject sloRep, EObject slo) Sets the name of the Service Level Objective using EMF Set Command.void
changeMonitorActive
(EObject monitor, boolean currentBool) Changes the current status of "activated" to its negative through EMF Commands.void
changeTriggersSelfAdapting
(org.palladiosimulator.monitorrepository.MeasurementSpecification mspec) Changes current bool triggers self adapting to its negative through EMF Commands.void
deleteMultipleResources
(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.void
deleteResource
(EObject objToDelete) Delete the passed EObject.static ResourceEditorImpl
Returns the instance of the ResourceEditorImplvoid
setAProcessingTypeAttribute
(EObject processingType, String processingTypeAttributeName, Object value) Sets the PT attribute using EMF Set Command.void
setMeasurementSpecificationToServiceLevelObjective
(EObject slo, EObject measurementSpec) Binds a Measurement Specification the Service Level Objective using EMF Set Command.void
setMeasuringPointToMonitor
(EObject monitor, EObject mp) Binds a Measuring Point to a Monitor using EMF Command.void
setMeasuringPointToMonitor
(EObject monitor, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint mp) alternative method to set measuring points, if it is not possible with parsley.void
setMetricDescription
(EObject aMeasurementSpecification, org.palladiosimulator.metricspec.MetricDescription aMetricDescription) Sets MetricDescription for a MeasurementSpecification using EMF Commands.void
setProcessingType
(EObject measurementSpecification, EObject processingType) Sets the Processing Type for a Measurement Specification using EMF Set Command.void
setResourceName
(EObject resource, String newName) Changes the EntityName of a resource through EMF Commands.void
setServiceLevelObjectiveDescription
(EObject slo, String description) Sets the description of the Service Level Objective using EMF Set Command.void
setServiceLevelObjectiveName
(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:ResourceEditor
Changes the EntityName of a resource through EMF Commands.- Specified by:
setResourceName
in interfaceResourceEditor
- Parameters:
resource
- The resource to change the namenewName
- The new name of the resource
-
changeMonitorActive
Description copied from interface:ResourceEditor
Changes the current status of "activated" to its negative through EMF Commands.- Specified by:
changeMonitorActive
in interfaceResourceEditor
- Parameters:
monitor
- the monitor to changecurrentBool
- the value to change
-
changeTriggersSelfAdapting
public void changeTriggersSelfAdapting(org.palladiosimulator.monitorrepository.MeasurementSpecification mspec) Description copied from interface:ResourceEditor
Changes current bool triggers self adapting to its negative through EMF Commands.- Specified by:
changeTriggersSelfAdapting
in 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:ResourceEditor
alternative method to set measuring points, if it is not possible with parsley. Current MP is overwritten through new MP.- Specified by:
setMeasuringPointToMonitor
in interfaceResourceEditor
-
setMeasuringPointToMonitor
Description copied from interface:ResourceEditor
Binds a Measuring Point to a Monitor using EMF Command.- Specified by:
setMeasuringPointToMonitor
in interfaceResourceEditor
-
addMeasuringPointToRepository
Description copied from interface:ResourceEditor
alternative method to add measuring points, if it is not possible with parsley. New MP is appended to MPRepository.- Specified by:
addMeasuringPointToRepository
in interfaceResourceEditor
-
addServiceLevelObjectiveToRepository
Description copied from interface:ResourceEditor
Sets the name of the Service Level Objective using EMF Set Command.- Specified by:
addServiceLevelObjectiveToRepository
in interfaceResourceEditor
-
deleteResource
Description copied from interface:ResourceEditor
Delete the passed EObject.- Specified by:
deleteResource
in interfaceResourceEditor
-
deleteMultipleResources
public void deleteMultipleResources(EList<org.palladiosimulator.monitorrepository.MeasurementSpecification> objsToDelete) Description copied from interface:ResourceEditor
Delete a List of MeasurementSpecifications, specifically for deleting mspecs out of the wizard monitor in edit mode in the 3rd page.- Specified by:
deleteMultipleResources
in interfaceResourceEditor
-
setMetricDescription
public void setMetricDescription(EObject aMeasurementSpecification, org.palladiosimulator.metricspec.MetricDescription aMetricDescription) Description copied from interface:ResourceEditor
Sets MetricDescription for a MeasurementSpecification using EMF Commands.- Specified by:
setMetricDescription
in interfaceResourceEditor
-
addMeasurementSpecificationToMonitor
public void addMeasurementSpecificationToMonitor(EObject monitor, org.palladiosimulator.monitorrepository.MeasurementSpecification mspec) Description copied from interface:ResourceEditor
Appends a new MeasurementSpecification to the list of MeasurementSpecifications for the monitor.- Specified by:
addMeasurementSpecificationToMonitor
in 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:
addMeasurementSpecificationsToMonitor
in interfaceResourceEditor
-
addMonitorToRepository
Description copied from interface:ResourceEditor
Appends a Monitor to a Monitor Repository through AddCommands.- Specified by:
addMonitorToRepository
in interfaceResourceEditor
-
setProcessingType
Description copied from interface:ResourceEditor
Sets the Processing Type for a Measurement Specification using EMF Set Command. Used in 4th page of Wizard.- Specified by:
setProcessingType
in interfaceResourceEditor
-
setAProcessingTypeAttribute
public void setAProcessingTypeAttribute(EObject processingType, String processingTypeAttributeName, Object value) Description copied from interface:ResourceEditor
Sets the PT attribute using EMF Set Command. Value should be either double or int, depending on the attribute.- Specified by:
setAProcessingTypeAttribute
in interfaceResourceEditor
processingTypeAttributeName
- The String name of the PT Attribute that we want to set
-
setServiceLevelObjectiveName
Description copied from interface:ResourceEditor
Sets the name of the Service Level Objective using EMF Set Command.- Specified by:
setServiceLevelObjectiveName
in interfaceResourceEditor
-
setServiceLevelObjectiveDescription
Description copied from interface:ResourceEditor
Sets the description of the Service Level Objective using EMF Set Command.- Specified by:
setServiceLevelObjectiveDescription
in interfaceResourceEditor
-
setMeasurementSpecificationToServiceLevelObjective
public void setMeasurementSpecificationToServiceLevelObjective(EObject slo, EObject measurementSpec) Description copied from interface:ResourceEditor
Binds a Measurement Specification the Service Level Objective using EMF Set Command.- Specified by:
setMeasurementSpecificationToServiceLevelObjective
in interfaceResourceEditor
-