Class BoardCoords

java.lang.Object
uk.ac.manchester.spinnaker.alloc.client.BoardCoords

@Immutable public class BoardCoords extends Object
Generalised coordinates of a board.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    Get the IP address of the Ethernet chip of the board, if available.
    int
    Get the number of the board within its frame.
    int
    Get the number of the cabinet containing the frame containing the board.
    int
    Get the number of the frame (within the cabinet) containing the board.
    int
    Get the triad X coordinate.
    int
    Get the triad Y coordinate.
    int
    Get the triad Z coordinate.
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getX

      public int getX()
      Get the triad X coordinate. Range: 0-255.
      Returns:
      Logical triad X coordinate.
    • getY

      public int getY()
      Get the triad Y coordinate. Range: 0-255.
      Returns:
      Logical triad Y coordinate.
    • getZ

      public int getZ()
      Get the triad Z coordinate. Range: 0-2.
      Returns:
      Logical triad Z coordinate.
    • getCabinet

      public int getCabinet()
      Get the number of the cabinet containing the frame containing the board.
      Returns:
      Physical cabinet number.
    • getFrame

      public int getFrame()
      Get the number of the frame (within the cabinet) containing the board.
      Returns:
      Physical frame number.
    • getBoard

      public int getBoard()
      Get the number of the board within its frame.
      Returns:
      Physical board number.
    • getAddress

      public String getAddress()
      Get the IP address of the Ethernet chip of the board, if available.
      Returns:
      IP address of ethernet chip. May be null if the current user doesn't have permission to see the board address at this point.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object