Class BMPLocation

java.lang.Object
uk.ac.manchester.spinnaker.machine.board.BMPLocation
All Implemented Interfaces:
HasBMPLocation

public final class BMPLocation extends Object implements HasBMPLocation
Like a core location, but for BMPs. Note that board numbers are not restricted in range like core numbers.
Author:
Donal Fellows
  • Constructor Details

    • BMPLocation

      public BMPLocation(int board)
      Create an instance with cabinet and frame both zero.
      Parameters:
      board - The board number.
    • BMPLocation

      public BMPLocation(int cabinet, int frame, int board)
      Create an instance.
      Parameters:
      cabinet - The cabinet number.
      frame - The frame number.
      board - The board number.
  • Method Details

    • getCabinet

      public int getCabinet()
      Specified by:
      getCabinet in interface HasBMPLocation
      Returns:
      The cabinet number of the board. Not actually a processor coordinate.
    • getFrame

      public int getFrame()
      Specified by:
      getFrame in interface HasBMPLocation
      Returns:
      The frame number of the board. Not actually a processor coordinate.
    • getBoard

      public int getBoard()
      Specified by:
      getBoard in interface HasBMPLocation
      Returns:
      The board number of the board. Not actually a processor ID.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object