Package io.openems.edge.app.loadcontrol
Class ThresholdControl
java.lang.Object
io.openems.edge.core.appmanager.AbstractOpenemsApp<ThresholdControl.Property>
io.openems.edge.core.appmanager.AbstractOpenemsAppWithProps<ThresholdControl,ThresholdControl.Property,ThresholdControl.ThresholdControlControlParameter>
io.openems.edge.app.loadcontrol.ThresholdControl
- All Implemented Interfaces:
ComponentManagerSupplier
,ComponentUtilSupplier
,OpenemsApp
public class ThresholdControl
extends AbstractOpenemsAppWithProps<ThresholdControl,ThresholdControl.Property,ThresholdControl.ThresholdControlControlParameter>
implements OpenemsApp
Describes a App for a Threshold Controller.
{
"appId":"App.LoadControl.ThresholdControl",
"alias":"Schwellwertsteuerung",
"instanceId": UUID,
"image": base64,
"properties":{
"CTRL_IO_CHANNEL_SINGLE_THRESHOLD_ID": "ctrlIoChannelSingleThreshold0",
"OUTPUT_CHANNELS":['io1/Relay1', 'io1/Relay2']
},
"appDescriptor": {
"websiteUrl": AppDescriptor.getWebsiteUrl()
}
}
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static final record
Nested classes/interfaces inherited from class io.openems.edge.core.appmanager.AbstractOpenemsAppWithProps
AbstractOpenemsAppWithProps.Singleton<T>
-
Field Summary
Fields inherited from class io.openems.edge.core.appmanager.AbstractOpenemsApp
cm, componentContext, componentManager, componentUtil
Fields inherited from interface io.openems.edge.core.appmanager.OpenemsApp
FALLBACK_IMAGE
-
Constructor Summary
ConstructorDescriptionThresholdControl
(ComponentManager componentManager, org.osgi.service.component.ComponentContext componentContext, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil, AppManagerUtil appManagerUtil) -
Method Summary
Modifier and TypeMethodDescriptionprotected ThrowingTriFunction
<ConfigurationTarget, Map<ThresholdControl.Property, com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> Provides a factory forAppConfigurations
.protected ThresholdControl
getApp()
Gets theAppDescriptor
of theOpenemsApp
.Gets theOpenemsAppCardinality
of theOpenemsApp
.Gets theOpenemsAppCategory
of theOpenemsApp
.protected ThresholdControl.Property[]
Methods inherited from class io.openems.edge.core.appmanager.AbstractOpenemsAppWithProps
flags, getAppAssistant, getAppConfiguration, getBoolean, getBoolean, getEnum, getEnum, getId, getInt, getInt, getJsonArray, getProperties, getStatus, getString, getString, getString, getValueOrDefault
Methods inherited from class io.openems.edge.core.appmanager.AbstractOpenemsApp
base64OfImage, createResourceBundle, fillUpProperties, getAppAssistant, getAppId, getAppPermissions, getComponentManager, getComponentUtil, getComponentWithFactoryId, getId, getImage, getName, getNullableTranslation, getPropertyByName, getShortName, getTranslation, getTranslationBundle, getValidatorConfig, getValueOrDefault, hasProperty, installationValidation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.core.appmanager.OpenemsApp
flags, getAppAssistant, getAppConfiguration, getAppId, getAppPermissions, getImage, getName, getProperties, getShortName, getValidatorConfig
-
Constructor Details
-
ThresholdControl
public ThresholdControl(ComponentManager componentManager, org.osgi.service.component.ComponentContext componentContext, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil, AppManagerUtil appManagerUtil)
-
-
Method Details
-
appPropertyConfigurationFactory
protected ThrowingTriFunction<ConfigurationTarget,Map<ThresholdControl.Property, appPropertyConfigurationFactory()com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> Description copied from class:AbstractOpenemsApp
Provides a factory forAppConfigurations
.- Specified by:
appPropertyConfigurationFactory
in classAbstractOpenemsApp<ThresholdControl.Property>
- Returns:
- a
ThrowingFunction
that creates aAppConfiguration
from aMap
of configuration properties for a givenConfigurationTarget
in the specified language.
-
getAppDescriptor
Description copied from interface:OpenemsApp
Gets theAppDescriptor
of theOpenemsApp
.- Specified by:
getAppDescriptor
in interfaceOpenemsApp
- Parameters:
oem
- theOpenemsEdgeOem
- Returns:
- the
AppDescriptor
-
getCategories
Description copied from interface:OpenemsApp
Gets theOpenemsAppCategory
of theOpenemsApp
.- Specified by:
getCategories
in interfaceOpenemsApp
- Returns:
- the category's
-
getValidateBuilder
- Overrides:
getValidateBuilder
in classAbstractOpenemsApp<ThresholdControl.Property>
-
getCardinality
Description copied from interface:OpenemsApp
Gets theOpenemsAppCardinality
of theOpenemsApp
.- Specified by:
getCardinality
in interfaceOpenemsApp
- Returns:
- the usage
-
getApp
-
propertyValues
- Specified by:
propertyValues
in classAbstractOpenemsApp<ThresholdControl.Property>
-