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 TypeMethodDescriptionbooleanThis 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.booleanprotected intgetField(int field) Retrieves thePersistentFlavorassociated with this kind of persistent data.getValue()inthashCode()This hashCode function is implemented according to the same constraints as equals aboveprotected voidsetField(int field, int value) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getQualityin interfaceHistoricalTagValue
-
getTimestamp
- Specified by:
getTimestampin interfaceHistoricalTagValue
-
getValue
- Specified by:
getValuein interfaceHistoricalTagValue
-
getFlavor
Description copied from interface:PersistentDataRetrieves thePersistentFlavorassociated with this kind of persistent data.- Specified by:
getFlavorin interfacePersistentData- Returns:
- a
PersistentFlavorobject
-
getSource
- Specified by:
getSourcein interfaceHistoricalTagValue
-
getTypeClass
- Specified by:
getTypeClassin interfaceHistoricalTagValue
-
getInterpolationMode
- Specified by:
getInterpolationModein interfaceHistoricalTagValue
-
getTimestampSource
- Specified by:
getTimestampSourcein 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
-