Class BasicQualifiedValue
java.lang.Object
com.inductiveautomation.ignition.common.model.values.BasicQualifiedValue
- All Implemented Interfaces:
QualifiedValue,Serializable
- Direct Known Subclasses:
BasicQualifiedValue
The basic implementation of QualifiedValue.
Changes ----------- 8.0 - Changed from "Quality" to "QualityCode".
- See Also:
-
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.common.model.values.QualifiedValue
AGGREGATE_NOT_FOUND, BAD, CONFIG_ERROR, DISABLED, EXPRESSION_EVAL_ERROR, INITIAL_VALUE, NOT_CONNECTED, NOT_FOUND, REFERENCE_NOT_FOUND, STALE, TRANSFORM_ERROR, TYPE_CONVERSION, UNKNOWN, UNSUPPORTED -
Constructor Summary
ConstructorsConstructorDescriptionBasicQualifiedValue(Object value) Creates a BasicQualifiedValue with good quality and the current timestampBasicQualifiedValue(Object value, QualityCode quality) BasicQualifiedValue(Object value, QualityCode quality, Date timeStamp) BasicQualifiedValue(Object value, Quality quality, Date timeStamp) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanTests that the objects values are equal.booleanstatic QualifiedValuefromObject(Object obj) Creates a QualifiedValue "intelligently" from an object.getValue()inthashCode()voidsetQuality(QualityCode code) voidsetQuality(DataQuality code) Deprecated.here for serialization compatibility.voidsetTimestamp(Date timestamp) voidtoString()static Objectstatic QualifiedValueCreates a copy of the value, but with a current-time timestamp.static ObjectIf the object is a QualifiedValue, will return the internal value, otherwise returns the object passed in.static QualifiedValuewithTimestamp(QualifiedValue value, Date timestamp) Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.model.values.QualifiedValue
derive, derive, derive
-
Constructor Details
-
BasicQualifiedValue
public BasicQualifiedValue() -
BasicQualifiedValue
Creates a BasicQualifiedValue with good quality and the current timestamp -
BasicQualifiedValue
-
BasicQualifiedValue
Deprecated.Provided for backward compatibility only, do not use in any new code -
BasicQualifiedValue
-
BasicQualifiedValue
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceQualifiedValue
-
setValue
-
getQuality
- Specified by:
getQualityin interfaceQualifiedValue
-
setQuality
-
setQuality
Deprecated.here for serialization compatibility.This needs to be here for serialization compatibility. -
getTimestamp
- Specified by:
getTimestampin interfaceQualifiedValue
-
setTimestamp
-
equals
Tests that the objects values are equal. DOES NOT TEST timestamp, because in most cases you want to leave it out. If you want to test it, call equals(val,true). -
equals
- Specified by:
equalsin interfaceQualifiedValue
-
hashCode
public int hashCode() -
clone
-
toString
-
fromObject
Creates a QualifiedValue "intelligently" from an object. If the object is already a QualifiedValue, then it won't "double-wrap" the object. Otherwise, it will make a new BasicQualifiedValue with a good quality. -
updateTimestamp
Creates a copy of the value, but with a current-time timestamp. -
valueOf
If the object is a QualifiedValue, will return the internal value, otherwise returns the object passed in. -
unwrap
-
withTimestamp
-