Package io.openems.edge.app.heat
Class HeatingElement
java.lang.Object
io.openems.edge.core.appmanager.AbstractOpenemsApp<PROPERTY>
io.openems.edge.core.appmanager.AbstractOpenemsAppWithProps<HeatingElement,HeatingElement.Property,HeatingElement.HeatingElementParameter>
io.openems.edge.app.heat.HeatingElement
- All Implemented Interfaces:
ComponentManagerSupplier
,ComponentUtilSupplier
,OpenemsApp
public class HeatingElement
extends AbstractOpenemsAppWithProps<HeatingElement,HeatingElement.Property,HeatingElement.HeatingElementParameter>
implements OpenemsApp
Describes a App for a RTU Heating Element.
{
"appId":"App.Heat.HeatingElement",
"alias":"Heizstab",
"instanceId": UUID,
"image": base64,
"properties":{
"CTRL_IO_HEATING_ELEMENT_ID": "ctrlIoHeatingElement0",
"OUTPUT_CHANNEL_PHASE_L1": "io0/Relay1",
"OUTPUT_CHANNEL_PHASE_L2": "io0/Relay2",
"OUTPUT_CHANNEL_PHASE_L3": "io0/Relay3",
"POWER_PER_PHASE": 2000
},
"dependencies": [
{
"key": "RELAY",
"instanceId": UUID
}
],
"appDescriptor": {
"websiteUrl": AppDescriptor.getWebsiteUrl()
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static enum
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
ConstructorsConstructorDescriptionHeatingElement
(ComponentManager componentManager, org.osgi.service.component.ComponentContext componentContext, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil) -
Method Summary
Modifier and TypeMethodDescriptionprotected ThrowingTriFunction<ConfigurationTarget,
Map<HeatingElement.Property, com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> Provides a factory forAppConfigurations
.protected HeatingElement
getApp()
Gets theAppDescriptor
of theOpenemsApp
.Gets theOpenemsAppCardinality
of theOpenemsApp
.Gets theOpenemsAppCategory
of theOpenemsApp
.protected HeatingElement.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, getValidationErrors, getValueOrDefault
Methods inherited from class io.openems.edge.core.appmanager.AbstractOpenemsApp
assertCheckables, base64OfImage, createResourceBundle, fillUpProperties, getAppAssistant, getAppId, getAppPermissions, getComponentManager, getComponentUtil, getComponentWithFactoryId, getId, getImage, getName, getNullableTranslation, getPropertyByName, getShortName, getTranslation, getTranslationBundle, getValidatorConfig, getValueOrDefault, hasProperty, installationValidation, validate
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, validate
-
Constructor Details
-
HeatingElement
public HeatingElement(ComponentManager componentManager, org.osgi.service.component.ComponentContext componentContext, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil)
-
-
Method Details
-
appPropertyConfigurationFactory
protected ThrowingTriFunction<ConfigurationTarget,Map<HeatingElement.Property, appPropertyConfigurationFactory()com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> Description copied from class:AbstractOpenemsApp
Provides a factory forAppConfigurations
.- Specified by:
appPropertyConfigurationFactory
in classAbstractOpenemsApp<HeatingElement.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
- 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<HeatingElement.Property>
-
getCardinality
Description copied from interface:OpenemsApp
Gets theOpenemsAppCardinality
of theOpenemsApp
.- Specified by:
getCardinality
in interfaceOpenemsApp
- Returns:
- the usage
-
getApp
- Specified by:
getApp
in classAbstractOpenemsAppWithProps<HeatingElement,
HeatingElement.Property, HeatingElement.HeatingElementParameter>
-
propertyValues
- Specified by:
propertyValues
in classAbstractOpenemsApp<HeatingElement.Property>
-