Class PyNNJobProcess
java.lang.Object
uk.ac.manchester.spinnaker.nmpiexec.jobprocess.PyNNJobProcess
- All Implemented Interfaces:
JobProcess<PyNNJobParameters>
A process for running PyNN jobs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
Clean up the process after exit.void
execute
(String machineUrl, SpinnakerMachine machine, PyNNJobParameters parameters, LogWriter logWriter) Executes the process.getError()
Get the process error.Get the outputs of the process.Get the provenance of the process.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>
-