public class ModbusCoils extends ModbusValues<Boolean>
Observable,
Observer| Constructor and Description |
|---|
ModbusCoils(byte[] bytes) |
ModbusCoils(int size) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
get(int offset) |
int |
getByteCount() |
byte[] |
getBytes() |
int |
getQuantity() |
boolean[] |
getRange(int offset,
int quantity) |
void |
setBytes(byte[] bytes,
int quantity) |
void |
setBytesBe(byte[] bytes) |
void |
setImpl(int offset,
Boolean coil) |
void |
setRange(int offset,
boolean[] range) |
iterator, setaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ModbusCoils(int size)
public ModbusCoils(byte[] bytes)
public byte[] getBytes()
getBytes in class ModbusValues<Boolean>public void setBytesBe(byte[] bytes)
setBytesBe in class ModbusValues<Boolean>public void setBytes(byte[] bytes,
int quantity)
public void setImpl(int offset,
Boolean coil)
throws IllegalDataAddressException,
IllegalDataValueException
setImpl in class ModbusValues<Boolean>IllegalDataAddressExceptionIllegalDataValueExceptionpublic void setRange(int offset,
boolean[] range)
throws IllegalDataAddressException,
IllegalDataValueException
public boolean[] getRange(int offset,
int quantity)
throws IllegalDataAddressException,
IllegalDataValueException
public int getQuantity()
getQuantity in class ModbusValues<Boolean>public int getByteCount()
getByteCount in class ModbusValues<Boolean>public Boolean get(int offset) throws IllegalDataAddressException
get in class ModbusValues<Boolean>IllegalDataAddressExceptionCopyright © 2018. All rights reserved.