Class JobParametersFactory
java.lang.Object
uk.ac.manchester.spinnaker.nmpiexec.job_parameters.JobParametersFactory
A factory that produces job parameters.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract JobParametersgetJobParameters(Job job, File workingDirectory, String setupScript) Gets job parameters given job description data.static JobParametersgetJobParameters(Job job, File workingDirectory, String setupScript, Map<String, JobParametersFactoryException> errors) Get the parameters from a job.
-
Field Details
-
SYSTEM_ARG
The argument to append to the script name to request that the system is added to the command line.- See Also:
-
DEFAULT_SCRIPT_NAME
The default name of the python script that will be constructed.- See Also:
-
-
Constructor Details
-
JobParametersFactory
public JobParametersFactory()
-
-
Method Details
-
getJobParameters
public abstract JobParameters getJobParameters(Job job, File workingDirectory, String setupScript) throws UnsupportedJobException, JobParametersFactoryException Gets job parameters given job description data.- Parameters:
job- The job to be executedworkingDirectory- The working directory where the job will be runsetupScript- The setup script to run- Returns:
- A job description to be executed
- Throws:
UnsupportedJobException- If the factory does not support the jobJobParametersFactoryException- If there was an error getting the parameters
-
getJobParameters
public static JobParameters getJobParameters(Job job, File workingDirectory, String setupScript, Map<String, JobParametersFactoryException> errors) Get the parameters from a job.- Parameters:
job- The job that these will be parameters for.workingDirectory- The working directory for the job.setupScript- The setup script.errors- What errors were found in the process of getting the parameters.- Returns:
- The parameters, or
nullif the parameters can't be generated.
-