Class ModbusSlaveNatureTable
java.lang.Object
io.openems.edge.common.modbusslave.ModbusSlaveNatureTable
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic short
generateHash
(String text) Generates a hash code from a string text.int
Class
<?> Gets the Nature class.short
Gets the Hash code for this Nature, built from the Nature-Name viagetNatureName()
.Gets the Nature name, i.e.of
(Class<?> nature, AccessMode accessMode, int length)
-
Method Details
-
generateHash
Generates a hash code from a string text.- Parameters:
text
- the text (e.g. "OpenemsComponent")- Returns:
- the short hash value (e.g. "0xb3dc")
-
of
- Parameters:
nature
- the OpenEMS NatureClass
accessMode
- theAccessMode
length
- the reserved total length- Returns:
- the
ModbusSlaveNatureTable.Builder
-
getNatureClass
Gets the Nature class.- Returns:
- the nature class, e.g.
OpenemsComponent
-
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 viagetNatureName()
.- Returns:
- the Hash code, e.g. "0xb3dc" for "OpenemsComponent"
-
getLength
public int getLength() -
getModbusRecords
-