Class ConfigurationManager


  • public class ConfigurationManager
    extends java.lang.Object
    Holds the platform configuration and provides operations on the configuration. The ConfigurationLifecycleDescriptor must be used and executed before.
    Author:
    Holger Eichelberger, SSE
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  ConfigurationManager.IipProgressMonitor
      Bridges between EASy progress monitoring and IIP progress notifications.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static AasIvmlMapper aasIvmlMapper  
      private static de.iip_ecosphere.platform.support.iip_aas.json.JsonResultWrapper.OperationCompletedListener aasOpListener  
      private static net.ssehub.easy.producer.core.mgmt.EasyExecutor executor  
      private static boolean initialized  
      private static org.slf4j.Logger logger  
      private static net.ssehub.easy.basics.progress.BasicProgressObserver observer  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static AasIvmlMapper getAasIvmlMapper()
      Returns the global AAS IVML mapper (for AAS lambda functions).
      static de.iip_ecosphere.platform.support.iip_aas.json.JsonResultWrapper.OperationCompletedListener getAasOperationCompletedListener()
      Returns the global AAS operation completed listener (for AAS lambda functions).
      (package private) static net.ssehub.easy.producer.core.mgmt.EasyExecutor getExecutor()
      Returns the executor instance.
      static net.ssehub.easy.varModel.confModel.Configuration getIvmlConfiguration()
      Returns the IVML configuration.
      private static org.slf4j.Logger getLogger()
      Returns the logger for this class.
      static net.ssehub.easy.instantiation.core.model.vilTypes.configuration.Configuration getVilConfiguration()
      Returns a VIL configuration.
      private static void init()
      Lazy initialization of the executor through loading the IVML model.
      static void instantiate()
      Performs a platform instantiation.
      static void instantiate​(java.lang.String startRuleName)
      Performs a platform instantiation.
      static void reload()
      Reloads the model.
      static void setAasIvmlMapper​(AasIvmlMapper mapper)
      Defines the global AAS IVML mapper (for AAS lambda functions).
      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).
      (package private) static void setExecutor​(net.ssehub.easy.producer.core.mgmt.EasyExecutor instance)
      Defines the executor instance.
      static net.ssehub.easy.reasoning.core.reasoner.ReasoningResult validateAndPropagate()
      Validates the model and propagates values within the model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • aasOpListener

        private static de.iip_ecosphere.platform.support.iip_aas.json.JsonResultWrapper.OperationCompletedListener aasOpListener
    • Constructor Detail

      • ConfigurationManager

        public ConfigurationManager()
    • Method Detail

      • setExecutor

        static void setExecutor​(net.ssehub.easy.producer.core.mgmt.EasyExecutor instance)
        Defines the executor instance. Called from ConfigurationLifecycleDescriptor.
        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.ExecutionException
        Performs 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.ExecutionException
        Performs 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