Class AggregatorHelper

java.lang.Object
org.palladiosimulator.simulizar.slidingwindow.utils.AggregatorHelper

public final class AggregatorHelper extends Object
  • 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 a RuntimeMeasurementModel.
      This method does nothing if the associated Monitor is not active, or the measurements do not trigger self-adaptations.
      Parameters:
      measurementSpecification - The MeasurementSpecification which specifies the aggregation.
      calculator - The Calculator which produces the measurements for the aggregation.
      runtimeMeasurementModel - The RuntimeMeasurementModel to which the aggregated values are forwarded.
      model - The SimuComModel of the current simulation run.
      Throws:
      NullPointerException - In case any argument is null.
      IllegalArgumentException - If the given measurement specification does not specify a time-driven aggregation, or if the metric of the measurements is not a NumericalBaseMetricDescription.
      See Also:
      • MeasurementSpecification.isTriggersSelfAdaptations()
      • Monitor.isActivated()