Class JobSpecification
java.lang.Object
uk.ac.manchester.spinnaker.nmpi.model.job.JobSpecification
public class JobSpecification extends Object
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
Constructors Constructor Description JobSpecification()
Constructor for serialisation.JobSpecification(SpinnakerMachine machine, JobParameters parameters, int id, String url)
Create the specification for running a job. -
Method Summary
Modifier and Type Method Description int
getId()
Get the ID of the job.SpinnakerMachine
getMachine()
Get the machine to run the job on.JobParameters
getParameters()
Get the parameters of the job.String
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
setUrl(String url)
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
-