public class ModbusHoldingRegisters extends ModbusValues<Integer>
Observable,
Observer| Constructor and Description |
|---|
ModbusHoldingRegisters() |
ModbusHoldingRegisters(int size) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkOffsetAndValue(int offset,
int value) |
Integer |
get(int offset) |
int |
getByteCount() |
byte[] |
getBytes() |
float |
getFloat32At(int offset) |
double |
getFloat64At(int offset) |
int |
getInt16At(int offset) |
int |
getInt32At(int offset) |
long |
getInt64At(int offset) |
int |
getInt8At(int offset) |
int |
getQuantity() |
int[] |
getRange(int offset,
int quantity) |
int[] |
getRegisters() |
void |
setBytesBe(byte[] bytes) |
void |
setBytesLe(byte[] bytes) |
void |
setFloat32At(int offset,
float f32) |
void |
setFloat64At(int offset,
double f64) |
void |
setImpl(int offset,
Integer value) |
void |
setInt16At(int offset,
int i16) |
void |
setInt32At(int offset,
int i32) |
void |
setInt64At(int offset,
long i64) |
void |
setInt8At(int offset,
int i8) |
void |
setRange(int offset,
int[] range) |
void |
setRegisters(int[] registers) |
iterator, setaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ModbusHoldingRegisters(int size)
public ModbusHoldingRegisters()
protected void checkOffsetAndValue(int offset,
int value)
throws IllegalDataValueException,
IllegalDataAddressException
public void setImpl(int offset,
Integer value)
throws IllegalDataAddressException,
IllegalDataValueException
setImpl in class ModbusValues<Integer>IllegalDataAddressExceptionIllegalDataValueExceptionpublic void setRange(int offset,
int[] range)
throws IllegalDataAddressException,
IllegalDataValueException
public void setInt8At(int offset,
int i8)
throws IllegalDataAddressException,
IllegalDataValueException
public void setInt16At(int offset,
int i16)
throws IllegalDataAddressException,
IllegalDataValueException
public void setInt32At(int offset,
int i32)
throws IllegalDataAddressException,
IllegalDataValueException
public void setInt64At(int offset,
long i64)
throws IllegalDataAddressException,
IllegalDataValueException
public void setFloat32At(int offset,
float f32)
throws IllegalDataAddressException,
IllegalDataValueException
public void setFloat64At(int offset,
double f64)
throws IllegalDataAddressException,
IllegalDataValueException
public int getInt8At(int offset)
throws IllegalDataAddressException
IllegalDataAddressExceptionpublic int getInt16At(int offset)
throws IllegalDataAddressException
IllegalDataAddressExceptionpublic int getInt32At(int offset)
throws IllegalDataAddressException
IllegalDataAddressExceptionpublic long getInt64At(int offset)
throws IllegalDataAddressException
IllegalDataAddressExceptionpublic float getFloat32At(int offset)
throws IllegalDataAddressException
IllegalDataAddressExceptionpublic double getFloat64At(int offset)
throws IllegalDataAddressException
IllegalDataAddressExceptionpublic int[] getRegisters()
public void setRegisters(int[] registers)
public int getByteCount()
getByteCount in class ModbusValues<Integer>public byte[] getBytes()
getBytes in class ModbusValues<Integer>public void setBytesBe(byte[] bytes)
setBytesBe in class ModbusValues<Integer>public void setBytesLe(byte[] bytes)
public int getQuantity()
getQuantity in class ModbusValues<Integer>public Integer get(int offset) throws IllegalDataAddressException
get in class ModbusValues<Integer>IllegalDataAddressExceptionpublic int[] getRange(int offset,
int quantity)
throws IllegalDataAddressException
IllegalDataAddressExceptionCopyright © 2018. All rights reserved.