jp.gr.javacons.jim
インタフェース QualityFlag

既知の実装クラスの一覧:
SimpleQualityFlag

public interface QualityFlag

QualityFlag interface provides the minimum necessary methods for the object to indicate whether the value of the DataHolder object holds valid information or not. The DataProvider Bean developer may define an appropriate class that implements the QualityFlag interface and pass the object as an argument when calling the setValue method of the DataHolder object.

The JIM framework provides SimpleQualityFlag as a basic class that implements the QualityFlag interface.


フィールドの概要
static int BAD
          This indicates that it is an abnormal value, as top-level quality information.
static int GOOD
          This indicates that it is a normal value, as top-level quality information.
static int LIMIT_CONSTANT
          This limit informaition indicates that the value is a constant.
static int LIMIT_HIGH_LIMITED
          This limit information indicates that the value is limited to a maximum value.
static int LIMIT_LOW_LIMITED
          This limit information indicates that the value is limited to a minimum value.
static int LIMIT_NOT_LIMITED
          This limit information indicates that the value is not limited.
static int SUBSTATUS_NON_SPECIFIC
          This indicates that there is no particular sub status information.
static int UNCERTAIN
          This indicates not being able to judge whether it is normal or abnormal, as top-level quality information.
 
メソッドの概要
 int getLimit()
          This returns information on the limit (upper / lower bound).
 int getQuality()
          This returns top level information related to quality.
 int getSubStatus()
          This returns the substatus information in response to the quality.
 

フィールドの詳細

BAD

public static final int BAD
This indicates that it is an abnormal value, as top-level quality information. The actual numerical value is 0.

UNCERTAIN

public static final int UNCERTAIN
This indicates not being able to judge whether it is normal or abnormal, as top-level quality information. The actual numerical value is 1.

GOOD

public static final int GOOD
This indicates that it is a normal value, as top-level quality information. The actual numerical value is 3.

SUBSTATUS_NON_SPECIFIC

public static final int SUBSTATUS_NON_SPECIFIC
This indicates that there is no particular sub status information. The actual numerical value is 0.

LIMIT_NOT_LIMITED

public static final int LIMIT_NOT_LIMITED
This limit information indicates that the value is not limited. The actual numerical value is 0.

LIMIT_LOW_LIMITED

public static final int LIMIT_LOW_LIMITED
This limit information indicates that the value is limited to a minimum value. The actual numerical value is 1.

LIMIT_HIGH_LIMITED

public static final int LIMIT_HIGH_LIMITED
This limit information indicates that the value is limited to a maximum value. The actual numerical value is 2.

LIMIT_CONSTANT

public static final int LIMIT_CONSTANT
This limit informaition indicates that the value is a constant. The actual numerical value is 3.
メソッドの詳細

getLimit

public int getLimit()
This returns information on the limit (upper / lower bound).

QualityFlag.LIMIT_NOT_LIMITED, QualityFlag.LIMIT_LOW_LIMITED, QualityFlag.LIMIT_HIGH_LIMITED or QualityFlag.LIMIT_CONSTANT is returned. (If limit information is not treated in particular, this method should be implemented to return QualityFlag.LIMIT_NOT_LIMITED)


getQuality

public int getQuality()
This returns top level information related to quality. QualityFlag.GOOD, QualityFlag.BAD, or QualityFlag.UNCERTAIN is returned.

getSubStatus

public int getSubStatus()
This returns the substatus information in response to the quality. (If substatus information is not treated in particular, this method should be implemented to return QualityFlag.SUBSTATUS_NON_SPECIFIC.)