Class AssemblyLineConfigImpl

    • Constructor Detail

      • AssemblyLineConfigImpl

        public AssemblyLineConfigImpl()
        Constructor for the AssemblyLineConfigImpl object.
      • AssemblyLineConfigImpl

        public AssemblyLineConfigImpl​(java.lang.Object config)
        Constructor providing a TreeMap of attribute/value pairs.
        Parameters:
        config - the config object containing initial data
    • Method Detail

      • init

        public void init()
                  throws java.lang.Exception
        Preload all connectors
        Specified by:
        init in interface BaseConfiguration
        Overrides:
        init in class BaseConfigurationImpl
        Throws:
        java.lang.Exception - An exception is thrown if this method fails.
      • getConnectorCount

        public int getConnectorCount()
        Returns the number of connectors in the assemblyline
        Specified by:
        getConnectorCount in interface AssemblyLineConfig
        Returns:
        The connectorCount value
      • getConnector

        public ConnectorConfig getConnector​(int position)
        Returns the connector attribute of the AssemblyLineConfig object
        Specified by:
        getConnector in interface AssemblyLineConfig
        Parameters:
        position - Connector position
        Returns:
        The connector configuration object
      • getConnectorByName

        public ConnectorConfig getConnectorByName​(java.lang.Object connectorName)
        Returns the connector attribute of the AssemblyLineConfig object
        Specified by:
        getConnectorByName in interface AssemblyLineConfig
        Parameters:
        connectorName - the name of the Connector for which to return the Connector configuration object
        Returns:
        The connector configuration object.
      • getHook

        public HookConfig getHook​(java.lang.String name)
        Returns a specific HookConfig
        Specified by:
        getHook in interface AssemblyLineConfig
        Parameters:
        name - The name of the hook
        Returns:
        The HookConfig with the given name
      • setSettings

        public void setSettings​(BaseConfiguration settings)
        Sets the AssemblyLine Settings of the AssemblyLineConfig
        Specified by:
        setSettings in interface AssemblyLineConfig
        Parameters:
        settings - The new settings value
      • autoMapAllAttributes

        public boolean autoMapAllAttributes​(java.lang.Object connectorName)
                                     throws java.lang.Exception
        Returns the automap flag for the AssemblyLine
        Specified by:
        autoMapAllAttributes in interface AssemblyLineConfig
        Parameters:
        connectorName - The name of an AssemblyLine Component
        Returns:
        true, if the AssemblyLine Component maps all the attributes
        Throws:
        java.lang.Exception - if the check does not succeed
      • getClone

        public java.lang.Object getClone()
                                  throws java.lang.Exception
        Return self clone
        Specified by:
        getClone in interface BaseConfiguration
        Overrides:
        getClone in class BaseConfigurationImpl
        Returns:
        The clone value
        Throws:
        java.lang.Exception - An exception is thrown if this method fails.
      • getSchema

        public SchemaConfig getSchema​(boolean input)
        Returns the AssemblyLine's schema
        Specified by:
        getSchema in interface AssemblyLineConfig
        Parameters:
        input - if true, returns the input schema
        Returns:
        The schema object
      • getSchema

        public SchemaConfig getSchema​(java.lang.String name)
        Returns the AssemblyLine's schema by name ("Input"/"Output")
        Specified by:
        getSchema in interface AssemblyLineConfig
        Parameters:
        name - the name of the schema config to retrieve
        Returns:
        The schema config object
      • getAttributeMap

        public AttributeMapConfig getAttributeMap​(boolean input)
        Returns the AssemblyLine's attribute map
        Specified by:
        getAttributeMap in interface AssemblyLineConfig
        Parameters:
        input - if true, returns the input attribute map
        Returns:
        The attribute map object
      • getAttributeMap

        public AttributeMapConfig getAttributeMap​(java.lang.String name)
        Returns the AssemblyLine's attribute map by name ("Input"/"Output")
        Specified by:
        getAttributeMap in interface AssemblyLineConfig
        Parameters:
        name - the name of the attribute map config to retrieve
        Returns:
        The attribute map config object
      • getComponent

        @Deprecated
        public BaseConfiguration getComponent​(int position)
        Deprecated.
        in TDI 7.0
        Description copied from interface: AssemblyLineConfig
        Returns the component attribute of the AssemblyLineConfig object
        Specified by:
        getComponent in interface AssemblyLineConfig
        Parameters:
        position -
        Returns:
        null
      • removeComponent

        @Deprecated
        public void removeComponent​(int position)
        Deprecated.
        in TDI 7.0
        Does nothing.
        Specified by:
        removeComponent in interface AssemblyLineConfig
        Parameters:
        position -
      • moveComponent

        @Deprecated
        public boolean moveComponent​(int position,
                                     boolean up)
        Deprecated.
        in TDI 7.0
        Description copied from interface: AssemblyLineConfig
        Moves a connector one position up or down
        Specified by:
        moveComponent in interface AssemblyLineConfig
        Parameters:
        position -
        up -
        Returns:
        false
      • renameComponent

        public void renameComponent​(java.lang.String oldName,
                                    java.lang.String newName)
                             throws java.lang.Exception
        Changes the local name of a connector (the name used in script engines etc )
        Specified by:
        renameComponent in interface AssemblyLineConfig
        Parameters:
        oldName - The current name
        newName - .New local name
        Throws:
        java.lang.Exception - if the provided name is invalid or there is already a component with the specified name.
      • containsComponent

        public boolean containsComponent​(java.lang.String name)
        Returns true if there is component (data flow or entry feed) named name
        Specified by:
        containsComponent in interface AssemblyLineConfig
        Parameters:
        name - The name of the config
        Returns:
        True if it exists
      • getComponent

        public BaseConfiguration getComponent​(java.lang.String name)
        Returns the component configuration
        Specified by:
        getComponent in interface AssemblyLineConfig
        Parameters:
        name - The name of the config
        Returns:
        Null if it does not exist else a BaseConfiguration subclass
      • addComponent

        public ContainerConfig addComponent​(BaseConfiguration config)
        This method adds a component configuration object to the correct component container
        Specified by:
        addComponent in interface AssemblyLineConfig
        Parameters:
        config - The configuration object
        Returns:
        The container to which it was added (either DataFlow or EntryFeed container) or NULL if the config object was invalid.
      • removeComponent

        public void removeComponent​(java.lang.String name)
        This method removes a named component configuration object
        Specified by:
        removeComponent in interface AssemblyLineConfig
        Parameters:
        name - The name of the component to remove.
      • setPublishedInitParams

        public void setPublishedInitParams​(SchemaConfig schema)
                                    throws java.lang.Exception
        Sets the Published Initialization Parameter Schema for the AssemblyLine
        Specified by:
        setPublishedInitParams in interface OperationsConfig
        Parameters:
        schema - The new schema
        Throws:
        java.lang.Exception
      • getSimulationConfig

        public SimulationConfig getSimulationConfig()
                                             throws java.lang.Exception
        Retrieves the Simulation Configuration which corresponds to the AssemblyLine.
        Specified by:
        getSimulationConfig in interface AssemblyLineConfig
        Returns:
        SimulationConfig object which represents the Simulation Configuration of the current AssemblyLine.
        Throws:
        java.lang.Exception - if an error occurs while initializing the simulation config for the first time.
      • initSimulationConfig

        public void initSimulationConfig()
                                  throws java.lang.Exception
        Initializes the Simulation config.
        Throws:
        java.lang.Exception - if the initialization fails