Class SunSpecPoint.PointImpl
java.lang.Object
io.openems.edge.bridge.modbus.sunspec.SunSpecPoint.PointImpl
- Enclosing interface:
- SunSpecPoint
The internal PointImpl object for easier handling in Enums.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AccessMode
final SunSChannelId<?>
final String
final String
final boolean
final String
final OptionsEnum[]
final SunSpecPoint.PointType
final Unit
-
Constructor Summary
ConstructorsConstructorDescriptionPointImpl
(String channelId, String label, String description, String notes, SunSpecPoint.PointType type, boolean mandatory, AccessMode accessMode, Unit unit, String scaleFactor, OptionsEnum[] options) -
Method Summary
Modifier and TypeMethodDescriptionfinal ModbusElement
generateModbusElement
(Integer startAddress) Generates a Modbus Element for the given point + startAddress.final OpenemsType
getMatchingOpenemsType
(boolean hasScaleFactor) Gets theOpenemsType
that matches this SunSpec-Type.
-
Field Details
-
label
-
description
-
notes
-
type
-
mandatory
public final boolean mandatory -
accessMode
-
unit
-
channelId
-
scaleFactor
-
options
-
-
Constructor Details
-
PointImpl
public PointImpl(String channelId, String label, String description, String notes, SunSpecPoint.PointType type, boolean mandatory, AccessMode accessMode, Unit unit, String scaleFactor, OptionsEnum[] options)
-
-
Method Details
-
generateModbusElement
Generates a Modbus Element for the given point + startAddress.- Parameters:
startAddress
- the startAddress of the Point- Returns:
- a new Modbus Element
-
getMatchingOpenemsType
Gets theOpenemsType
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
-