Class MachineDescription

java.lang.Object
uk.ac.manchester.spinnaker.alloc.model.MachineDescription

public class MachineDescription
extends Object
Descriptive detail for a machine. Used for HTML generation.
  • Constructor Details

  • Method Details

    • getId

      public int getId()
      Returns:
      the machine ID
    • setId

      public void setId​(int id)
      Parameters:
      id - the machine ID
    • getName

      public String getName()
      Returns:
      the machine name
    • setName

      public void setName​(String name)
      Parameters:
      name - the machine name
    • getWidth

      public int getWidth()
      Returns:
      the width of the machine in triads
    • setWidth

      public void setWidth​(int width)
      Parameters:
      width - the width of the machine in triads
    • getHeight

      public int getHeight()
      Returns:
      the height of the machine in triads
    • setHeight

      public void setHeight​(int height)
      Parameters:
      height - the height of the machine in triads
    • getNumInUse

      public int getNumInUse()
      Returns:
      the number of boards in use
    • setNumInUse

      public void setNumInUse​(int numInUse)
      Parameters:
      numInUse - the number of boards in use
    • getLive

      public List<BoardCoords> getLive()
      Returns:
      the in-service boards
    • setLive

      public void setLive​(List<BoardCoords> live)
      Parameters:
      live - the in-service boards
    • setLive

      public void setLive​(uk.ac.manchester.spinnaker.utils.MappableIterable<BoardCoords> live)
      Parameters:
      live - the in-service boards
    • getDead

      public List<BoardCoords> getDead()
      Returns:
      the out-of-service boards
    • setDead

      public void setDead​(List<BoardCoords> dead)
      Parameters:
      dead - the out-of-service boards
    • setDead

      public void setDead​(uk.ac.manchester.spinnaker.utils.MappableIterable<BoardCoords> dead)
      Parameters:
      dead - the out-of-service boards
    • getJobs

      public List<MachineDescription.JobInfo> getJobs()
      Returns:
      the machine's jobs
    • setJobs

      public void setJobs​(List<MachineDescription.JobInfo> jobs)
      Parameters:
      jobs - the machine's jobs
    • setJobs

      public void setJobs​(uk.ac.manchester.spinnaker.utils.MappableIterable<MachineDescription.JobInfo> jobs)
      Parameters:
      jobs - the machine's jobs
    • getTags

      public List<String> getTags()
      Returns:
      the machine's tags
    • setTags

      public void setTags​(List<String> tags)
      Parameters:
      tags - the machine's tags
    • setTags

      public void setTags​(uk.ac.manchester.spinnaker.utils.MappableIterable<String> tags)
      Parameters:
      tags - the machine's tags
    • getQuota

      public Optional<Long> getQuota()
      Returns:
      the quota (if that information is to be exposed to the current user and is meaningful)
    • setQuota

      public void setQuota​(Long quota)
      Parameters:
      quota - the current user's quota