java.lang.Object
java.lang.Enum<FpgaId>
uk.ac.manchester.spinnaker.machine.datalinks.FpgaId
All Implemented Interfaces:
Serializable, Comparable<FpgaId>, Constable

public enum FpgaId extends Enum<FpgaId>
The FPGAs that manage inter-board links.
Author:
Christian-B
See Also:
  • Enum Constant Details

    • BOTTOM

      public static final FpgaId BOTTOM
      The FGPA link that connects to the bottom and bottom right chips.
    • LEFT

      public static final FpgaId LEFT
      The FGPA link that connects to the left and top left chips.
    • TOP_RIGHT

      public static final FpgaId TOP_RIGHT
      The FGPA link that connects to the top and right chips.
  • Field Details

    • id

      public final int id
      The physical ID for this link.
  • Method Details

    • values

      public static FpgaId[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FpgaId valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • byId

      public static FpgaId byId(int id) throws ArrayIndexOutOfBoundsException
      Obtain the enum from the ID.
      Parameters:
      id - The physical ID for the FPGA link.
      Returns:
      The ID as an enum
      Throws:
      ArrayIndexOutOfBoundsException - Thrown if the ID is outside the known range.