net.wimpi.modbus.procimg
Interface Register

All Superinterfaces:
InputRegister
All Known Implementing Classes:
AbstractRegister, ObservableRegister, SimpleInputRegister, SimpleRegister, SynchronizedAbstractRegister

public interface Register
extends InputRegister

Interface defining a register.

A register is read-write from slave and master or device side.
Therefor implementations have to be carefully designed for concurrency.

Version:
@version@ (@date@)
Author:
Dieter Wimberger

Method Summary
 void setValue(byte[] bytes)
          Sets the content of this register from the given raw bytes.
 void setValue(int v)
          Sets the content of this Register from the given unsigned 16-bit value (unsigned short).
 void setValue(short s)
          Sets the content of this register from the given signed 16-bit value (short).
 
Methods inherited from interface net.wimpi.modbus.procimg.InputRegister
getValue, toBytes, toShort, toUnsignedShort
 

Method Detail

setValue

void setValue(int v)
Sets the content of this Register from the given unsigned 16-bit value (unsigned short).

Parameters:
v - the value as unsigned short (int).

setValue

void setValue(short s)
Sets the content of this register from the given signed 16-bit value (short).

Parameters:
s - the value as short.

setValue

void setValue(byte[] bytes)
Sets the content of this register from the given raw bytes.

Parameters:
bytes - the raw data as byte[].


Copyright © 2010. All Rights Reserved.