类 KeyedModbusLocator<K>

java.lang.Object
com.huangjian.modbus4j.base.KeyedModbusLocator<K>

public class KeyedModbusLocator<K> extends Object

KeyedModbusLocator class.

  • 构造器详细资料

    • KeyedModbusLocator

      public KeyedModbusLocator(K key, BaseLocator<?> locator)

      Constructor for KeyedModbusLocator.

      参数:
      key - a K object.
      locator - a BaseLocator object.
  • 方法详细资料

    • getKey

      public K getKey()

      Getter for the field key.

      返回:
      a K object.
    • getLocator

      public BaseLocator<?> getLocator()

      Getter for the field locator.

      返回:
      a BaseLocator object.
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • getDataType

      public int getDataType()

      getDataType.

      返回:
      a int.
    • getOffset

      public int getOffset()

      getOffset.

      返回:
      a int.
    • getSlaveAndRange

      public SlaveAndRange getSlaveAndRange()

      getSlaveAndRange.

      返回:
      a SlaveAndRange object.
    • getEndOffset

      public int getEndOffset()

      getEndOffset.

      返回:
      a int.
    • getRegisterCount

      public int getRegisterCount()

      getRegisterCount.

      返回:
      a int.
    • bytesToValue

      public Object bytesToValue(byte[] data, int requestOffset)

      bytesToValue.

      参数:
      data - an array of
      引用无效
      byte
      objects.
      requestOffset - a int.
      返回:
      a Object object.