Class GridOptimizedCharge
java.lang.Object
io.openems.edge.core.appmanager.AbstractOpenemsApp<GridOptimizedCharge.Property>
io.openems.edge.core.appmanager.AbstractEnumOpenemsApp<GridOptimizedCharge.Property>
io.openems.edge.app.pvselfconsumption.GridOptimizedCharge
- All Implemented Interfaces:
ComponentManagerSupplier
,ComponentUtilSupplier
,OpenemsApp
public class GridOptimizedCharge
extends AbstractEnumOpenemsApp<GridOptimizedCharge.Property>
implements OpenemsApp
Describes a App for a Grid Optimized Charge.
{
"appId":"App.PvSelfConsumption.GridOptimizedCharge",
"alias":"Netzdienliche Beladung",
"instanceId": UUID,
"image": base64,
"properties":{
"SELL_TO_GRID_LIMIT_ENABLED": true,
"CTRL_GRID_OPTIMIZED_CHARGE_ID": "ctrlGridOptimizedCharge0",
"MAXIMUM_SELL_TO_GRID_POWER": 10000
},
"appDescriptor": {
"websiteUrl": AppDescriptor.getWebsiteUrl()
}
}
-
Nested Class Summary
-
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
ConstructorDescriptionGridOptimizedCharge
(ComponentManager componentManager, org.osgi.service.component.ComponentContext componentContext, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil) -
Method Summary
Modifier and TypeMethodDescriptionprotected ThrowingTriFunction
<ConfigurationTarget, EnumMap<GridOptimizedCharge.Property, com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> getAppAssistant
(Language language) Gets theAppDescriptor
of theOpenemsApp
.Gets theOpenemsAppCardinality
of theOpenemsApp
.Gets theOpenemsAppCategory
of theOpenemsApp
.protected Class
<GridOptimizedCharge.Property> Methods inherited from class io.openems.edge.core.appmanager.AbstractEnumOpenemsApp
appPropertyConfigurationFactory, getId, getValueOrDefault, propertyValues
Methods inherited from class io.openems.edge.core.appmanager.AbstractOpenemsApp
base64OfImage, createResourceBundle, fillUpProperties, getAppAssistant, getAppConfiguration, getAppId, getAppPermissions, getComponentManager, getComponentUtil, getComponentWithFactoryId, getId, getImage, getName, getNullableTranslation, getProperties, 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
-
GridOptimizedCharge
public GridOptimizedCharge(ComponentManager componentManager, org.osgi.service.component.ComponentContext componentContext, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil)
-
-
Method Details
-
appConfigurationFactory
protected ThrowingTriFunction<ConfigurationTarget,EnumMap<GridOptimizedCharge.Property, appConfigurationFactory()com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> - Specified by:
appConfigurationFactory
in classAbstractEnumOpenemsApp<GridOptimizedCharge.Property>
-
getAppAssistant
- Overrides:
getAppAssistant
in classAbstractOpenemsApp<GridOptimizedCharge.Property>
-
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
-
getPropertyClass
- Specified by:
getPropertyClass
in classAbstractEnumOpenemsApp<GridOptimizedCharge.Property>
-
getCardinality
Description copied from interface:OpenemsApp
Gets theOpenemsAppCardinality
of theOpenemsApp
.- Specified by:
getCardinality
in interfaceOpenemsApp
- Returns:
- the usage
-