public class ObservableRegister extends Observable implements Register
| Constructor and Description |
|---|
ObservableRegister() |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Returns the value of this InputRegister.
|
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).
|
byte[] |
toBytes()
Returns the content of this Register as bytes.
|
short |
toShort()
Returns the content of this Register as signed 16-bit value
(short).
|
int |
toUnsignedShort()
Returns the content of this Register as unsigned 16-bit value
(unsigned short).
|
addObserver, getObserverCount, notifyObservers, removeObserver, removeObserverspublic int getValue()
InputRegistergetValue in interface InputRegisterpublic int toUnsignedShort()
InputRegistertoUnsignedShort in interface InputRegisterpublic short toShort()
InputRegistertoShort in interface InputRegisterpublic byte[] toBytes()
InputRegistertoBytes in interface InputRegisterpublic void setValue(short s)
Registerpublic void setValue(byte[] bytes)
RegisterCopyright © 2025. All Rights Reserved.