jamod at SF

net.wimpi.modbus.procimg
Interface Register

All Superinterfaces:
InputRegister
All Known Implementing Classes:
AbstractRegister, ObservableRegister, 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:
1.2rc1 (09/11/2004)
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

public 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

public 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

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

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

jamod at SF

Copyright © 2002-2004 jamod development team.