Package io.openems.edge.app.common.props
Class ComponentProps
java.lang.Object
io.openems.edge.app.common.props.ComponentProps
Static method collection for
AppDefs
for selecting different
kinds of OpenemsComponents
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <APP extends OpenemsApp & ComponentManagerSupplier>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> Creates aAppDef
for a input to select a enabledOpenemsComponent
.static <APP extends OpenemsApp & ComponentUtilSupplier,
T extends OpenemsComponent>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> pickComponentId
(Class<T> type) Creates aAppDef
for a input to select a enabledOpenemsComponent
of the given type.static <APP extends OpenemsApp & ComponentUtilSupplier,
T extends OpenemsComponent>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> pickComponentId
(Class<T> type, Predicate<T> filter) Creates aAppDef
for a input to select a enabledOpenemsComponent
of the given type and filtered by the given filter.static <APP extends OpenemsApp & ComponentUtilSupplier>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> pickComponentId
(String startingId) Creates aAppDef
for a input to select a enabledOpenemsComponent
with the given starting id.static <APP extends OpenemsApp & ComponentUtilSupplier>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> pickComponentId
(String startingId, Predicate<OpenemsComponent> filter) Creates aAppDef
for a input to select a enabledOpenemsComponent
with the given starting id.static <APP extends OpenemsApp & ComponentUtilSupplier>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> static <APP extends OpenemsApp & ComponentUtilSupplier>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> Creates aAppDef
for a input to select anElectricityMeter
.static <APP extends OpenemsApp & ComponentUtilSupplier>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> Creates aAppDef
for a input to select aManagedSymmetricEss
.static <APP extends OpenemsApp & ComponentUtilSupplier & AppManagerUtilSupplier>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> Creates aAppDef
for a input to select aOpenemsComponent
with the starting id 'modbus'.static <APP extends OpenemsApp & ComponentUtilSupplier & AppManagerUtilSupplier>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> pickModbusId
(Predicate<OpenemsComponent> filter) Creates aAppDef
for a input to select aOpenemsComponent
with the starting id 'modbus'.static <APP extends OpenemsApp & ComponentUtilSupplier,
T extends OpenemsComponent>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> pickOrderedArrayIds
(Class<T> type, Predicate<T> filter, AppDef.FieldValuesFunction<APP, Nameable, Type.Parameter.BundleProvider, OpenemsComponent, ReorderArrayBuilder.SelectOptionExpressions> expressionFunction, List<AppDef.FieldValuesSupplier<APP, Nameable, Type.Parameter.BundleProvider, FormlyBuilder<?>>> additionalFieldSupplier) Creates aAppDef
for a input to select component ids with a specific order.static <APP extends OpenemsApp>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> pickOrderedArrayIds
(Function<APP, List<? extends OpenemsComponent>> supplyComponents, AppDef.FieldValuesFunction<APP, Nameable, Type.Parameter.BundleProvider, OpenemsComponent, ReorderArrayBuilder.SelectOptionExpressions> expressionFunction, List<AppDef.FieldValuesSupplier<APP, Nameable, Type.Parameter.BundleProvider, FormlyBuilder<?>>> additionalFieldSupplier) Creates aAppDef
for a input to select component ids with a specific order.static <APP extends OpenemsApp & ComponentUtilSupplier & AppManagerUtilSupplier>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> Creates aAppDef
for a input to select aOpenemsComponent
with the starting id 'modbus' and the factoryId 'Bridge.Modbus.Serial'.static <APP extends OpenemsApp & ComponentUtilSupplier & AppManagerUtilSupplier>
AppDef<APP, Nameable, Type.Parameter.BundleProvider> Creates aAppDef
for a input to select aOpenemsComponent
with the starting id 'modbus' and the factoryId 'Bridge.Modbus.Tcp'.
-
Method Details
-
pickComponentId
public static <APP extends OpenemsApp & ComponentManagerSupplier> AppDef<APP,Nameable, pickComponentId()Type.Parameter.BundleProvider> Creates aAppDef
for a input to select a enabledOpenemsComponent
.- Type Parameters:
APP
- the type of theOpenemsApp
- Returns:
- the
AppDef
-
pickComponentId
public static <APP extends OpenemsApp & ComponentUtilSupplier,T extends OpenemsComponent> AppDef<APP,Nameable, pickComponentIdType.Parameter.BundleProvider> (Class<T> type) Creates aAppDef
for a input to select a enabledOpenemsComponent
of the given type.- Type Parameters:
APP
- the type of theOpenemsApp
T
- the type of the component- Parameters:
type
- the type of theOpenemsComponents
- Returns:
- the
AppDef
-
pickComponentId
public static <APP extends OpenemsApp & ComponentUtilSupplier,T extends OpenemsComponent> AppDef<APP,Nameable, pickComponentIdType.Parameter.BundleProvider> (Class<T> type, Predicate<T> filter) Creates aAppDef
for a input to select a enabledOpenemsComponent
of the given type and filtered by the given filter.- Type Parameters:
APP
- the type of theOpenemsApp
T
- the type of the component- Parameters:
type
- the type of theOpenemsComponents
filter
- the filter of the components- Returns:
- the
AppDef
-
pickComponentId
public static <APP extends OpenemsApp & ComponentUtilSupplier> AppDef<APP,Nameable, pickComponentIdType.Parameter.BundleProvider> (String startingId, Predicate<OpenemsComponent> filter) Creates aAppDef
for a input to select a enabledOpenemsComponent
with the given starting id.- Type Parameters:
APP
- the type of theOpenemsApp
- Parameters:
startingId
- the starting id of the components e. g. evcs for all evcss: evcs0, evcs1, ...filter
- the filter to apply on the component list- Returns:
- the
AppDef
-
pickComponentId
public static <APP extends OpenemsApp & ComponentUtilSupplier> AppDef<APP,Nameable, pickComponentIdType.Parameter.BundleProvider> (String startingId) Creates aAppDef
for a input to select a enabledOpenemsComponent
with the given starting id.- Type Parameters:
APP
- the type of theOpenemsApp
- Parameters:
startingId
- the starting id of the components e. g. evcs for all evcss: evcs0, evcs1, ...- Returns:
- the
AppDef
-
pickManagedSymmetricEssId
public static <APP extends OpenemsApp & ComponentUtilSupplier> AppDef<APP,Nameable, pickManagedSymmetricEssId()Type.Parameter.BundleProvider> Creates aAppDef
for a input to select aManagedSymmetricEss
.- Type Parameters:
APP
- the type of theOpenemsApp
- Returns:
- the
AppDef
-
pickElectricityMeterId
public static <APP extends OpenemsApp & ComponentUtilSupplier> AppDef<APP,Nameable, pickElectricityMeterId()Type.Parameter.BundleProvider> Creates aAppDef
for a input to select anElectricityMeter
.- Type Parameters:
APP
- the type of theOpenemsApp
- Returns:
- the
AppDef
-
pickElectricityGridMeterId
public static <APP extends OpenemsApp & ComponentUtilSupplier> AppDef<APP,Nameable, pickElectricityGridMeterId()Type.Parameter.BundleProvider> - Type Parameters:
APP
- the type of theOpenemsApp
- Returns:
- the
AppDef
-
pickModbusId
public static <APP extends OpenemsApp & ComponentUtilSupplier & AppManagerUtilSupplier> AppDef<APP,Nameable, pickModbusIdType.Parameter.BundleProvider> (Predicate<OpenemsComponent> filter) Creates aAppDef
for a input to select aOpenemsComponent
with the starting id 'modbus'.- Type Parameters:
APP
- the type of theOpenemsApp
- Parameters:
filter
- the filter to apply on the component list- Returns:
- the
AppDef
-
pickModbusId
public static <APP extends OpenemsApp & ComponentUtilSupplier & AppManagerUtilSupplier> AppDef<APP,Nameable, pickModbusId()Type.Parameter.BundleProvider> Creates aAppDef
for a input to select aOpenemsComponent
with the starting id 'modbus'.- Type Parameters:
APP
- the type of theOpenemsApp
- Returns:
- the
AppDef
-
pickSerialModbusId
public static <APP extends OpenemsApp & ComponentUtilSupplier & AppManagerUtilSupplier> AppDef<APP,Nameable, pickSerialModbusId()Type.Parameter.BundleProvider> Creates aAppDef
for a input to select aOpenemsComponent
with the starting id 'modbus' and the factoryId 'Bridge.Modbus.Serial'.- Type Parameters:
APP
- the type of theOpenemsApp
- Returns:
- the
AppDef
-
pickTcpModbusId
public static <APP extends OpenemsApp & ComponentUtilSupplier & AppManagerUtilSupplier> AppDef<APP,Nameable, pickTcpModbusId()Type.Parameter.BundleProvider> Creates aAppDef
for a input to select aOpenemsComponent
with the starting id 'modbus' and the factoryId 'Bridge.Modbus.Tcp'.- Type Parameters:
APP
- the type of theOpenemsApp
- Returns:
- the
AppDef
-
pickOrderedArrayIds
public static <APP extends OpenemsApp> AppDef<APP,Nameable, pickOrderedArrayIdsType.Parameter.BundleProvider> (Function<APP, List<? extends OpenemsComponent>> supplyComponents, AppDef.FieldValuesFunction<APP, Nameable, Type.Parameter.BundleProvider, OpenemsComponent, ReorderArrayBuilder.SelectOptionExpressions> expressionFunction, List<AppDef.FieldValuesSupplier<APP, Nameable, Type.Parameter.BundleProvider, FormlyBuilder<?>>> additionalFieldSupplier) Creates aAppDef
for a input to select component ids with a specific order. Used for e. g. in ModbusTcpApi's or EVCS Cluster.- Type Parameters:
APP
- the type of theOpenemsApp
- Parameters:
supplyComponents
- the method to get the selectable components fromexpressionFunction
- the function to get the expressions of oneReorderArrayBuilder.SelectOption
additionalFieldSupplier
- the additional fields which are inserted after the component selection; can be used to display additional information inside the modal- Returns:
- the
AppDef
-
pickOrderedArrayIds
public static <APP extends OpenemsApp & ComponentUtilSupplier,T extends OpenemsComponent> AppDef<APP,Nameable, pickOrderedArrayIdsType.Parameter.BundleProvider> (Class<T> type, Predicate<T> filter, AppDef.FieldValuesFunction<APP, Nameable, Type.Parameter.BundleProvider, OpenemsComponent, ReorderArrayBuilder.SelectOptionExpressions> expressionFunction, List<AppDef.FieldValuesSupplier<APP, Nameable, Type.Parameter.BundleProvider, FormlyBuilder<?>>> additionalFieldSupplier) Creates aAppDef
for a input to select component ids with a specific order. Used for e. g. in ModbusTcpApi's or EVCS Cluster.- Type Parameters:
APP
- the type of theOpenemsApp
T
- the type of the selectable components- Parameters:
type
- the class of the selectable componentsfilter
- the filter to apply on the component listexpressionFunction
- the function to get the expressions of oneReorderArrayBuilder.SelectOption
additionalFieldSupplier
- the additional fields which are inserted after the component selection; can be used to display additional information inside the modal- Returns:
- the
AppDef
-