gov.aps.jca.dbr
Class DBR_GR_Byte

java.lang.Object
  extended by gov.aps.jca.dbr.DBR
      extended by gov.aps.jca.dbr.DBR_Byte
          extended by gov.aps.jca.dbr.DBR_STS_Byte
              extended by gov.aps.jca.dbr.DBR_TIME_Byte
                  extended by gov.aps.jca.dbr.DBR_GR_Byte
All Implemented Interfaces:
BYTE, GR, STS, TIME
Direct Known Subclasses:
DBR_CTRL_Byte

public class DBR_GR_Byte
extends DBR_TIME_Byte
implements GR


Field Summary
protected  java.lang.Byte _lal
           
protected  java.lang.Byte _ldl
           
protected  java.lang.Byte _lwl
           
protected  java.lang.Byte _ual
           
protected  java.lang.Byte _udl
           
protected  java.lang.String _unit
           
protected  java.lang.Byte _uwl
           
static DBRType TYPE
           
 
Fields inherited from class gov.aps.jca.dbr.DBR_TIME_Byte
_stamp
 
Fields inherited from class gov.aps.jca.dbr.DBR_STS_Byte
_severity, _status
 
Fields inherited from class gov.aps.jca.dbr.DBR
_count, _value
 
Fields inherited from interface gov.aps.jca.dbr.GR
EMPTYUNIT, ZEROB, ZEROD, ZEROF, ZEROI, ZEROS
 
Constructor Summary
DBR_GR_Byte()
           
DBR_GR_Byte(byte[] value)
           
DBR_GR_Byte(int count)
           
 
Method Summary
 DBR convert(DBRType convertType)
           
 java.lang.Number getLowerAlarmLimit()
          Get lower alarm limit.
 java.lang.Number getLowerDispLimit()
          Get lower display limit.
 java.lang.Number getLowerWarningLimit()
          Get lower warning limit.
 TimeStamp getTimeStamp()
          NOTE: this method will always return null timestamp if called from CA client.
 DBRType getType()
           
 java.lang.String getUnits()
          Get units.
 java.lang.Number getUpperAlarmLimit()
          Get upper alarm limit.
 java.lang.Number getUpperDispLimit()
          Get upper display limit.
 java.lang.Number getUpperWarningLimit()
          Get upper warning limit.
 void printInfo(java.io.PrintStream out)
           
 void setLowerAlarmLimit(java.lang.Number limit)
           
 void setLowerDispLimit(java.lang.Number limit)
           
 void setLowerWarningLimit(java.lang.Number limit)
           
 void setTimeStamp(TimeStamp stamp)
          Set timestamp.
 void setUnits(java.lang.String unit)
           
 void setUpperAlarmLimit(java.lang.Number limit)
           
 void setUpperDispLimit(java.lang.Number limit)
           
 void setUpperWarningLimit(java.lang.Number limit)
           
 
Methods inherited from class gov.aps.jca.dbr.DBR_STS_Byte
getSeverity, getStatus, setSeverity, setSeverity, setStatus, setStatus
 
Methods inherited from class gov.aps.jca.dbr.DBR_Byte
getByteValue
 
Methods inherited from class gov.aps.jca.dbr.DBR
convert, getCount, getValue, isBYTE, isBYTE, isCTRL, isCTRL, isDOUBLE, isDOUBLE, isENUM, isENUM, isFLOAT, isFLOAT, isGR, isGR, isINT, isINT, isLABELS, isLABELS, isPRECISION, isPRECSION, isSHORT, isSHORT, isSTRING, isSTRING, isSTS, isSTS, isTIME, isTIME, printInfo, printValue, printValue, printValue, printValue, printValue, printValue, printValue, printValue, printValue, printValue, printValue, printValue, printValue, printValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.aps.jca.dbr.STS
getSeverity, getStatus, setSeverity, setSeverity, setStatus, setStatus
 

Field Detail

TYPE

public static final DBRType TYPE

_unit

protected java.lang.String _unit

_udl

protected java.lang.Byte _udl

_ldl

