Class ProcessRegistry


  • public class ProcessRegistry
    extends java.lang.Object
    This class is a tracker object, responsible for tracking the state of a configInstance, assemblyLines objects.
    • Constructor Detail

      • ProcessRegistry

        public ProcessRegistry()
        Default constructor for this object.
    • Method Detail

      • configInstanceStarted

        public void configInstanceStarted​(RSInterface aConfigInstance)
                                   throws DIException
        Marks that the configuration instance has been started.
        Parameters:
        aConfigInstance - the started configInstance object.
        Throws:
        DIException - if the aConfigInstance parameter is null.
      • configInstanceStopped

        public void configInstanceStopped​(RSInterface aConfigInstance)
                                   throws DIException
        Marks that the configuration instance has been stopped.
        Parameters:
        aConfigInstance - the stopped configInstance object.
        Throws:
        DIException - if the aConfigInstance parameter is null.
      • assemblyLineStarted

        public void assemblyLineStarted​(AssemblyLine aAssemblyLine)
                                 throws DIException
        Marks that the AssemblyLine instance has been started.
        Parameters:
        aAssemblyLine - the started AssemblyLine object.
        Throws:
        DIException - if the provided aAssemblyLine parameter is null or the configInstance parent of that parameter is not registered.
      • assemblyLineTerminated

        public void assemblyLineTerminated​(AssemblyLine aAssemblyLine)
                                    throws DIException
        Marks that the AssemblyLine instance has been terminated.
        Parameters:
        aAssemblyLine - the started AssemblyLine object.
        Throws:
        DIException - if the provided aAssemblyLine parameter is null or the configInstance parent of that parameter is not registered.
      • getConfigInstances

        public java.util.Vector<RSInterface> getConfigInstances()
        Returns a vector containing all configuration instances currently started.
        Returns:
        the list with the running config instance objects.
      • getConfigInstanceIDs

        public java.util.List<java.lang.String> getConfigInstanceIDs()
        Returns:
        a list containing the IDs of all the configuration instances currently started.
      • getAssemblyLines

        public java.util.Hashtable<RSInterface,​java.util.Vector<AssemblyLine>> getAssemblyLines()
        Returns a hashtable whose key elements are the Configuration Instances currently started, and the values are vectors containing all Assembly Lines currently started in the corresponding Configuration Instance.
        Returns:
        the map between config instances and their AssemblyLines.