Class ErrorHistoryColumn
- java.lang.Object
-
- com.inductiveautomation.ignition.gateway.sqltags.history.query.AbstractHistoryNode
-
- com.inductiveautomation.ignition.gateway.sqltags.history.query.columns.ErrorHistoryColumn
-
- All Implemented Interfaces:
HistoryColumn
,HistoryNode
public class ErrorHistoryColumn extends AbstractHistoryNode implements HistoryColumn
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.ignition.gateway.sqltags.history.query.AbstractHistoryNode
type
-
-
Constructor Summary
Constructors Constructor Description ErrorHistoryColumn(HistoryNode node, QualityCode errorQuality)
ErrorHistoryColumn(java.lang.String name, DataTypeClass type, QualityCode errorQuality)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QualityCode
getQuality()
Gets the quality that corresponds to the last call to getValuejava.lang.Object
getValue(long timestamp, int level)
boolean
hasMore()
Indicates whether the node has more data for the last time used with getValue.long
maxAvailableTime()
Returns the MAX time that this column has values for.void
process(HistoricalValue value)
boolean
wasValueInterpolated()
Returns whether the the last value provided by getValue was purely interpolated- not based on any actual data.-
Methods inherited from class com.inductiveautomation.ignition.gateway.sqltags.history.query.AbstractHistoryNode
getDataType, getErrorCode, getName, getNext, getPrevious, isErrored, markCompleted, setDataType, setErrored, setNext, setNextAvailableTime, setPrevious, sortNode, swapNodes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.gateway.sqltags.history.query.HistoryNode
getDataType, getName, getNext, getPrevious, markCompleted, setNext, setPrevious
-
-
-
-
Constructor Detail
-
ErrorHistoryColumn
public ErrorHistoryColumn(HistoryNode node, QualityCode errorQuality)
-
ErrorHistoryColumn
public ErrorHistoryColumn(java.lang.String name, DataTypeClass type, QualityCode errorQuality)
-
-
Method Detail
-
maxAvailableTime
public long maxAvailableTime()
Description copied from interface:HistoryNode
Returns the MAX time that this column has values for. NOTE: the max time can be well in the future (compared to the last value time). In fact, columns that don't interpolate data could return long.maxvalue. This time simply means "if you call getValue with a time less than this time, I can give you a value".- Specified by:
maxAvailableTime
in interfaceHistoryNode
- Overrides:
maxAvailableTime
in classAbstractHistoryNode
-
getValue
public java.lang.Object getValue(long timestamp, int level)
- Specified by:
getValue
in interfaceHistoryNode
-
getQuality
public QualityCode getQuality()
Description copied from interface:HistoryNode
Gets the quality that corresponds to the last call to getValue- Specified by:
getQuality
in interfaceHistoryNode
-
wasValueInterpolated
public boolean wasValueInterpolated()
Description copied from interface:HistoryNode
Returns whether the the last value provided by getValue was purely interpolated- not based on any actual data.- Specified by:
wasValueInterpolated
in interfaceHistoryNode
-
hasMore
public boolean hasMore()
Description copied from interface:HistoryNode
Indicates whether the node has more data for the last time used with getValue.- Specified by:
hasMore
in interfaceHistoryNode
-
process
public void process(HistoricalValue value)
- Specified by:
process
in interfaceHistoryColumn
-
-