Class ProcessingTypeProvider
java.lang.Object
org.palladiosimulator.measurementsui.dataprovider.ProcessingTypeProvider
Provides the required methods to show and modify data in the 4th page.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assignProcessingTypeToMeasurementSpecification
(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpecification, String selectedProcessingType, boolean isEditing) Sets the PT to the selected Measurement Specification.getAProcessingType
(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpecification, String processingTypeProperty) returns the value of a selected PT attribute of a selected Measurement Specification.getProcessingTypeString
(org.palladiosimulator.monitorrepository.ProcessingType aProcessingType) Returns the correct name of a given ProcessingType.String[]
The five Processing types the wizard will support.provideProcessingTypeProperties
(String processingTypeString) Provides the properties for each Processing Type(PT) in String Form.void
setAProcessingTypeAttribute
(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpecification, String processingTypeProperty, Double value, boolean isEditing) Sets a single PT attribute.
-
Constructor Details
-
ProcessingTypeProvider
public ProcessingTypeProvider()
-
-
Method Details
-
provideBasicProcessingTypes
The five Processing types the wizard will support. Sadly PCM does not provide a class containing all Processing Types, meaning new Processing Types would need to be added manually.- Returns:
- a String Array containing the names of all supported Processing Types. Needed in this format for drop-down in 4th page.
-
provideProcessingTypeProperties
Provides the properties for each Processing Type(PT) in String Form.- Parameters:
processingTypeString
- The PT to provide the properties for.- Returns:
- String List of the property types.
-
assignProcessingTypeToMeasurementSpecification
public void assignProcessingTypeToMeasurementSpecification(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpecification, String selectedProcessingType, boolean isEditing) Sets the PT to the selected Measurement Specification. Uses EMF SetCommand during edit mode.- Parameters:
measurementSpecification
-selectedProcessingType
-isEditing
-
-
setAProcessingTypeAttribute
public void setAProcessingTypeAttribute(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpecification, String processingTypeProperty, Double value, boolean isEditing) Sets a single PT attribute.- Parameters:
measurementSpecification
-processingTypeProperty
-value
-isEditing
-
-
getAProcessingType
public Number getAProcessingType(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpecification, String processingTypeProperty) returns the value of a selected PT attribute of a selected Measurement Specification.- Parameters:
measurementSpecification
-processingTypeProperty
-- Returns:
- Either a double or int depending on the type of attribute.
-
getProcessingTypeString
public String getProcessingTypeString(org.palladiosimulator.monitorrepository.ProcessingType aProcessingType) Returns the correct name of a given ProcessingType.- Parameters:
aProcessingType
- the given ProcessingType- Returns:
- the correct name of a given ProcessingType
-