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 Details

    • JobSpecification

      public JobSpecification()
      Constructor for serialisation.
    • JobSpecification

      public JobSpecification​(SpinnakerMachine machine, JobParameters parameters, int id, String url)
      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

      public SpinnakerMachine getMachine()
      Get the machine to run the job on.
      Returns:
      the machine
    • setMachine

      public void setMachine​(SpinnakerMachine machine)
      Sets the machine.
      Parameters:
      machine - the machine to set
    • getParameters

      public JobParameters getParameters()
      Get the parameters of the job.
      Returns:
      the parameters
    • setParameters

      public void setParameters​(JobParameters parameters)
      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

      public String getUrl()
      Get the URL of the job to send results and status to.
      Returns:
      the URL
    • setUrl

      public void setUrl​(String url)
      Sets the URL.
      Parameters:
      url - the URL to set