Class ConfigurationManager
- java.lang.Object
-
- de.iip_ecosphere.platform.configuration.ConfigurationManager
-
public class ConfigurationManager extends java.lang.ObjectHolds the platform configuration and provides operations on the configuration. TheConfigurationLifecycleDescriptormust be used and executed before.- Author:
- Holger Eichelberger, SSE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classConfigurationManager.IipProgressMonitorBridges between EASy progress monitoring and IIP progress notifications.
-
Field Summary
Fields Modifier and Type Field Description private static AasIvmlMapperaasIvmlMapperprivate static de.iip_ecosphere.platform.support.iip_aas.json.JsonResultWrapper.OperationCompletedListeneraasOpListenerprivate static net.ssehub.easy.producer.core.mgmt.EasyExecutorexecutorprivate static booleaninitializedprivate static org.slf4j.Loggerloggerprivate static net.ssehub.easy.basics.progress.BasicProgressObserverobserver
-
Constructor Summary
Constructors Constructor Description ConfigurationManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AasIvmlMappergetAasIvmlMapper()Returns the global AAS IVML mapper (for AAS lambda functions).static de.iip_ecosphere.platform.support.iip_aas.json.JsonResultWrapper.OperationCompletedListenergetAasOperationCompletedListener()Returns the global AAS operation completed listener (for AAS lambda functions).(package private) static net.ssehub.easy.producer.core.mgmt.EasyExecutorgetExecutor()Returns the executor instance.static net.ssehub.easy.varModel.confModel.ConfigurationgetIvmlConfiguration()Returns the IVML configuration.private static org.slf4j.LoggergetLogger()Returns the logger for this class.static net.ssehub.easy.instantiation.core.model.vilTypes.configuration.ConfigurationgetVilConfiguration()Returns a VIL configuration.private static voidinit()Lazy initialization of the executor through loading the IVML model.static voidinstantiate()Performs a platform instantiation.static voidinstantiate(java.lang.String startRuleName)Performs a platform instantiation.static voidreload()Reloads the model.static voidsetAasIvmlMapper(AasIvmlMapper mapper)Defines the global AAS IVML mapper (for AAS lambda functions).static voidsetAasOperationCompletedListener(de.iip_ecosphere.platform.support.iip_aas.json.JsonResultWrapper.OperationCompletedListener listener)Defines the global AAS operation completed listener (for AAS lambda functions).(package private) static voidsetExecutor(net.ssehub.easy.producer.core.mgmt.EasyExecutor instance)Defines the executor instance.static net.ssehub.easy.reasoning.core.reasoner.ReasoningResultvalidateAndPropagate()Validates the model and propagates values within the model.
-
-
-
Field Detail
-
logger
private static org.slf4j.Logger logger
-
executor
private static net.ssehub.easy.producer.core.mgmt.EasyExecutor executor
-
initialized
private static boolean initialized
-
observer
private static net.ssehub.easy.basics.progress.BasicProgressObserver observer
-
aasIvmlMapper
private static AasIvmlMapper aasIvmlMapper
-
aasOpListener
private static de.iip_ecosphere.platform.support.iip_aas.json.JsonResultWrapper.OperationCompletedListener aasOpListener
-
-
Method Detail
-
setExecutor
static void setExecutor(net.ssehub.easy.producer.core.mgmt.EasyExecutor instance)
Defines the executor instance. Called fromConfigurationLifecycleDescriptor.- Parameters:
instance- the executor instance
-
getExecutor
static net.ssehub.easy.producer.core.mgmt.EasyExecutor getExecutor()
Returns the executor instance.- Returns:
- the executor instance
-
init
private static void init()
Lazy initialization of the executor through loading the IVML model. Assumption: Locations are set before.
-
reload
public static void reload()
Reloads the model.
-
getIvmlConfiguration
public static net.ssehub.easy.varModel.confModel.Configuration getIvmlConfiguration()
Returns the IVML configuration.- Returns:
- the configuration
-
getVilConfiguration
public static net.ssehub.easy.instantiation.core.model.vilTypes.configuration.Configuration getVilConfiguration()
Returns a VIL configuration.- Returns:
- a configuration
-
validateAndPropagate
public static net.ssehub.easy.reasoning.core.reasoner.ReasoningResult validateAndPropagate()
Validates the model and propagates values within the model.- Returns:
- the reasoning result (preliminary)
-
instantiate
public static void instantiate(java.lang.String startRuleName) throws java.util.concurrent.ExecutionExceptionPerforms a platform instantiation.- Parameters:
startRuleName- the name of the start rule to execute- Throws:
java.util.concurrent.ExecutionException- if the instantiation fails for some reason
-
instantiate
public static void instantiate() throws java.util.concurrent.ExecutionExceptionPerforms a platform instantiation.- Throws:
java.util.concurrent.ExecutionException- if the instantiation fails for some reason
-
setAasIvmlMapper
public static void setAasIvmlMapper(AasIvmlMapper mapper)
Defines the global AAS IVML mapper (for AAS lambda functions).- Parameters:
mapper- the mapper instance (ignored if null)
-
getAasIvmlMapper
public static AasIvmlMapper getAasIvmlMapper()
Returns the global AAS IVML mapper (for AAS lambda functions).- Returns:
- the mapper instance
-
setAasOperationCompletedListener
public static void setAasOperationCompletedListener(de.iip_ecosphere.platform.support.iip_aas.json.JsonResultWrapper.OperationCompletedListener listener)
Defines the global AAS operation completed listener (for AAS lambda functions).- Parameters:
listener- the listener
-
getAasOperationCompletedListener
public static de.iip_ecosphere.platform.support.iip_aas.json.JsonResultWrapper.OperationCompletedListener getAasOperationCompletedListener()
Returns the global AAS operation completed listener (for AAS lambda functions).- Returns:
- the listener (may be null)
-
getLogger
private static org.slf4j.Logger getLogger()
Returns the logger for this class.- Returns:
- the logger instance
-
-