Package io.openems.edge.app.pvinverter
Class SmaPvInverter
- java.lang.Object
-
- io.openems.edge.core.appmanager.AbstractOpenemsApp<PROPERTY>
-
- io.openems.edge.app.pvinverter.AbstractPvInverter<SmaPvInverter.Property>
-
- io.openems.edge.app.pvinverter.SmaPvInverter
-
- All Implemented Interfaces:
OpenemsApp
public class SmaPvInverter extends AbstractPvInverter<SmaPvInverter.Property> implements OpenemsApp
Describes a App for SMA PV-Inverter.{ "appId":"App.PvInverter.Sma", "alias":"SMA PV-Wechselrichter", "instanceId": UUID, "image": base64, "properties":{ "PV_INVERTER_ID": "pvInverter0", "MODBUS_ID": "modbus0", "IP": "192.168.178.85", "PORT": "502", "MODBUS_UNIT_ID": "126" }, "appDescriptor": { "websiteUrl":
AppDescriptor.getWebsiteUrl()
} }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SmaPvInverter.Property
-
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
Constructors Constructor Description SmaPvInverter(ComponentManager componentManager, org.osgi.service.component.ComponentContext context, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ThrowingTriFunction<ConfigurationTarget,java.util.EnumMap<SmaPvInverter.Property,com.google.gson.JsonElement>,Language,AppConfiguration,OpenemsError.OpenemsNamedException>
appConfigurationFactory()
Provides a factory forAppConfigurations
.AppAssistant
getAppAssistant(Language language)
Gets theAppAssistant
for thisOpenemsApp
.AppDescriptor
getAppDescriptor()
Gets theAppDescriptor
of theOpenemsApp
.OpenemsAppCardinality
getCardinality()
Gets theOpenemsAppCardinality
of theOpenemsApp
.protected java.lang.Class<SmaPvInverter.Property>
getPropertyClass()
-
Methods inherited from class io.openems.edge.app.pvinverter.AbstractPvInverter
buildIp, buildModbusUnitId, buildPort, getCategorys, getComponents
-
Methods inherited from class io.openems.edge.core.appmanager.AbstractOpenemsApp
assertCheckables, base64OfImage, getAppConfiguration, getAppId, getComponentWithFactoryId, getId, getId, getImage, getName, getTranslation, getTranslationBundle, getValidateBuilder, getValidatorConfig, getValueOrDefault, 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
getAppConfiguration, getAppId, getCategorys, getImage, getName, getValidatorConfig, validate
-
-
-
-
Constructor Detail
-
SmaPvInverter
public SmaPvInverter(ComponentManager componentManager, org.osgi.service.component.ComponentContext context, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil)
-
-
Method Detail
-
appConfigurationFactory
protected ThrowingTriFunction<ConfigurationTarget,java.util.EnumMap<SmaPvInverter.Property,com.google.gson.JsonElement>,Language,AppConfiguration,OpenemsError.OpenemsNamedException> appConfigurationFactory()
Description copied from class:AbstractOpenemsApp
Provides a factory forAppConfigurations
.- Specified by:
appConfigurationFactory
in classAbstractOpenemsApp<SmaPvInverter.Property>
- Returns:
- a
ThrowingFunction
that creates aAppConfiguration
from aEnumMap
of configuration properties for a givenConfigurationTarget
in the specified language.
-
getAppAssistant
public AppAssistant getAppAssistant(Language language)
Description copied from interface:OpenemsApp
Gets theAppAssistant
for thisOpenemsApp
.- Specified by:
getAppAssistant
in interfaceOpenemsApp
- Parameters:
language
- the language of theAppAssistant
- Returns:
- the AppAssistant
-
getAppDescriptor
public AppDescriptor getAppDescriptor()
Description copied from interface:OpenemsApp
Gets theAppDescriptor
of theOpenemsApp
.- Specified by:
getAppDescriptor
in interfaceOpenemsApp
- Returns:
- the
AppDescriptor
-
getPropertyClass
protected java.lang.Class<SmaPvInverter.Property> getPropertyClass()
- Specified by:
getPropertyClass
in classAbstractOpenemsApp<SmaPvInverter.Property>
-
getCardinality
public OpenemsAppCardinality getCardinality()
Description copied from interface:OpenemsApp
Gets theOpenemsAppCardinality
of theOpenemsApp
.- Specified by:
getCardinality
in interfaceOpenemsApp
- Returns:
- the usage
-
-