Class SlidingWindowStatisticalCharacterizationAggregator
- java.lang.Object
-
- org.palladiosimulator.experimentanalysis.windowaggregators.SlidingWindowAggregator
-
- org.palladiosimulator.simulizar.slidingwindow.aggregators.SlidingWindowStatisticalCharacterizationAggregator
-
- All Implemented Interfaces:
org.palladiosimulator.experimentanalysis.ISlidingWindowListener
public class SlidingWindowStatisticalCharacterizationAggregator extends org.palladiosimulator.experimentanalysis.windowaggregators.SlidingWindowAggregatorSpecialization of theSlidingWindowAggregatorwhich is devoted to aggregate the measurements collected by a sliding window (usually at simulation-time) in a statistical manner.- See Also:
StatisticalCharacterization
-
-
Constructor Summary
Constructors Constructor Description SlidingWindowStatisticalCharacterizationAggregator(Collection<org.palladiosimulator.recorderframework.IRecorder> recordersToWriteInto, org.palladiosimulator.monitorrepository.statisticalcharacterization.StatisticalCharacterizationAggregator aggregator)Initializes a new instance of theSlidingWindowStatisticalCharacterizationAggregatorclass with the given parameters.SlidingWindowStatisticalCharacterizationAggregator(org.palladiosimulator.monitorrepository.statisticalcharacterization.StatisticalCharacterizationAggregator aggregator)Initializes a new instance of theSlidingWindowStatisticalCharacterizationAggregatorclass with the given parameter.SlidingWindowStatisticalCharacterizationAggregator(org.palladiosimulator.recorderframework.IRecorder recorderToWriteInto, org.palladiosimulator.monitorrepository.statisticalcharacterization.StatisticalCharacterizationAggregator aggregator)Initializes a new instance of theSlidingWindowStatisticalCharacterizationAggregatorclass with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.metricspec.NumericalBaseMetricDescriptiongetExpectedWindowDataMetric()protected org.palladiosimulator.measurementframework.MeasuringValueprocessWindowData(Iterable<org.palladiosimulator.measurementframework.MeasuringValue> windowData, javax.measure.Measure<Double,javax.measure.quantity.Duration> windowLeftBound, javax.measure.Measure<Double,javax.measure.quantity.Duration> windowLength)
-
-
-
Constructor Detail
-
SlidingWindowStatisticalCharacterizationAggregator
public SlidingWindowStatisticalCharacterizationAggregator(org.palladiosimulator.monitorrepository.statisticalcharacterization.StatisticalCharacterizationAggregator aggregator)
Initializes a new instance of theSlidingWindowStatisticalCharacterizationAggregatorclass with the given parameter.- Parameters:
aggregator- TheStatisticalCharacterizationAggregatorthat shall be used for aggregation of the collected window data.- Throws:
NullPointerException- In caseaggregator == null.
-
SlidingWindowStatisticalCharacterizationAggregator
public SlidingWindowStatisticalCharacterizationAggregator(org.palladiosimulator.recorderframework.IRecorder recorderToWriteInto, org.palladiosimulator.monitorrepository.statisticalcharacterization.StatisticalCharacterizationAggregator aggregator)Initializes a new instance of theSlidingWindowStatisticalCharacterizationAggregatorclass with the given parameters.- Parameters:
recorderToWriteInto- AnIRecorderimplementation to write the aggregated data into.aggregator- TheStatisticalCharacterizationAggregatorthat shall be used for aggregation of the collected window data.- Throws:
NullPointerException- In caseaggregator == null || recorderToWriteInto == null.
-
SlidingWindowStatisticalCharacterizationAggregator
public SlidingWindowStatisticalCharacterizationAggregator(Collection<org.palladiosimulator.recorderframework.IRecorder> recordersToWriteInto, org.palladiosimulator.monitorrepository.statisticalcharacterization.StatisticalCharacterizationAggregator aggregator)
Initializes a new instance of theSlidingWindowStatisticalCharacterizationAggregatorclass with the given parameters.- Parameters:
recordersToWriteInto- A Collection ofIRecorderimplementations to write the aggregated data into.aggregator- TheStatisticalCharacterizationAggregatorthat shall be used for aggregation of the collected window data.- Throws:
NullPointerException- In caseaggregator == null || recordersToWriteInto == null.IllegalArgumentException- In case the passed recorder collection is empty.
-
-
Method Detail
-
getExpectedWindowDataMetric
public final org.palladiosimulator.metricspec.NumericalBaseMetricDescription getExpectedWindowDataMetric()
- Returns:
- A
NumericalBaseMetricDescriptionindicating the type of measurements this aggregator can process. - See Also:
StatisticalCharacterizationAggregator.getDataMetric()
-
processWindowData
protected final org.palladiosimulator.measurementframework.MeasuringValue processWindowData(Iterable<org.palladiosimulator.measurementframework.MeasuringValue> windowData, javax.measure.Measure<Double,javax.measure.quantity.Duration> windowLeftBound, javax.measure.Measure<Double,javax.measure.quantity.Duration> windowLength)
- Specified by:
processWindowDatain classorg.palladiosimulator.experimentanalysis.windowaggregators.SlidingWindowAggregator
-
-