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
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()
boolean
Tests that the objects values are equal.boolean
static QualifiedValue
fromObject
(Object obj) Creates a QualifiedValue "intelligently" from an object.getValue()
int
hashCode()
void
setQuality
(QualityCode code) void
setQuality
(DataQuality code) Deprecated.here for serialization compatibility.void
setTimestamp
(Date timestamp) void
toString()
static Object
static QualifiedValue
Creates a copy of the value, but with a current-time timestamp.static Object
If the object is a QualifiedValue, will return the internal value, otherwise returns the object passed in.Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getValue
in interfaceQualifiedValue
-
setValue
-
getQuality
- Specified by:
getQuality
in interfaceQualifiedValue
-
setQuality
-
setQuality
Deprecated.here for serialization compatibility.This needs to be here for serialization compatibility. -
getTimestamp
- Specified by:
getTimestamp
in 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:
equals
in 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
-