Class Launcher

  • All Implemented Interfaces:
    xal.tools.data.DataListener

    public class Launcher
    extends Object
    implements xal.tools.data.DataListener
    Handles launching of an application
    • Field Detail

      • DATA_LABEL

        public static final String DATA_LABEL
        the data adaptor label used for reading and writing this instance
        See Also:
        Constant Field Values
      • _hostGenerator

        protected HostGenerator _hostGenerator
        generator of the hosts
      • MESSAGE_BOARD_PROXY

        protected final LaunchBoardListener MESSAGE_BOARD_PROXY
        Proxy for posting messages to the launch board
      • _hostConfiguration

        protected HostConfiguration _hostConfiguration
        host configuration
    • Constructor Detail

      • Launcher

        public Launcher​(HostGenerator hostGenerator)
        Constructor
        Parameters:
        hostGenerator - the generator which selects the host for each run
      • Launcher

        public Launcher()
        Constructor
    • Method Detail

      • getHostConfiguration

        public HostConfiguration getHostConfiguration()
        Get the host configuration
        Returns:
        the host configuration
      • getHostGenerator

        public HostGenerator getHostGenerator()
        Get the host generator
        Returns:
        the host generator
      • setHostGenerator

        public void setHostGenerator​(HostGenerator hostGenerator)
        Set the host generator
        Parameters:
        hostGenerator - the new host generator
      • launch

        public Process launch​(App application)
                       throws IOException
        Launch the specified application
        Parameters:
        application - the application to launch
        Throws:
        IOException
      • preConfigure

        public void preConfigure()
        preconfigure when initializing without a document file
      • dataLabel

        public String dataLabel()
        provides the name used to identify the class in an external data source.
        Specified by:
        dataLabel in interface xal.tools.data.DataListener
        Returns:
        The tag for this data node.
      • update

        public void update​(xal.tools.data.DataAdaptor adaptor)
        Instructs the receiver to update its data based on the given adaptor.
        Specified by:
        update in interface xal.tools.data.DataListener
        Parameters:
        adaptor - The data adaptor corresponding to this object's data node.
      • write

        public void write​(xal.tools.data.DataAdaptor adaptor)
        Instructs the receiver to write its data to the adaptor for external storage.
        Specified by:
        write in interface xal.tools.data.DataListener
        Parameters:
        adaptor - The data adaptor corresponding to this object's data node.