Class JobSpecification
java.lang.Object
uk.ac.manchester.spinnaker.nmpi.model.job.JobSpecification
The specification for a job. Can be any type of job, though the rest of this
implementation only really supports PyNN jobs running on SpiNNaker hardware
using sPyNNaker.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for serialisation.JobSpecification
(SpinnakerMachine machine, JobParameters parameters, int id, String url) Create the specification for running a job. -
Method Summary
Modifier and TypeMethodDescriptionint
getId()
Get the ID of the job.Get the machine to run the job on.Get the parameters of the job.getUrl()
Get the URL of the job to send results and status to.void
setId
(int id) Sets the ID.void
setMachine
(SpinnakerMachine machine) Sets the machine.void
setParameters
(JobParameters parameters) Sets the parameters.void
Sets the URL.
-
Constructor Details
-
JobSpecification
public JobSpecification()Constructor for serialisation. -
JobSpecification
Create the specification for running a job.- Parameters:
machine
- The machine to run the job on.parameters
- The parameters to the job.id
- The ID of the job.url
- The URL of the job to send results and status to.
-
-
Method Details
-
getMachine
Get the machine to run the job on.- Returns:
- the machine
-
setMachine
Sets the machine.- Parameters:
machine
- the machine to set
-
getParameters
Get the parameters of the job.- Returns:
- the parameters
-
setParameters
Sets the parameters.- Parameters:
parameters
- the parameters to set
-
getId
public int getId()Get the ID of the job.- Returns:
- the id
-
setId
public void setId(int id) Sets the ID.- Parameters:
id
- the id to set
-
getUrl
Get the URL of the job to send results and status to.- Returns:
- the URL
-
setUrl
Sets the URL.- Parameters:
url
- the URL to set
-