public final class EvaluationScope extends AbstractEvaluationScope
MetricDescriptionConstants.STATE_OF_ACTIVE_RESOURCE_METRIC_TUPLE on resources is
translated into a set of discrete evaluations on the utilization.| Modifier and Type | Method and Description |
|---|---|
static EvaluationScope |
createScope(Iterable<org.palladiosimulator.edp2.datastream.IDataSource> experimentMeasurements,
Collection<ExtendedMeasureProvider> extendedMeasureProviders)
Creates an evaluation scope for which the energy consumption of a software system is
evaluated.
|
void |
reset()
Resets the context to its initial state.
|
void |
setResourceMetricsToEvaluate(Map<org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification,Set<org.palladiosimulator.metricspec.MetricDescription>> metricsMap)
Sets for each
ProcessingResourceSpecification which metrics are supposed to be
evaluated. |
getCurrentPointInTime, getMeasurements, getMeasurementsForProcessingResource, hasNext, iterator, nextequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static EvaluationScope createScope(Iterable<org.palladiosimulator.edp2.datastream.IDataSource> experimentMeasurements, Collection<ExtendedMeasureProvider> extendedMeasureProviders)
experimentMeasures.experimentMeasurements - set of measurement sources each collected on an active resource within the system.extendedMeasureProviders - collection of extended measurement providers, allowing to derive one metric from
another (e.g. MetricDescriptionConstants.UTILIZATION_TUPLE measurements
from MetricDescriptionConstants.STATE_OF_ACTIVE_RESOURCE_TUPLE
measurements)NullPointerException - In case either of the arguments is null.public void reset()
reset in class AbstractEvaluationScopeAbstractEvaluationScope.next()public void setResourceMetricsToEvaluate(Map<org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification,Set<org.palladiosimulator.metricspec.MetricDescription>> metricsMap)
AbstractEvaluationScopeProcessingResourceSpecification which metrics are supposed to be
evaluated. The method is to be provided by implementing subclasses.resourceMeasurements used to when
iterating the scope.
If for a certain ProcessingResourceSpecification and MetricDescription there
are no measurements available or there is no way to create the measurements from the
available data, an IllegalArgumentException is thrown.setResourceMetricsToEvaluate in class AbstractEvaluationScopemetricsMap - the Map linking ProcessingResourceSpecifications to the metrics needed by
the AbstractResourcePowerModelCalculator in use.