|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes the quality state for an IOItem value. The structure of this interface has been designed around the item quality concept used by OPC, but is general enough to be used by non-opc server implementations as well.
Field Summary | |
static int |
BAD_COMM_FAILURE
Used when quality value is QUALITY_BAD
Communications have failed. |
static int |
BAD_CONFIGURATION_ERROR
Used when quality value is QUALITY_BAD
There is some server specific problem with the configuration. |
static int |
BAD_DEVICE_FAILURE
Used when quality value is QUALITY_BAD
A device failure has been detected |
static int |
BAD_LAST_KNOWN_VALUE
Used when quality value is QUALITY_BAD
Communications have failed. |
static int |
BAD_NON_SPECIFIC
Used when quality value is QUALITY_BAD .
|
static int |
BAD_NOT_CONNECTED
Used when quality value is QUALITY_BAD
The input is required to be logically connected to something but is not.
|
static int |
BAD_OUT_OF_SERVICE
Used when quality value is QUALITY_BAD
The block is off scan or otherwise locked This quality is also used
when the active state of the item or the group containing the item is
InActive. |
static int |
BAD_SENSOR_FAILURE
Used when quality value is QUALITY_BAD
A sensor failure had been detected (the 'Limits' field can provide
additional diagnostic information in some situations.) |
static int |
GOOD_LOCAL_OVERRIDE
Used when quality value is QUALITY_GOOD
The value has been Overridden. |
static int |
GOOD_NON_SPECIFIC
Used when quality value is QUALITY_GOOD
The value is good. |
static int |
LIMIT_CONSTANT
The value is a constant and cannot move. |
static int |
LIMIT_HIGHLIMITED
The value has 'pegged' at some high limit. |
static int |
LIMIT_LOWLIMITED
The value has 'pegged' at some lower limit |
static int |
LIMIT_NOT_LIMITED
The value is free to move up or down |
static int |
QUALITY_BAD
Value is not useful for reasons indicated by the Substatus. |
static int |
QUALITY_GOOD
The Quality of the value is Good. |
static int |
QUALITY_UNCERTAIN
The quality of the value is uncertain for reasons indicated by the Substatus. for OPC type items this may indicate that a cached value has been read from an inactive group or item. |
static int |
UNCERTAIN_ENGINEERING_UNITS_EXCEEDED
Used when quality value is QUALITY_UNCERTAIN
The returned value is outside the limits defined for this parameter. |
static int |
UNCERTAIN_LAST_USABLE_VALUE
Used when quality value is QUALITY_UNCERTAIN
Whatever was writing this value has stopped doing so. |
static int |
UNCERTAIN_NON_SPECIFIC
Used when quality value is QUALITY_UNCERTAIN
There is no specific reason why the value is uncertain. |
static int |
UNCERTAIN_SENSOR_NOT_ACCURATE
Used when quality value is QUALITY_UNCERTAIN
Either the value has 'pegged' at one of the sensor limits (in which case
the limit field should be set to 1 or 2) or the sensor is otherwise known
to be out of calibration via some form of internal diagnostics (in which
case the limit field should be 0). |
static int |
UNCERTAIN_SUB_NORMAL
Used when quality value is QUALITY_UNCERTAIN
The value is derived from multiple sources and has less than the required
number of Good sources. |
Method Summary | |
int |
getLimitField()
The Limit Field is valid regardless of the Quality and Substatus. |
int |
getQuality()
Returns the quality of the item in question |
int |
getSubStatus()
Returns the sub status for the item in question |
boolean |
isQualityGood()
Convinience method. |
Field Detail |
public static final int QUALITY_BAD
public static final int QUALITY_UNCERTAIN
public static final int QUALITY_GOOD
public static final int BAD_NON_SPECIFIC
QUALITY_BAD
.
The value is bad but no specific reason is known
public static final int BAD_CONFIGURATION_ERROR
QUALITY_BAD
There is some server specific problem with the configuration. For example
the item in question has been deleted from the configuration.
public static final int BAD_NOT_CONNECTED
QUALITY_BAD
The input is required to be logically connected to something but is not.
This quality may reflect that no value is available at this time,
for reasons like the value may have not been provided by the data source.
public static final int BAD_DEVICE_FAILURE
QUALITY_BAD
A device failure has been detected
public static final int BAD_SENSOR_FAILURE
QUALITY_BAD
A sensor failure had been detected (the 'Limits' field can provide
additional diagnostic information in some situations.)
public static final int BAD_LAST_KNOWN_VALUE
QUALITY_BAD
Communications have failed. However, the last known value is available.
Note that the 'age' of the value may be determined from the TIMESTAMP
in the OPCITEMSTATE.
public static final int BAD_COMM_FAILURE
QUALITY_BAD
Communications have failed. There is no last known value is available.
public static final int BAD_OUT_OF_SERVICE
QUALITY_BAD
The block is off scan or otherwise locked This quality is also used
when the active state of the item or the group containing the item is
InActive.
public static final int UNCERTAIN_NON_SPECIFIC
QUALITY_UNCERTAIN
There is no specific reason why the value is uncertain.
public static final int UNCERTAIN_LAST_USABLE_VALUE
QUALITY_UNCERTAIN
Whatever was writing this value has stopped doing so. The returned value
should be regarded as 'stale'. Note that this differs from a BAD value
with Substatus 5 (Last Known Value). That status is associated
specifically with a detectable communications error on a 'fetched' value.
This error is associated with the failure of some external source to
'put' something into the value within an acceptable period of time.
Note that the 'age' of the value can be determined from the TIMESTAMP in
OPCITEMSTATE.
public static final int UNCERTAIN_SENSOR_NOT_ACCURATE
QUALITY_UNCERTAIN
Either the value has 'pegged' at one of the sensor limits (in which case
the limit field should be set to 1 or 2) or the sensor is otherwise known
to be out of calibration via some form of internal diagnostics (in which
case the limit field should be 0).
public static final int UNCERTAIN_ENGINEERING_UNITS_EXCEEDED
QUALITY_UNCERTAIN
The returned value is outside the limits defined for this parameter. Note
that in this case (per the Fieldbus Specification) the 'Limits' field
indicates which limit has been exceeded but does NOT necessarily imply
that the value cannot move farther out of range.
public static final int UNCERTAIN_SUB_NORMAL
QUALITY_UNCERTAIN
The value is derived from multiple sources and has less than the required
number of Good sources.
public static final int GOOD_NON_SPECIFIC
QUALITY_GOOD
The value is good. There are no special conditions
public static final int GOOD_LOCAL_OVERRIDE
QUALITY_GOOD
The value has been Overridden. Typically this means the input has been
disconnected and a manually entered value has been 'forced'.
public static final int LIMIT_NOT_LIMITED
getLimitField()
,
Constant Field Valuespublic static final int LIMIT_LOWLIMITED
getLimitField()
,
Constant Field Valuespublic static final int LIMIT_HIGHLIMITED
getLimitField()
,
Constant Field Valuespublic static final int LIMIT_CONSTANT
getLimitField()
,
Constant Field ValuesMethod Detail |
public boolean isQualityGood()
getQuality() == QUALITY_GOOD
public int getQuality()
QUALITY_BAD
, QUALITY_UNCERTAIN
or QUALITY_GOOD
public int getSubStatus()
getQuality()
. For BAD values any of the values
BAD_NON_SPECIFIC
, etc. are returned. For UNCERTAIN values
any of the values UNCERTAIN_NON_SPECIFIC
, etc. are returned.
For GOOD values any of the values GOOD_NON_SPECIFIC
, etc. are
returned.public int getLimitField()
LIMIT_NOT_LIMITED
,
LIMIT_LOWLIMITED
, LIMIT_HIGHLIMITED
or
LIMIT_CONSTANT
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |