net.wimpi.modbus.procimg
Class SimpleRegister
java.lang.Object
net.wimpi.modbus.procimg.SynchronizedAbstractRegister
net.wimpi.modbus.procimg.SimpleRegister
- All Implemented Interfaces:
- InputRegister, Register
public class SimpleRegister
- extends SynchronizedAbstractRegister
- implements Register
Class implementing a simple Register.
The setValue() method is synchronized,
which ensures atomic access, but no specific access order.
- Version:
- @version@ (@date@)
- Author:
- Dieter Wimberger
Constructor Summary |
SimpleRegister()
Constructs a new SimpleRegister instance. |
SimpleRegister(byte b1,
byte b2)
Constructs a new SimpleRegister instance. |
SimpleRegister(int value)
Constructs a new SimpleRegister instance
with the given value. |
SimpleRegister
public SimpleRegister()
- Constructs a new SimpleRegister instance.
It's state will be invalid.
SimpleRegister
public SimpleRegister(byte b1,
byte b2)
- Constructs a new SimpleRegister instance.
- Parameters:
b1
- the first (hi) byte of the word.b2
- the second (low) byte of the word.
SimpleRegister
public SimpleRegister(int value)
- Constructs a new SimpleRegister instance
with the given value.
- Parameters:
value
- the value of this SimpleRegister
as int.
Copyright © 2010. All Rights Reserved.