类 ModbusSlaveSet
java.lang.Object
com.huangjian.modbus4j.Modbus
com.huangjian.modbus4j.ModbusSlaveSet
- 直接已知子类:
SerialSlave,TcpSlave,UdpSlave
Abstract ModbusSlaveSet class.
-
字段概要
从类继承的字段 com.huangjian.modbus4j.Modbus
DEFAULT_MAX_READ_BIT_COUNT, DEFAULT_MAX_READ_REGISTER_COUNT, DEFAULT_MAX_WRITE_REGISTER_COUNT -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddProcessImage(ProcessImage processImage) addProcessImage.getProcessImage(int slaveId) getProcessImage.Get a copy of the current process imagesbooleanremoveProcessImage(int slaveId) removeProcessImage.booleanremoveProcessImage(ProcessImage processImage) removeProcessImage.abstract voidstart()Starts the slave.abstract voidstop()stop.
-
构造器详细资料
-
ModbusSlaveSet
public ModbusSlaveSet()
-
-
方法详细资料
-
addProcessImage
addProcessImage.
- 参数:
processImage- aProcessImageobject.
-
removeProcessImage
public boolean removeProcessImage(int slaveId) removeProcessImage.
- 参数:
slaveId- a int.- 返回:
- a boolean.
-
removeProcessImage
removeProcessImage.
- 参数:
processImage- aProcessImageobject.- 返回:
- a boolean.
-
getProcessImage
getProcessImage.
- 参数:
slaveId- a int.- 返回:
- a
ProcessImageobject.
-
getProcessImages
Get a copy of the current process images- 返回:
- a
Collectionobject.
-
start
Starts the slave. If an exception is not thrown, this method does not return, but uses the thread to execute the listening.- 抛出:
ModbusInitException- if necessary
-
stop
public abstract void stop()stop.
-