类 RangeAndOffset

java.lang.Object
com.huangjian.modbus4j.base.RangeAndOffset

public class RangeAndOffset extends Object

RangeAndOffset class.

  • 构造器详细资料

    • RangeAndOffset

      public RangeAndOffset(int range, int offset)

      Constructor for RangeAndOffset.

      参数:
      range - a int.
      offset - a int.
    • RangeAndOffset

      public RangeAndOffset(int registerId)
      This constructor provides a best guess at the function and offset the user wants, with the assumption that the offset will never go over 9999.
      参数:
      registerId - a int.
  • 方法详细资料

    • getRange

      public int getRange()

      Getter for the field range.

      返回:
      a int.
    • getOffset

      public int getOffset()

      Getter for the field offset.

      返回:
      a int.