public class FCOCRegisterBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
nAT_FCT
Set register access type to function.
|
static int |
nAT_R
Set register access type to read only.
|
static int |
nAT_RW
Set register access type to read and write.
|
static int |
nAT_W
Set register access type to write only.
|
static int |
nDT_ARRAY
Set register data type to bytes array.
|
static int |
nDT_BIN
Set register data type to binary.
|
static int |
nDT_FIXEDP_25_75
Set register data type to fixed point 25-75.
|
static int |
nDT_FIXEDP_50_50
Set register data type to fixed point 50-50.
|
static int |
nDT_FIXEDP_75_25
Set register data type to fixed point 75-25.
|
static int |
nDT_INT
Set register data type to integer.
|
static int |
nDT_PERCENT
Set register data type to percent.
|
static int |
nDT_TEXT
Set register data type to text.
|
static int |
nDT_UINT
Set register data type to unsigned integer.
|
Constructor and Description |
---|
FCOCRegisterBase(int nAddress,
int nSize,
int nAccessType,
int nDataType,
boolean isAutoReadEnabled) |
FCOCRegisterBase(int nAddress,
int nSize,
int nAccessType,
int nDataType,
boolean isAutoReadEnabled,
java.lang.Object GeneralCallbackParameter) |
Modifier and Type | Method and Description |
---|---|
int |
getAccesType() |
int |
getAddress() |
java.lang.Object |
getDataLastWritten() |
java.lang.Object |
getDataRead() |
java.lang.Object |
getDataToWrite() |
int |
getDataType() |
java.lang.Object |
getGeneralCallbackParameter() |
int |
getSize() |
boolean |
isAutoReadEnabled() |
void |
setAutoReadEnabled(boolean isAutoReadEnabled) |
void |
setDataRead(java.lang.Object Value) |
void |
setDataToWrite(java.lang.Object Value) |
public static final int nAT_FCT
Set register access type to function.
public static final int nAT_R
Set register access type to read only.
public static final int nAT_W
Set register access type to write only.
public static final int nAT_RW
Set register access type to read and write.
public static final int nDT_INT
Set register data type to integer. Value object set to Long. Max size is 8.
public static final int nDT_UINT
Set register data type to unsigned integer. Value object set to Long. Max size is 7.
public static final int nDT_BIN
Set register data type to binary. Value object set to BitSet.
public static final int nDT_PERCENT
Set register data type to percent. Value object set to Double.
public static final int nDT_TEXT
Set register data type to text. Value object set to String.
public static final int nDT_ARRAY
Set register data type to bytes array. Value object set to Byte[].
public static final int nDT_FIXEDP_50_50
Set register data type to fixed point 50-50. Value object set to Double.
public static final int nDT_FIXEDP_25_75
Set register data type to fixed point 25-75. Value object set to Double.
public static final int nDT_FIXEDP_75_25
Set register data type to fixed point 75-25. Value object set to Double.
public FCOCRegisterBase(int nAddress, int nSize, int nAccessType, int nDataType, boolean isAutoReadEnabled, java.lang.Object GeneralCallbackParameter) throws java.lang.IllegalArgumentException
nAddress
- Register address (index)nSize
- Register size in bytesnAccessType
- Register access type (nAT_FCT, nAT_R, nAT_W, nAT_RW)nDataType
- Register data type (nDT_INT, nDT_UINT, nDT_BIN, nDT_PERCENT, nDT_TEXT, nDT_ARRAY, nDT_FIXEDP_50_50,
nDT_FIXEDP_25_75, nDT_FIXEDP_75_25)isAutoReadEnabled
- Set to True to enable register auto readGeneralCallbackParameter
- Callback parameter transmitted with answer of an autoread of the register or when telling listener that an
autoread is startingjava.lang.IllegalArgumentException
- Thrown if an argument is incorrectpublic FCOCRegisterBase(int nAddress, int nSize, int nAccessType, int nDataType, boolean isAutoReadEnabled) throws java.lang.IllegalArgumentException
nAddress
- Register address (index)nSize
- Register size in bytesnAccessType
- Register access type (nAT_FCT, nAT_R, nAT_W, nAT_RW)nDataType
- Register data type (nDT_INT, nDT_UINT, nDT_BIN, nDT_PERCENT, nDT_TEXT, nDT_ARRAY, nDT_FIXEDP_50_50,
nDT_FIXEDP_25_75, nDT_FIXEDP_75_25)isAutoReadEnabled
- Set to True to enable register auto readjava.lang.IllegalArgumentException
- Thrown if an argument is incorrectpublic int getAddress()
public int getSize()
public int getAccesType()
public int getDataType()
public java.lang.Object getDataToWrite()
public java.lang.Object getDataLastWritten()
public java.lang.Object getDataRead()
public void setDataToWrite(java.lang.Object Value) throws java.lang.IllegalArgumentException
Value
- Register value in correct Number object to add to write queuejava.lang.IllegalArgumentException
- Thrown if Value object is incorrectpublic void setDataRead(java.lang.Object Value) throws java.lang.IllegalArgumentException
Value
- Register value in correct Number object read from the devicejava.lang.IllegalArgumentException
- Thrown if Value object is incorrectpublic boolean isAutoReadEnabled()
public java.lang.Object getGeneralCallbackParameter()
public void setAutoReadEnabled(boolean isAutoReadEnabled)
isAutoReadEnabled
- Set to True to enable register auto read