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.SlidingWindowAggregator
Specialization of theSlidingWindowAggregator
which 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 theSlidingWindowStatisticalCharacterizationAggregator
class with the given parameters.SlidingWindowStatisticalCharacterizationAggregator(org.palladiosimulator.monitorrepository.statisticalcharacterization.StatisticalCharacterizationAggregator aggregator)
Initializes a new instance of theSlidingWindowStatisticalCharacterizationAggregator
class with the given parameter.SlidingWindowStatisticalCharacterizationAggregator(org.palladiosimulator.recorderframework.IRecorder recorderToWriteInto, org.palladiosimulator.monitorrepository.statisticalcharacterization.StatisticalCharacterizationAggregator aggregator)
Initializes a new instance of theSlidingWindowStatisticalCharacterizationAggregator
class with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.metricspec.NumericalBaseMetricDescription
getExpectedWindowDataMetric()
protected 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)
-
-
-
Constructor Detail
-
SlidingWindowStatisticalCharacterizationAggregator
public SlidingWindowStatisticalCharacterizationAggregator(org.palladiosimulator.monitorrepository.statisticalcharacterization.StatisticalCharacterizationAggregator aggregator)
Initializes a new instance of theSlidingWindowStatisticalCharacterizationAggregator
class with the given parameter.- Parameters:
aggregator
- TheStatisticalCharacterizationAggregator
that 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 theSlidingWindowStatisticalCharacterizationAggregator
class with the given parameters.- Parameters:
recorderToWriteInto
- AnIRecorder
implementation to write the aggregated data into.aggregator
- TheStatisticalCharacterizationAggregator
that 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 theSlidingWindowStatisticalCharacterizationAggregator
class with the given parameters.- Parameters:
recordersToWriteInto
- A Collection ofIRecorder
implementations to write the aggregated data into.aggregator
- TheStatisticalCharacterizationAggregator
that 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
NumericalBaseMetricDescription
indicating 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:
processWindowData
in classorg.palladiosimulator.experimentanalysis.windowaggregators.SlidingWindowAggregator
-
-