public final class DiscardAllElementsPriorToLowerBoundStrategy extends java.lang.Object implements ISlidingWindowMoveOnStrategy
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 and Description |
---|
DiscardAllElementsPriorToLowerBoundStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
adjustData(java.util.Deque<org.palladiosimulator.measurementframework.MeasuringValue> currentData,
javax.measure.Measure<java.lang.Double,javax.measure.quantity.Duration> newLowerBound,
javax.measure.Measure<java.lang.Double,javax.measure.quantity.Duration> increment)
This method specifies how the collected data (i.e., the measurements) are adjusted when the
window moves forward.
|
public DiscardAllElementsPriorToLowerBoundStrategy()
public void adjustData(java.util.Deque<org.palladiosimulator.measurementframework.MeasuringValue> currentData, javax.measure.Measure<java.lang.Double,javax.measure.quantity.Duration> newLowerBound, javax.measure.Measure<java.lang.Double,javax.measure.quantity.Duration> increment)
ISlidingWindowMoveOnStrategy
SlidingWindow
instance each time
it has moved forward.adjustData
in interface ISlidingWindowMoveOnStrategy
currentData
- A Deque
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
- A Measure
indicating by what the window moved forward.