Class PackedHistoricalQualifiedValue
java.lang.Object
com.inductiveautomation.ignition.gateway.history.PackedHistoricalQualifiedValue
- All Implemented Interfaces:
HistoricalTagValue
,PersistentData
An implementation of historical tag value that stores the enums packed together as an integer.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPackedHistoricalQualifiedValue
(TagPath path, DataTypeClass typeClass, InterpolationMode queryMode, TimestampSource timestampSource, QualifiedValue value) PackedHistoricalQualifiedValue
(TagPath path, DataTypeClass typeClass, InterpolationMode queryMode, TimestampSource timestampSource, Object value, DataQuality quality) -
Method Summary
Modifier and TypeMethodDescriptionboolean
This is overridden in a particular way - we don't take value into account! This implementation is relied on to detect multiple values for a given time, which we can't have.boolean
protected int
getField
(int field) Retrieves thePersistentFlavor
associated with this kind of persistent data.getValue()
int
hashCode()
This hashCode function is implemented according to the same constraints as equals aboveprotected void
setField
(int field, int value) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.gateway.storeforward.data.PersistentData
getDataCount
-
Field Details
-
FLAVOR
-
-
Constructor Details
-
PackedHistoricalQualifiedValue
public PackedHistoricalQualifiedValue(TagPath path, DataTypeClass typeClass, InterpolationMode queryMode, TimestampSource timestampSource, Object value, DataQuality quality) -
PackedHistoricalQualifiedValue
public PackedHistoricalQualifiedValue(TagPath path, DataTypeClass typeClass, InterpolationMode queryMode, TimestampSource timestampSource, QualifiedValue value)
-
-
Method Details
-
equals
-
getQuality
- Specified by:
getQuality
in interfaceHistoricalTagValue
-
getTimestamp
- Specified by:
getTimestamp
in interfaceHistoricalTagValue
-
getValue
- Specified by:
getValue
in interfaceHistoricalTagValue
-
getFlavor
Description copied from interface:PersistentData
Retrieves thePersistentFlavor
associated with this kind of persistent data.- Specified by:
getFlavor
in interfacePersistentData
- Returns:
- a
PersistentFlavor
object
-
getSource
- Specified by:
getSource
in interfaceHistoricalTagValue
-
getTypeClass
- Specified by:
getTypeClass
in interfaceHistoricalTagValue
-
getInterpolationMode
- Specified by:
getInterpolationMode
in interfaceHistoricalTagValue
-
getTimestampSource
- Specified by:
getTimestampSource
in interfaceHistoricalTagValue
-
getField
protected int getField(int field) -
setField
protected void setField(int field, int value) -
equals
This is overridden in a particular way - we don't take value into account! This implementation is relied on to detect multiple values for a given time, which we can't have. If all other settings are equal, we only look at timestamp. -
hashCode
public int hashCode()This hashCode function is implemented according to the same constraints as equals above -
toString
-