public enum DataQuality extends java.lang.Enum<DataQuality> implements Quality
Quality.Level
Enum Constant and Description |
---|
ACCESS_DENIED |
AGGREGATE_NOT_FOUND |
COMM_ERROR |
CONFIG_ERROR |
DB_CONN_ERROR |
DEMO_EXPIRED |
DISABLED |
EXPRESSION_EVAL_ERROR |
GOOD_DATA |
GOOD_PROVISIONAL
Good value, but shouldn't be trusted for long.
|
GW_COMM_OFF |
NOT_FOUND |
OPC_BAD_DATA |
OPC_BAD_SHOWING_LAST |
OPC_COMM_FAIL |
OPC_CONFIG_ERROR |
OPC_DEVICE_FAILURE |
OPC_GOOD_WITH_LOCAL_OVERRIDE |
OPC_LIMIT_EXCEEDED |
OPC_NOT_CONNECTED |
OPC_OUT_OF_SERVICE |
OPC_SENSOR_BAD |
OPC_SENSOR_FAILURE |
OPC_SUB_NORMAL |
OPC_UNCERTAIN |
OPC_UNCERTAIN_SHOWING_LAST |
OPC_UNKNOWN |
OPC_WAITING |
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".
|
SQL_QUERY_ERROR |
STALE |
TAG_EXEC_ERROR |
TAG_LIMIT_EXCEEDED |
TYPE_CONVERSION_ERROR |
UNKNOWN |
WRITE_PENDING |
Modifier and Type | Method and Description |
---|---|
static DataQuality |
fromIntValue(java.lang.Integer value) |
LocalizedString |
getDescription() |
int |
getIntValue()
Returns the integer value of this tag status.
|
Quality.Level |
getLevel() |
java.lang.String |
getName() |
static DataQuality |
getQualityFor(int value)
Returns the DataQuality for the given code.
|
static DataQuality |
getQualityFor(Quality code)
Bridge between the Quality and DataQuality.
|
boolean |
is(Quality other)
Basically like equals, but should only compare name and level.
|
boolean |
isDataUsed()
Returns a boolean indicating whether or not the value should be used for this quality
|
boolean |
isGood()
Synonym for isGoodData()
|
boolean |
isGoodData() |
boolean |
isOPCBadData()
Returns true if this DataQuality represents one of OPC's various "Bad Data" codes.
|
java.lang.String |
toString() |
java.lang.String |
toString(java.util.Locale locale) |
static DataQuality |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataQuality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static DataQuality |
worstOf(DataQuality q1,
DataQuality q2)
Returns the 'worst' or 'most severe' of the two qualities.
|
static Quality |
worstOf(Quality q1,
Quality q2) |
static DataQuality |
worstOfAll(DataQuality... q) |
static Quality |
worstOfAll(Quality... q) |
public static final DataQuality OPC_BAD_DATA
public static final DataQuality OPC_CONFIG_ERROR
public static final DataQuality OPC_NOT_CONNECTED
public static final DataQuality OPC_DEVICE_FAILURE
public static final DataQuality OPC_SENSOR_FAILURE
public static final DataQuality OPC_BAD_SHOWING_LAST
public static final DataQuality OPC_COMM_FAIL
public static final DataQuality OPC_OUT_OF_SERVICE
public static final DataQuality OPC_WAITING
public static final DataQuality OPC_UNCERTAIN
public static final DataQuality OPC_UNCERTAIN_SHOWING_LAST
public static final DataQuality OPC_SENSOR_BAD
public static final DataQuality OPC_LIMIT_EXCEEDED
public static final DataQuality OPC_SUB_NORMAL
public static final DataQuality OPC_UNKNOWN
public static final DataQuality GOOD_DATA
public static final DataQuality OPC_GOOD_WITH_LOCAL_OVERRIDE
public static final DataQuality CONFIG_ERROR
public static final DataQuality COMM_ERROR
public static final DataQuality EXPRESSION_EVAL_ERROR
public static final DataQuality SQL_QUERY_ERROR
public static final DataQuality DB_CONN_ERROR
public static final DataQuality TAG_EXEC_ERROR
public static final DataQuality TYPE_CONVERSION_ERROR
public static final DataQuality ACCESS_DENIED
public static final DataQuality NOT_FOUND
public static final DataQuality DISABLED
public static final DataQuality STALE
public static final DataQuality UNKNOWN
public static final DataQuality WRITE_PENDING
public static final DataQuality DEMO_EXPIRED
public static final DataQuality GW_COMM_OFF
public static final DataQuality TAG_LIMIT_EXCEEDED
public static final DataQuality GOOD_PROVISIONAL
public static final DataQuality REFERENCE_NOT_FOUND
public static final DataQuality AGGREGATE_NOT_FOUND
public static DataQuality[] values()
for (DataQuality c : DataQuality.values()) System.out.println(c);
public static DataQuality valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getIntValue()
public static DataQuality fromIntValue(java.lang.Integer value)
public static DataQuality getQualityFor(int value)
public static DataQuality getQualityFor(Quality code)
public boolean isDataUsed()
public boolean isOPCBadData()
public boolean isGoodData()
public static DataQuality worstOf(DataQuality q1, DataQuality q2)
public static DataQuality worstOfAll(DataQuality... q)
public java.lang.String toString()
toString
in class java.lang.Enum<DataQuality>
public java.lang.String toString(java.util.Locale locale)
public LocalizedString getDescription()
getDescription
in interface Quality
public Quality.Level getLevel()