protected java.lang.Byte _ldl

_ual

protected java.lang.Byte _ual

_uwl

protected java.lang.Byte _uwl

_lwl

protected java.lang.Byte _lwl

_lal

protected java.lang.Byte _lal
Constructor Detail

DBR_GR_Byte

public DBR_GR_Byte()

DBR_GR_Byte

public DBR_GR_Byte(int count)

DBR_GR_Byte

public DBR_GR_Byte(byte[] value)
Method Detail

getType

public DBRType getType()
Overrides:
getType in class DBR_TIME_Byte

getUnits

public java.lang.String getUnits()
Description copied from interface: GR
Get units.

Specified by:
getUnits in interface GR
Returns:
get units, non-null.

setUnits

public void setUnits(java.lang.String unit)
Specified by:
setUnits in interface GR

getUpperDispLimit

public java.lang.Number getUpperDispLimit()
Description copied from interface: GR
Get upper display limit.

Specified by:
getUpperDispLimit in interface GR
Returns:
upper display limit, non-null.

setUpperDispLimit

public void setUpperDispLimit(java.lang.Number limit)
Specified by:
setUpperDispLimit in interface GR

getLowerDispLimit

public java.lang.Number getLowerDispLimit()
Description copied from interface: GR
Get lower display limit.

Specified by:
getLowerDispLimit in interface GR
Returns:
lower display limit, non-null.

setLowerDispLimit

public void setLowerDispLimit(java.lang.Number limit)
Specified by:
setLowerDispLimit in interface GR

getUpperAlarmLimit

public java.lang.Number getUpperAlarmLimit()
Description copied from interface: GR
Get upper alarm limit.

Specified by:
getUpperAlarmLimit in interface GR
Returns:
upper alarm limit, non-null.

setUpperAlarmLimit

public void setUpperAlarmLimit(java.lang.Number limit)
Specified by:
setUpperAlarmLimit in interface GR

getUpperWarningLimit

public java.lang.Number getUpperWarningLimit()
Description copied from interface: GR
Get upper warning limit.

Specified by:
getUpperWarningLimit in interface GR
Returns:
upper warning limit, non-null.

setUpperWarningLimit

public void setUpperWarningLimit(java.lang.Number limit)
Specified by:
setUpperWarningLimit in interface GR

getLowerWarningLimit

public java.lang.Number getLowerWarningLimit()
Description copied from interface: GR
Get lower warning limit.

Specified by:
getLowerWarningLimit in interface GR
Returns:
lower warning limit, non-null.

setLowerWarningLimit

public void setLowerWarningLimit(java.lang.Number limit)
Specified by:
setLowerWarningLimit in interface GR

getLowerAlarmLimit

public java.lang.Number getLowerAlarmLimit()
Description copied from interface: GR
Get lower alarm limit.

Specified by:
getLowerAlarmLimit in interface GR
Returns:
lower alarm limit, non-null.

setLowerAlarmLimit

public void setLowerAlarmLimit(java.lang.Number limit)
Specified by:
setLowerAlarmLimit in interface GR

printInfo

public void printInfo(java.io.PrintStream out)
Overrides:
printInfo in class DBR_TIME_Byte

convert

public DBR convert(DBRType convertType)
            throws CAStatusException
Overrides:
convert in class DBR_TIME_Byte
Throws:
CAStatusException
See Also:
DBR_Byte.convert(gov.aps.jca.dbr.DBRType)

getTimeStamp

public TimeStamp getTimeStamp()
NOTE: this method will always return null timestamp if called from CA client. GR DBR type does not carry timestamp. This method is used only by CA Server side.

Specified by:
getTimeStamp in interface TIME
Overrides:
getTimeStamp in class DBR_TIME_Byte

setTimeStamp

public void setTimeStamp(TimeStamp stamp)
Set timestamp. To be used only by CA Server side.

Specified by:
setTimeStamp in interface TIME
Overrides:
setTimeStamp in class DBR_TIME_Byte


Copyright © 2004-2008 Cosylab. All Rights Reserved.