Package io.openems.edge.core.appmanager
Class AppManagerUtilImpl
java.lang.Object
io.openems.edge.core.appmanager.AppManagerUtilImpl
- All Implemented Interfaces:
AppManagerUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAppById
(String appId) Gets theOpenemsApp
for the given appId.getAppConfiguration
(ConfigurationTarget target, OpenemsApp app, String alias, com.google.gson.JsonObject properties, Language language) Gets theAppConfiguration
with the given parameter.getAppsWithDependencyTo
(OpenemsAppInstance instance) getInstanceById
(UUID instanceId) Gets theOpenemsAppInstance
for the given instanceId.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.AppManagerUtil
getAppConfiguration, getAppConfiguration, getAppConfiguration
-
Constructor Details
-
AppManagerUtilImpl
-
-
Method Details
-
getAppById
Description copied from interface:AppManagerUtil
Gets theOpenemsApp
for the given appId.- Specified by:
getAppById
in interfaceAppManagerUtil
- Parameters:
appId
- the appId of theOpenemsApp
- Returns:
- the
OpenemsApp
- Throws:
NoSuchElementException
- if there is noOpenemsApp
with the given appId
-
getInstanceById
Description copied from interface:AppManagerUtil
Gets theOpenemsAppInstance
for the given instanceId.- Specified by:
getInstanceById
in interfaceAppManagerUtil
- Parameters:
instanceId
- the instanceId of theOpenemsAppInstance
- Returns:
- the
OpenemsAppInstance
- Throws:
NoSuchElementException
- if there is notOpenemsAppInstance
with the given instanceId
-
getAppConfiguration
public AppConfiguration getAppConfiguration(ConfigurationTarget target, OpenemsApp app, String alias, com.google.gson.JsonObject properties, Language language) throws OpenemsError.OpenemsNamedException Description copied from interface:AppManagerUtil
Gets theAppConfiguration
with the given parameter.- Specified by:
getAppConfiguration
in interfaceAppManagerUtil
- Parameters:
target
- theConfigurationTarget
of the configurationapp
- theOpenemsApp
alias
- the alias of the instanceproperties
- theJsonObject
properties of the instancelanguage
- theLanguage
of the configuration- Returns:
- the
AppConfiguration
- Throws:
OpenemsException
- on errorOpenemsError.OpenemsNamedException
-
getAppsWithDependencyTo
Description copied from interface:AppManagerUtil
- Specified by:
getAppsWithDependencyTo
in interfaceAppManagerUtil
- Parameters:
instance
- the instance which is referenced- Returns:
- the referencing instances
-