Class AggregatorHelper
java.lang.Object
org.palladiosimulator.simulizar.slidingwindow.utils.AggregatorHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setupRuntimeAggregatorForMeasurementSpecification
(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpecification, org.palladiosimulator.probeframework.calculator.Calculator calculator, RuntimeMeasurementModel runtimeMeasurementModel, de.uka.ipd.sdq.simucomframework.model.SimuComModel model) Initializes sliding window based aggregation (i.e.,TimeDrivenAggregation
) of measurements and the propagation of the aggregated values to aRuntimeMeasurementModel
.
This method does nothing if the associatedMonitor
is not active, or the measurements do not trigger self-adaptations.
-
Method Details
-
setupRuntimeAggregatorForMeasurementSpecification
public static void setupRuntimeAggregatorForMeasurementSpecification(org.palladiosimulator.monitorrepository.MeasurementSpecification measurementSpecification, org.palladiosimulator.probeframework.calculator.Calculator calculator, RuntimeMeasurementModel runtimeMeasurementModel, de.uka.ipd.sdq.simucomframework.model.SimuComModel model) Initializes sliding window based aggregation (i.e.,TimeDrivenAggregation
) of measurements and the propagation of the aggregated values to aRuntimeMeasurementModel
.
This method does nothing if the associatedMonitor
is not active, or the measurements do not trigger self-adaptations.- Parameters:
measurementSpecification
- TheMeasurementSpecification
which specifies the aggregation.calculator
- TheCalculator
which produces the measurements for the aggregation.runtimeMeasurementModel
- TheRuntimeMeasurementModel
to which the aggregated values are forwarded.model
- TheSimuComModel
of the current simulation run.- Throws:
NullPointerException
- In case any argument isnull
.IllegalArgumentException
- If the given measurement specification does not specify a time-driven aggregation, or if the metric of the measurements is not aNumericalBaseMetricDescription
.- See Also:
-
MeasurementSpecification.isTriggersSelfAdaptations()
Monitor.isActivated()
-