Class UtilizationFilterMeasureProvider
- java.lang.Object
-
- de.fzi.power.interpreter.measureprovider.ExtendedMeasureProvider
-
- de.fzi.power.interpreter.measureprovider.AbstractFilterMeasureProvider
-
- de.fzi.power.interpreter.measureprovider.utilization.UtilizationFilterMeasureProvider
-
- All Implemented Interfaces:
IAdaptable
,org.palladiosimulator.edp2.datastream.configurable.IPropertyConfigurable
public class UtilizationFilterMeasureProvider extends AbstractFilterMeasureProvider
Extended measure provider which is able to calculate measures for the metricMetricDescriptionConstants
.UTILIZATION_OF_ACTIVE_RESOURCE_TUPLE based onMetricDescriptionConstants
.STATE_OF_ACTIVE_RESOURCE_METRIC_TUPLE orMetricDescriptionConstants
.UTILIZATION_OF_ACTIVE_RESOURCE_TUPLE (for multi-core resources) measurements.
-
-
Constructor Summary
Constructors Constructor Description UtilizationFilterMeasureProvider()
Creates a new UtilizationFilterMeasureProvider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,org.palladiosimulator.metricspec.MetricDescription>
getAllowedSourceMetrics()
To be implemented by the subclasses: Each element specifies an allowed input metric.protected org.palladiosimulator.metricspec.MetricDescription
getTargetMetric()
To be implemented by subclasses in order to specify the supported output metric.-
Methods inherited from class de.fzi.power.interpreter.measureprovider.AbstractFilterMeasureProvider
getAdapter, getDataSource, getDefaultConfiguration, getKeys, getProperties, getPropertyType, getSourceMetricIds, getSourceMetrics, getTargetMetrics, isPropertyNotSet, setProperties, unsetProperty
-
Methods inherited from class de.fzi.power.interpreter.measureprovider.ExtendedMeasureProvider
canProvideMetric
-
-
-
-
Method Detail
-
getAllowedSourceMetrics
protected Map<String,org.palladiosimulator.metricspec.MetricDescription> getAllowedSourceMetrics()
Description copied from class:AbstractFilterMeasureProvider
To be implemented by the subclasses: Each element specifies an allowed input metric.- Specified by:
getAllowedSourceMetrics
in classAbstractFilterMeasureProvider
- Returns:
- A collection of the different supported input metrics, mapped by their corresponding
ids.
For each contained metric it should hold that:
adapter.canAccept(dataSource) == true <=> this.getSourceMetrics().contains(dataSource.getMetricDescription())
, whereadapter
is theAbstractFilter
associated with this instance.
-
getTargetMetric
protected org.palladiosimulator.metricspec.MetricDescription getTargetMetric()
Description copied from class:AbstractFilterMeasureProvider
To be implemented by subclasses in order to specify the supported output metric.- Specified by:
getTargetMetric
in classAbstractFilterMeasureProvider
- Returns:
- A
MetricDescription
denoting the output metric.
-
-