Class AggregatorHelper
- java.lang.Object
-
- org.palladiosimulator.simulizar.slidingwindow.utils.AggregatorHelper
-
public final class AggregatorHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsetupRuntimeAggregatorForMeasurementSpecification(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 associatedMonitoris not active, or the measurements do not trigger self-adaptations.
-
-
-
Method Detail
-
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 associatedMonitoris not active, or the measurements do not trigger self-adaptations.- Parameters:
measurementSpecification- TheMeasurementSpecificationwhich specifies the aggregation.calculator- TheCalculatorwhich produces the measurements for the aggregation.runtimeMeasurementModel- TheRuntimeMeasurementModelto which the aggregated values are forwarded.model- TheSimuComModelof 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()
-
-