jamod at SF

net.wimpi.modbus.procimg
Class SimpleInputRegister

java.lang.Object
  extended bynet.wimpi.modbus.procimg.SynchronizedAbstractRegister
      extended bynet.wimpi.modbus.procimg.SimpleInputRegister
All Implemented Interfaces:
InputRegister, Register

public class SimpleInputRegister
extends SynchronizedAbstractRegister
implements InputRegister

Class implementing a simple InputRegister.

The setValue() method is synchronized, which ensures atomic access, but no specific access order.

Version:
1.2rc1 (09/11/2004)
Author:
Dieter Wimberger

Field Summary
 
Fields inherited from class net.wimpi.modbus.procimg.SynchronizedAbstractRegister
m_Register
 
Constructor Summary
SimpleInputRegister()
          Constructs a new SimpleInputRegister instance.
SimpleInputRegister(byte b1, byte b2)
          Constructs a new SimpleInputRegister instance.
SimpleInputRegister(int value)
          Constructs a new SimpleInputRegister instance with the given value.
 
Methods inherited from class net.wimpi.modbus.procimg.SynchronizedAbstractRegister
getValue, setValue, setValue, setValue, toBytes, toShort, toUnsignedShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.wimpi.modbus.procimg.InputRegister
getValue, toBytes, toShort, toUnsignedShort
 

Constructor Detail

SimpleInputRegister

public SimpleInputRegister()
Constructs a new SimpleInputRegister instance. It's state will be invalid.


SimpleInputRegister

public SimpleInputRegister(byte b1,
                           byte b2)
Constructs a new SimpleInputRegister instance.

Parameters:
b1 - the first (hi) byte of the word.
b2 - the second (low) byte of the word.

SimpleInputRegister

public SimpleInputRegister(int value)
Constructs a new SimpleInputRegister instance with the given value.

Parameters:
value - the value of this SimpleInputRegister as int.

jamod at SF

Copyright © 2002-2004 jamod development team.