Package io.openems.edge.app.evcs
Class EvcsCluster
java.lang.Object
io.openems.edge.core.appmanager.AbstractOpenemsApp<PROPERTY>
io.openems.edge.core.appmanager.AbstractOpenemsAppWithProps<EvcsCluster,EvcsCluster.Property,Type.Parameter.BundleParameter>
io.openems.edge.app.evcs.EvcsCluster
- All Implemented Interfaces:
ComponentManagerSupplier
,ComponentUtilSupplier
,OpenemsApp
public class EvcsCluster
extends AbstractOpenemsAppWithProps<EvcsCluster,EvcsCluster.Property,Type.Parameter.BundleParameter>
implements OpenemsApp
Describes a evcs cluster.
{
"appId":"App.Evcs.Cluster",
"alias":"Multiladepunkt-Management",
"instanceId": UUID,
"image": base64,
"properties":{
"EVCS_CLUSTER_ID": "evcsCluster0",
"EVCS_IDS": [ "evcs0", "evcs1", ...]
},
"appDescriptor": {
"websiteUrl": AppDescriptor.getWebsiteUrl()
}
}
-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionEvcsCluster
(ComponentManager componentManager, org.osgi.service.component.ComponentContext componentContext, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil) -
Method Summary
Modifier and TypeMethodDescriptionprotected ThrowingTriFunction<ConfigurationTarget,
Map<EvcsCluster.Property, com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> Provides a factory forAppConfigurations
.static List<DependencyDeclaration>
dependency
(ConfigurationTarget target, ComponentManager cm, ComponentUtil componentUtil, OptionalInt hardwarePowerLimitPerPhase, String... addedEvcsIdsArray) Creates a dependency for aEvcsCluster
.static List<DependencyDeclaration>
dependency
(ConfigurationTarget target, ComponentManager cm, ComponentUtil componentUtil, OptionalInt hardwarePowerLimitPerPhase, List<String> removeEvcsIds, String... addedEvcsIdsArray) Creates a dependency for aEvcsCluster
.protected EvcsCluster
getApp()
Gets theAppDescriptor
of theOpenemsApp
.Gets theOpenemsAppCardinality
of theOpenemsApp
.Gets theOpenemsAppCategory
of theOpenemsApp
.protected EvcsCluster.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, 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
-
EvcsCluster
public EvcsCluster(ComponentManager componentManager, org.osgi.service.component.ComponentContext componentContext, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil)
-
-
Method Details
-
appPropertyConfigurationFactory
protected ThrowingTriFunction<ConfigurationTarget,Map<EvcsCluster.Property, appPropertyConfigurationFactory()com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> Description copied from class:AbstractOpenemsApp
Provides a factory forAppConfigurations
.- Specified by:
appPropertyConfigurationFactory
in classAbstractOpenemsApp<EvcsCluster.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
-
propertyValues
- Specified by:
propertyValues
in classAbstractOpenemsApp<EvcsCluster.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<EvcsCluster,
EvcsCluster.Property, Type.Parameter.BundleParameter>
-
dependency
public static List<DependencyDeclaration> dependency(ConfigurationTarget target, ComponentManager cm, ComponentUtil componentUtil, OptionalInt hardwarePowerLimitPerPhase, String... addedEvcsIdsArray) throws OpenemsError.OpenemsNamedException Creates a dependency for aEvcsCluster
.- Parameters:
target
- the target of the configurationcm
- theComponentManager
componentUtil
- theComponentUtil
hardwarePowerLimitPerPhase
- theEvcsCluster.Property.MAX_HARDWARE_POWER_LIMIT_PER_PHASE
addedEvcsIdsArray
- the ids of the evcss which got added- Returns:
- a
List
of theDependencyDeclaration
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
dependency
public static List<DependencyDeclaration> dependency(ConfigurationTarget target, ComponentManager cm, ComponentUtil componentUtil, OptionalInt hardwarePowerLimitPerPhase, List<String> removeEvcsIds, String... addedEvcsIdsArray) throws OpenemsError.OpenemsNamedException Creates a dependency for aEvcsCluster
.- Parameters:
target
- the target of the configurationcm
- theComponentManager
componentUtil
- theComponentUtil
hardwarePowerLimitPerPhase
- theEvcsCluster.Property.MAX_HARDWARE_POWER_LIMIT_PER_PHASE
removeEvcsIds
- the evcs ids which got removedaddedEvcsIdsArray
- the ids of the evcss which got added- Returns:
- a
List
of theDependencyDeclaration
- Throws:
OpenemsError.OpenemsNamedException
- on error
-