Package xal.app.launcher
Class Launcher
- java.lang.Object
-
- xal.app.launcher.Launcher
-
- All Implemented Interfaces:
xal.tools.data.DataListener
public class Launcher extends Object implements xal.tools.data.DataListener
Handles launching of an application
-
-
Field Summary
Fields Modifier and Type Field Description protected HostConfiguration_hostConfigurationhost configurationprotected HostGenerator_hostGeneratorgenerator of the hostsstatic StringDATA_LABELthe data adaptor label used for reading and writing this instanceprotected LaunchBoardListenerMESSAGE_BOARD_PROXYProxy for posting messages to the launch board
-
Constructor Summary
Constructors Constructor Description Launcher()ConstructorLauncher(HostGenerator hostGenerator)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdataLabel()provides the name used to identify the class in an external data source.HostConfigurationgetHostConfiguration()Get the host configurationHostGeneratorgetHostGenerator()Get the host generatorProcesslaunch(App application)Launch the specified applicationvoidpreConfigure()preconfigure when initializing without a document filevoidsetHostGenerator(HostGenerator hostGenerator)Set the host generatorvoidupdate(xal.tools.data.DataAdaptor adaptor)Instructs the receiver to update its data based on the given adaptor.voidwrite(xal.tools.data.DataAdaptor adaptor)Instructs the receiver to write its data to the adaptor for external storage.
-
-
-
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:
dataLabelin interfacexal.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:
updatein interfacexal.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:
writein interfacexal.tools.data.DataListener- Parameters:
adaptor- The data adaptor corresponding to this object's data node.
-
-