Class DiscardAllElementsPriorToLowerBoundStrategy
java.lang.Object
org.palladiosimulator.experimentanalysis.DiscardAllElementsPriorToLowerBoundStrategy
- All Implemented Interfaces:
ISlidingWindowMoveOnStrategy
public final class DiscardAllElementsPriorToLowerBoundStrategy
extends Object
implements ISlidingWindowMoveOnStrategy
An implementation of
ISlidingWindowMoveOnStrategy
that discards all the measurements
which are prior to the new lower bound of the SlidingWindow
after it moved on. If all
measurements are within the new bounds of the window, this implementation does nothing. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustData
(Deque<org.palladiosimulator.measurementframework.MeasuringValue> currentData, javax.measure.Measure<Double, javax.measure.quantity.Duration> newLowerBound, javax.measure.Measure<Double, javax.measure.quantity.Duration> increment) This method specifies how the collected data (i.e., the measurements) are adjusted when the window moves forward.
-
Constructor Details
-
DiscardAllElementsPriorToLowerBoundStrategy
public DiscardAllElementsPriorToLowerBoundStrategy()
-
-
Method Details
-
adjustData
public void adjustData(Deque<org.palladiosimulator.measurementframework.MeasuringValue> currentData, javax.measure.Measure<Double, javax.measure.quantity.Duration> newLowerBound, javax.measure.Measure<Double, javax.measure.quantity.Duration> increment) Description copied from interface:ISlidingWindowMoveOnStrategy
This method specifies how the collected data (i.e., the measurements) are adjusted when the window moves forward. It is called by the associatedSlidingWindow
instance each time it has moved forward.
Note that the adjustment of the data has to be done in-place.- Specified by:
adjustData
in interfaceISlidingWindowMoveOnStrategy
- Parameters:
currentData
- ADeque
containing the window data (i.e., the collected measurements) at the moment it moved forward. The adjustment of the data has to be done in-place, i.e., this Deque has to be manipulated directly.newLowerBound
- A point in time (in seconds) denoting the new lower bound of the window.increment
- AMeasure
indicating by what the window moved forward.
-