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 TypeMethodDescriptionvoidcleanup()Clean up the process after exit.voidexecute(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:
executein interfaceJobProcess<PyNNJobParameters>- Parameters:
machineUrl- The URL to request a machine using (ornullif machine is given)machine- The machine to execute the job on (ornullif a URL is given)parameters- The parameters of the joblogWriter- Somewhere to write logs to
-
getStatus
Get the status of the process.- Specified by:
getStatusin interfaceJobProcess<PyNNJobParameters>- Returns:
- The status
-
getError
Get the process error.- Specified by:
getErrorin interfaceJobProcess<PyNNJobParameters>- Returns:
- An error, or
nullif no error
-
getOutputs
Get the outputs of the process.- Specified by:
getOutputsin interfaceJobProcess<PyNNJobParameters>- Returns:
- A list of output files.
-
getProvenance
Get the provenance of the process.- Specified by:
getProvenancein interfaceJobProcess<PyNNJobParameters>- Returns:
- A list of provenance items to add
-
cleanup
public void cleanup()Clean up the process after exit.- Specified by:
cleanupin interfaceJobProcess<PyNNJobParameters>
-