Class MinMaxAggWindow
- java.lang.Object
-
- com.inductiveautomation.ignition.gateway.sqltags.history.query.processing.aggregates.legacy.AbstractDataWindow
-
- com.inductiveautomation.ignition.gateway.sqltags.history.query.processing.aggregates.legacy.MinMaxAggWindow
-
- All Implemented Interfaces:
DataWindow
- Direct Known Subclasses:
MinMaxAggWindow.MinOrMaxAggregationWindow
public class MinMaxAggWindow extends AbstractDataWindow
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MinMaxAggWindow.MaxAggregationWindow
static class
MinMaxAggWindow.MinAggregationWindow
protected static class
MinMaxAggWindow.MinOrMaxAggregationWindow
-
Constructor Summary
Constructors Constructor Description MinMaxAggWindow(long start, long end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.protected boolean
isEntry(HistoricalValue val)
protected boolean
isLatest(HistoricalValue val)
protected boolean
isMax(HistoricalValue val)
protected boolean
isMin(HistoricalValue val)
protected boolean
isMinFirst()
-
Methods inherited from class com.inductiveautomation.ignition.gateway.sqltags.history.query.processing.aggregates.legacy.AbstractDataWindow
getEndTime, getStartTime
-
-
-
-
Method Detail
-
hasMore
public boolean hasMore(int level)
-
isMinFirst
protected boolean isMinFirst()
-
getValue
public HistoricalValue getValue(int level)
Description copied from interface:DataWindow
Returns the value for the specified "level" of the window. Windows generally only have one value, but technically they are allowed to have any number. As long as hasMore is true, this function will be called with an incremented level.
-
getEntryValue
public HistoricalValue getEntryValue()
Description copied from interface:DataWindow
Returns the edge value of the window, which will be used for interpolation from the previous value. This value is not necessarily returned from the getValue() function as part of the window itself.
-
getExitValue
public HistoricalValue getExitValue()
Description copied from interface:DataWindow
Returns the "exit" value of this window. Generally this will be the same as getValue(x) with x=the highest level provided by the window, but sometimes it could be the last received raw value. Interpolation will occur between this value and the entry value of the next window.
-
initialize
public void initialize(HistoricalValue entryValue)
Description copied from interface:DataWindow
Provides the window with the previous window's value. May not be used by all window types.
-
finalize
public void finalize(HistoricalValue trailingValue)
Description copied from interface:DataWindow
Provides the window with the value that comes next, outside of the window, in order to finalize calculations. May not be used by all window types.
-
addValue
public void addValue(HistoricalValue value)
Description copied from interface:DataWindow
Adds a value to the window.
-
isMin
protected boolean isMin(HistoricalValue val)
-
isMax
protected boolean isMax(HistoricalValue val)
-
isEntry
protected boolean isEntry(HistoricalValue val)
-
isLatest
protected boolean isLatest(HistoricalValue val)
-
-