Class PyNNJobProcess
java.lang.Object
uk.ac.manchester.spinnaker.nmpiexec.jobprocess.PyNNJobProcess
- All Implemented Interfaces:
JobProcess<PyNNJobParameters>
public class PyNNJobProcess extends Object implements JobProcess<PyNNJobParameters>
A process for running PyNN jobs.
-
Constructor Summary
Constructors Constructor Description PyNNJobProcess()
-
Method Summary
Modifier and Type Method Description void
cleanup()
Clean up the process after exit.void
execute(String machineUrl, SpinnakerMachine machine, PyNNJobParameters parameters, LogWriter logWriter)
Executes the process.Throwable
getError()
Get the process error.List<File>
getOutputs()
Get the outputs of the process.List<ProvenanceItem>
getProvenance()
Get the provenance of the process.Status
getStatus()
Get the status of the process.
-
Constructor Details
-
PyNNJobProcess
public PyNNJobProcess()
-
-
Method Details
-
execute
public void execute(String machineUrl, SpinnakerMachine machine, PyNNJobParameters parameters, LogWriter logWriter)Executes the process.- Specified by:
execute
in interfaceJobProcess<PyNNJobParameters>
- Parameters:
machineUrl
- The URL to request a machine using (ornull
if machine is given)machine
- The machine to execute the job on (ornull
if a URL is given)parameters
- The parameters of the joblogWriter
- Somewhere to write logs to
-
getStatus
Get the status of the process.- Specified by:
getStatus
in interfaceJobProcess<PyNNJobParameters>
- Returns:
- The status
-
getError
Get the process error.- Specified by:
getError
in interfaceJobProcess<PyNNJobParameters>
- Returns:
- An error, or
null
if no error
-
getOutputs
Get the outputs of the process.- Specified by:
getOutputs
in interfaceJobProcess<PyNNJobParameters>
- Returns:
- A list of output files.
-
getProvenance
Get the provenance of the process.- Specified by:
getProvenance
in interfaceJobProcess<PyNNJobParameters>
- Returns:
- A list of provenance items to add
-
cleanup
public void cleanup()Clean up the process after exit.- Specified by:
cleanup
in interfaceJobProcess<PyNNJobParameters>
-