Enum Class DataQuality
- All Implemented Interfaces:
Localized
,Quality
,Serializable
,Comparable<DataQuality>
,Constable
Enum that represents a tag value quality.
As of Ignition 8.0, please use QualityCode
instead.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.common.model.values.Quality
Quality.Level
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGood value, but shouldn't be trusted for long.Similar to NOT_FOUND, but that quality is used in the browse tree and in other places to mean "the tag you want doesn't exist". -
Method Summary
Modifier and TypeMethodDescriptionstatic DataQuality
fromIntValue
(Integer value) This should be a short (~ 1-2 sentences) human-readable, localized description of what situation this quality represents.int
Returns the integer value of this tag status.getLevel()
A basic qualitative assertion of whether this "quality" represents a state that is good, bad, or unknown.getName()
The "Name" of a quality should be a short (~5-50 char) code that identifies this quality.Bridge to the more modern (Ignition 8.0) QualityCodestatic DataQuality
getQualityFor
(int value) Returns the DataQuality for the given code.static DataQuality
Deprecated.boolean
Returns a boolean indicating whether or not the value should be used for this qualityboolean
isGood()
Synonym for isGoodData()boolean
boolean
Returns true if this DataQuality represents one of OPC's various "Bad Data" codes.toString()
static DataQuality
Returns the enum constant of this class with the specified name.static DataQuality[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.static DataQuality
worstOf
(DataQuality q1, DataQuality q2) Returns the 'worst' or 'most severe' of the two qualities.static DataQuality
worstOfAll
(DataQuality... q)
-
Enum Constant Details
-
OPC_BAD_DATA
-
OPC_CONFIG_ERROR
-
OPC_NOT_CONNECTED
-
OPC_DEVICE_FAILURE
-
OPC_SENSOR_FAILURE
-
OPC_BAD_SHOWING_LAST
-
OPC_COMM_FAIL
-
OPC_OUT_OF_SERVICE
-
OPC_WAITING
-
OPC_UNCERTAIN
-
OPC_UNCERTAIN_SHOWING_LAST
-
OPC_SENSOR_BAD
-
OPC_LIMIT_EXCEEDED
-
OPC_SUB_NORMAL
-
OPC_UNKNOWN
-
GOOD_DATA
-
OPC_GOOD_WITH_LOCAL_OVERRIDE
-
CONFIG_ERROR
-
COMM_ERROR
-
EXPRESSION_EVAL_ERROR
-
SQL_QUERY_ERROR
-
DB_CONN_ERROR
-
TAG_EXEC_ERROR
-
TYPE_CONVERSION_ERROR
-
ACCESS_DENIED
-
NOT_FOUND
-
DISABLED
-
STALE
-
UNKNOWN
-
WRITE_PENDING
-
DEMO_EXPIRED
-
GW_COMM_OFF
-
TAG_LIMIT_EXCEEDED
-
GOOD_PROVISIONAL
Good value, but shouldn't be trusted for long. Do not cache. -
REFERENCE_NOT_FOUND
Similar to NOT_FOUND, but that quality is used in the browse tree and in other places to mean "the tag you want doesn't exist". This quality is used to indicate a reference to a tag is not valid. -
AGGREGATE_NOT_FOUND
-
GOOD_BACKFILL
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIntValue
public int getIntValue()Returns the integer value of this tag status. -
fromIntValue
-
getQualityCode
Bridge to the more modern (Ignition 8.0) QualityCode- Specified by:
getQualityCode
in interfaceQuality
- Returns:
- the integer value for the QualityCode that this DataQuality maps to.
-
getQualityFor
Deprecated.This is only for use when bridging to/from old systems that absolutely need DataQuality. It is not implemented with a high degree of fidelity, but only maps the values that should have very important meanings in legacy systems. -
getQualityFor
Returns the DataQuality for the given code. Returns a quality of UNKNOWN if the code is undefined. -
isDataUsed
public boolean isDataUsed()Returns a boolean indicating whether or not the value should be used for this quality -
isOpcBadData
public boolean isOpcBadData()Returns true if this DataQuality represents one of OPC's various "Bad Data" codes. -
isGoodData
public boolean isGoodData() -
isGood
public boolean isGood()Synonym for isGoodData() -
worstOf
Returns the 'worst' or 'most severe' of the two qualities. -
worstOfAll
-
toString
- Overrides:
toString
in classEnum<DataQuality>
-
toString
-
getName
Description copied from interface:Quality
The "Name" of a quality should be a short (~5-50 char) code that identifies this quality. Should NOT be localized. Treat this like an ID. -
getDescription
Description copied from interface:Quality
This should be a short (~ 1-2 sentences) human-readable, localized description of what situation this quality represents.- Specified by:
getDescription
in interfaceQuality
-
getLevel
Description copied from interface:Quality
A basic qualitative assertion of whether this "quality" represents a state that is good, bad, or unknown.
-