public abstract class AbstractEvaluationScope extends Object implements Iterable<Map<org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification,Map<org.palladiosimulator.metricspec.MetricDescription,org.palladiosimulator.measurementframework.MeasuringValue>>>
| Modifier and Type | Method and Description |
|---|---|
javax.measure.Measure<Double,javax.measure.quantity.Duration> |
getCurrentPointInTime() |
Collection<org.palladiosimulator.measurementframework.MeasuringValue> |
getMeasurements(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification processingResourceSpecification)
Gets the current set of measurements that are evaluated for a specific resource.
|
Iterator<org.palladiosimulator.measurementframework.MeasuringValue> |
getMeasurementsForProcessingResource(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification processingResourceSpecification,
org.palladiosimulator.metricspec.MetricDescription metric)
This methods provides access to all the
MeasuringValues of a certain
ProcessingResourceSpecification for a certain MetricDescription. |
boolean |
hasNext()
Return
true if the evaluation scope can move forward in a timely fashion. |
EvaluationScopeIterator |
iterator() |
void |
next()
Moves on to the next set of context elements.
|
void |
reset()
Resets the scope to its initial state.
In particular, the currently available set of measurements is discarded. |
abstract 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. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic abstract void setResourceMetricsToEvaluate(Map<org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification,Set<org.palladiosimulator.metricspec.MetricDescription>> metricsMap)
ProcessingResourceSpecification 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.metricsMap - the Map linking ProcessingResourceSpecifications to the metrics needed by
the AbstractResourcePowerModelCalculator in use.public void reset()
next()public final boolean hasNext()
true if the evaluation scope can move forward in a timely fashion. That is
basically the case if there is at least one datastream that contains additional measurements.public final void next()
reset()public javax.measure.Measure<Double,javax.measure.quantity.Duration> getCurrentPointInTime()
public final Iterator<org.palladiosimulator.measurementframework.MeasuringValue> getMeasurementsForProcessingResource(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification processingResourceSpecification, org.palladiosimulator.metricspec.MetricDescription metric)
MeasuringValues of a certain
ProcessingResourceSpecification for a certain MetricDescription.processingResourceSpecification - The ProcessingResourceSpecification to retrieve the measurements for.metric - The MetricDescription which characterizes the measurements to collect.Iterator that contains all the measurements this scope evaluated for the
given processing resource. If no measurements are available for the resource or for
the specified metric, the method returns an empty iterator.public final Collection<org.palladiosimulator.measurementframework.MeasuringValue> getMeasurements(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification processingResourceSpecification)
processingResourceSpecification - The resource for which the utilization is retrieved.public EvaluationScopeIterator iterator()