public abstract class ModbusRegister
extends java.lang.Object
| Constructor and Description | 
|---|
ModbusRegister()  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getAddress()
get the address of the modbus register 
 | 
static ModbusRegister | 
getRegisterFromDatapoint(DataPoint dp)
get the modbus register from the desired datapoint 
 | 
static void | 
poll()
read periodically each modbus register 
 | 
abstract void | 
read()
function to read a datapoint from the modbus register 
 | 
void | 
updateMapOfRegisters(java.lang.String label,
                    int address)
add an register to the map of the modbus addresses 
 | 
abstract void | 
write(DataPoint dp)
function to write datapoint on the modbus register 
 | 
public int getAddress()
public static ModbusRegister getRegisterFromDatapoint(DataPoint dp)
dp - the desired datapointpublic void updateMapOfRegisters(java.lang.String label,
                                 int address)
label - label of the datapointaddress - modbus address of the datapointpublic static void poll()
public abstract void read()
public abstract void write(DataPoint dp)
dp - datapoint to write on the address