Package io.openems.edge.app.common.props
Class CommunicationProps
java.lang.Object
io.openems.edge.app.common.props.CommunicationProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic final AppDef
<OpenemsApp, Nameable, Type.Parameter.BundleProvider> ip()
Creates aAppDef
for a ip-address.static final <APP extends OpenemsApp & ComponentManagerSupplier & ComponentUtilSupplier,
PROP extends Nameable, PARAM extends Type.Parameter.BundleProvider>
AppDef<APP, PROP, PARAM> modbusGroup
(PROP modbusId, AppDef<? super APP, ? super PROP, ? super PARAM> modbusIdDef, PROP modbusUnitId, AppDef<? super APP, ? super PROP, ? super PARAM> modbusUnitIdDef) Creates aAppDef
group of aComponentProps.pickModbusId()
and amodbusUnitId()
to check if the current selected modbus unit id already got selected.static final <APP extends OpenemsApp & ComponentManagerSupplier & ComponentUtilSupplier,
PROP extends Nameable, PARAM extends Type.Parameter.BundleProvider>
AppDef<APP, PROP, PARAM> modbusGroup
(PROP modbusId, AppDef<? super APP, ? super PROP, ? super PARAM> modbusIdDef, PROP modbusUnitId, AppDef<? super APP, ? super PROP, ? super PARAM> modbusUnitIdDef, PROP connectionModubsType) Creates aAppDef
group of aComponentProps.pickModbusId()
and amodbusUnitId()
to check if the current selected modbus unit id already got selected.static final AppDef
<OpenemsApp, Nameable, Type.Parameter.BundleProvider> Creates aAppDef
for aModbusType
.static final AppDef
<OpenemsApp, Nameable, Type.Parameter.BundleProvider> Creates aAppDef
for a modbusUnitId.static final AppDef
<OpenemsApp, Nameable, Type.Parameter.BundleProvider> port()
Creates aAppDef
for a port.
-
Method Details
-
modbusType
Creates aAppDef
for aModbusType
.- Returns:
- the
AppDef
-
ip
Creates aAppDef
for a ip-address.- Returns:
- the
AppDef
-
port
Creates aAppDef
for a port.- Returns:
- the
AppDef
-
modbusUnitId
Creates aAppDef
for a modbusUnitId.- Returns:
- the
AppDef
-
modbusGroup
public static final <APP extends OpenemsApp & ComponentManagerSupplier & ComponentUtilSupplier,PROP extends Nameable, AppDef<APP,PARAM extends Type.Parameter.BundleProvider> PROP, modbusGroupPARAM> (PROP modbusId, AppDef<? super APP, ? super PROP, ? super PARAM> modbusIdDef, PROP modbusUnitId, AppDef<? super APP, ? super PROP, ? super PARAM> modbusUnitIdDef) Creates aAppDef
group of aComponentProps.pickModbusId()
and amodbusUnitId()
to check if the current selected modbus unit id already got selected.- Type Parameters:
APP
- the type of the appPROP
- the type of the propertiesPARAM
- the type of the parameters- Parameters:
modbusId
- theNameable
of the modbus idmodbusIdDef
- theAppDef
of the modbus idmodbusUnitId
- theNameable
of the modbus unit idmodbusUnitIdDef
- theAppDef
of the modbus unit id- Returns:
- the
AppDef
-
modbusGroup
public static final <APP extends OpenemsApp & ComponentManagerSupplier & ComponentUtilSupplier,PROP extends Nameable, AppDef<APP,PARAM extends Type.Parameter.BundleProvider> PROP, modbusGroupPARAM> (PROP modbusId, AppDef<? super APP, ? super PROP, ? super PARAM> modbusIdDef, PROP modbusUnitId, AppDef<? super APP, ? super PROP, ? super PARAM> modbusUnitIdDef, PROP connectionModubsType) Creates aAppDef
group of aComponentProps.pickModbusId()
and amodbusUnitId()
to check if the current selected modbus unit id already got selected.- Type Parameters:
APP
- the type of the appPROP
- the type of the propertiesPARAM
- the type of the parameters- Parameters:
modbusId
- theNameable
of the modbus idmodbusIdDef
- theAppDef
of the modbus idmodbusUnitId
- theNameable
of the modbus unit idmodbusUnitIdDef
- theAppDef
of the modbus unit idconnectionModubsType
- if set add a default value of 1 ifModbusType.TCP
is selected- Returns:
- the
AppDef
-