Class ModbusSlaveNatureTable


  • public final class ModbusSlaveNatureTable
    extends java.lang.Object
    • Method Detail

      • generateHash

        public static short generateHash​(java.lang.String text)
        Generates a hash code from a string text.
        Parameters:
        text - the text (e.g. "OpenemsComponent")
        Returns:
        the short hash value (e.g. "0xb3dc")
      • getNatureClass

        public java.lang.Class<?> getNatureClass()
        Gets the Nature class.
        Returns:
        the nature class, e.g. OpenemsComponent
      • getNatureName

        public java.lang.String getNatureName()
        Gets the Nature name, i.e. the SimpleName of the Nature Class.
        Returns:
        the nature name, e.g. "OpenemsComponent" for OpenemsComponent
      • getNatureHash

        public short getNatureHash()
        Gets the Hash code for this Nature, built from the Nature-Name via getNatureName().
        Returns:
        the Hash code, e.g. "0xb3dc" for "OpenemsComponent"
      • getLength

        public int getLength()
      • getModbusRecords

        public ModbusRecord[] getModbusRecords()