|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wimpi.modbus.procimg.SynchronizedAbstractRegister net.wimpi.modbus.procimg.SimpleInputRegister
public class SimpleInputRegister
Class implementing a simple InputRegister.
The setValue() method is synchronized, which ensures atomic access, but no specific access order.
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. |
Method Summary |
---|
Methods inherited from class net.wimpi.modbus.procimg.SynchronizedAbstractRegister |
---|
getValue, setValue, setValue, setValue, toBytes, toShort, toUnsignedShort |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.wimpi.modbus.procimg.InputRegister |
---|
getValue, toBytes, toShort, toUnsignedShort |
Constructor Detail |
---|
public SimpleInputRegister()
public SimpleInputRegister(byte b1, byte b2)
b1
- the first (hi) byte of the word.b2
- the second (low) byte of the word.public SimpleInputRegister(int value)
value
- the value of this SimpleInputRegister
as int.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |