类 ModbusSlaveSet

java.lang.Object
com.huangjian.modbus4j.Modbus
com.huangjian.modbus4j.ModbusSlaveSet
直接已知子类:
SerialSlave, TcpSlave, UdpSlave

public abstract class ModbusSlaveSet extends Modbus

Abstract ModbusSlaveSet class.

  • 构造器详细资料

    • ModbusSlaveSet

      public ModbusSlaveSet()
  • 方法详细资料

    • addProcessImage

      public void addProcessImage(ProcessImage processImage)

      addProcessImage.

      参数:
      processImage - a ProcessImage object.
    • removeProcessImage

      public boolean removeProcessImage(int slaveId)

      removeProcessImage.

      参数:
      slaveId - a int.
      返回:
      a boolean.
    • removeProcessImage

      public boolean removeProcessImage(ProcessImage processImage)

      removeProcessImage.

      参数:
      processImage - a ProcessImage object.
      返回:
      a boolean.
    • getProcessImage

      public ProcessImage getProcessImage(int slaveId)

      getProcessImage.

      参数:
      slaveId - a int.
      返回:
      a ProcessImage object.
    • getProcessImages

      public Collection<ProcessImage> getProcessImages()
      Get a copy of the current process images
      返回:
      a Collection object.
    • start

      public abstract void start() throws ModbusInitException
      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.