public class LastValueWindow extends AbstractDataWindow
Constructor and Description |
---|
LastValueWindow(long start,
long end) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(HistoricalValue value)
Adds a value to the window.
|
void |
finalize(HistoricalValue trailingValue)
Provides the window with the value that comes next, outside of the window, in order to finalize calculations.
|
HistoricalValue |
getEntryValue()
Returns the edge value of the window, which will be used for interpolation from the previous value.
|
HistoricalValue |
getExitValue()
Returns the "exit" value of this window.
|
HistoricalValue |
getValue(int level)
Returns the value for the specified "level" of the window.
|
boolean |
hasMore(int level) |
void |
initialize(HistoricalValue entryValue)
Provides the window with the previous window's value.
|
getEndTime, getStartTime
public boolean hasMore(int level)
public HistoricalValue getValue(int level)
DataWindow
public HistoricalValue getEntryValue()
DataWindow
public HistoricalValue getExitValue()
DataWindow
public void initialize(HistoricalValue entryValue)
DataWindow
public void finalize(HistoricalValue trailingValue)
DataWindow
public void addValue(HistoricalValue value)
DataWindow