java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.Machine

public class Machine extends Object
Describes a machine by its name, tags, width and height.
  • Constructor Details

    • Machine

      public Machine(String name, List<String> tags, int width, int height, List<BoardCoordinates> deadBoards, List<BoardLink> deadLinks)
      Parameters:
      name - The name of the machine.
      tags - The tags on the machine.
      width - The width of the machine.
      height - The height of the machine.
      deadBoards - The dead boards on the machine.
      deadLinks - The dead links on the machine.
  • Method Details

    • getName

      public String getName()
      Returns:
      The name of the machine.
    • getTags

      public List<String> getTags()
      Returns:
      The tags on the machine.
    • getWidth

      public int getWidth()
      Returns:
      The width of the machine.
    • getHeight

      public int getHeight()
      Returns:
      The height of the machine.
    • getDeadBoards

      public List<BoardCoordinates> getDeadBoards()
      Returns:
      The dead boards on the machine.
    • getDeadLinks

      public List<BoardLink> getDeadLinks()
      Returns:
      The dead links on the machine.
    • toString

      public String toString()
      Overrides:
      toString in class Object