Class SunSpecPoint.PointImpl

java.lang.Object
io.openems.edge.bridge.modbus.sunspec.SunSpecPoint.PointImpl
Enclosing interface:
SunSpecPoint

public static class SunSpecPoint.PointImpl extends Object
The internal PointImpl object for easier handling in Enums.
  • Field Details

  • Constructor Details

  • Method Details

    • generateModbusElement

      public final ModbusElement generateModbusElement(Integer startAddress)
      Generates a Modbus Element for the given point + startAddress.
      Parameters:
      startAddress - the startAddress of the Point
      Returns:
      a new Modbus Element
    • getMatchingOpenemsType

      public final OpenemsType getMatchingOpenemsType(boolean hasScaleFactor)
      Gets the OpenemsType that matches this SunSpec-Type.
      Parameters:
      hasScaleFactor - true if this Point has a ScaleFactor. If true, a floating point type is applied to avoid rounding errors.
      Returns:
      the OpenemsType