Package io.openems.edge.app.meter
Class MicrocareSdm630Meter
- All Implemented Interfaces:
AppManagerUtilSupplier
,ComponentManagerSupplier
,ComponentUtilSupplier
,OpenemsApp
public class MicrocareSdm630Meter
extends AbstractOpenemsAppWithProps<MicrocareSdm630Meter,MicrocareSdm630Meter.Property,Type.Parameter.BundleParameter>
implements OpenemsApp, AppManagerUtilSupplier
Describes a Microcare SDM630 meter App.
{
"appId":"App.Meter.Microcare.Sdm630",
"alias":"SDM630 Zähler",
"instanceId": UUID,
"image": base64,
"properties":{
"METER_ID": "meter0",
"TYPE": "PRODUCTION",
"MODBUS_ID":"modbus0",
"MODBUS_UNIT_ID":"10"
},
"appDescriptor": {
"websiteUrl": AppDescriptor.getWebsiteUrl()
}
}
-
Nested Class Summary
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
ConstructorDescriptionMicrocareSdm630Meter
(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<MicrocareSdm630Meter.Property, com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> Provides a factory forAppConfigurations
.protected MicrocareSdm630Meter
getApp()
Gets theAppDescriptor
of theOpenemsApp
.Gets aAppManagerUtil
.Gets theOpenemsAppCardinality
of theOpenemsApp
.Gets theOpenemsAppCategory
of theOpenemsApp
.protected OpenemsAppStatus
protected MicrocareSdm630Meter.Property[]
Methods inherited from class io.openems.edge.core.appmanager.AbstractOpenemsAppWithProps
flags, getAppAssistant, getAppConfiguration, getBoolean, getBoolean, getEnum, getEnum, getId, getInt, getInt, getJsonArray, getProperties, 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, getValidateBuilder, 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
-
MicrocareSdm630Meter
public MicrocareSdm630Meter(ComponentManager componentManager, org.osgi.service.component.ComponentContext componentContext, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil, AppManagerUtil appManagerUtil)
-
-
Method Details
-
getAppManagerUtil
Description copied from interface:AppManagerUtilSupplier
Gets aAppManagerUtil
.- Specified by:
getAppManagerUtil
in interfaceAppManagerUtilSupplier
- Returns:
- the
AppManagerUtil
-
appPropertyConfigurationFactory
protected ThrowingTriFunction<ConfigurationTarget,Map<MicrocareSdm630Meter.Property, appPropertyConfigurationFactory()com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> Description copied from class:AbstractOpenemsApp
Provides a factory forAppConfigurations
.- Specified by:
appPropertyConfigurationFactory
in classAbstractOpenemsApp<MicrocareSdm630Meter.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
-
getCardinality
Description copied from interface:OpenemsApp
Gets theOpenemsAppCardinality
of theOpenemsApp
.- Specified by:
getCardinality
in interfaceOpenemsApp
- Returns:
- the usage
-
getCategories
Description copied from interface:OpenemsApp
Gets theOpenemsAppCategory
of theOpenemsApp
.- Specified by:
getCategories
in interfaceOpenemsApp
- Returns:
- the category's
-
getStatus
-
getApp
- Specified by:
getApp
in classAbstractOpenemsAppWithProps<MicrocareSdm630Meter,
MicrocareSdm630Meter.Property, Type.Parameter.BundleParameter>
-
propertyValues
- Specified by:
propertyValues
in classAbstractOpenemsApp<MicrocareSdm630Meter.Property>
-