Enum Class P2PTableRoute

java.lang.Object
java.lang.Enum<P2PTableRoute>
uk.ac.manchester.spinnaker.messages.model.P2PTableRoute
All Implemented Interfaces:
Serializable, Comparable<P2PTableRoute>, Constable

public enum P2PTableRoute extends Enum<P2PTableRoute>
P2P Routing table routes.
  • Enum Constant Details

    • EAST

      public static final P2PTableRoute EAST
      Toward the East chip. (x+1,y)
    • NORTH_EAST

      public static final P2PTableRoute NORTH_EAST
      Toward the North East chip. (x+1,y+1)
    • NORTH

      public static final P2PTableRoute NORTH
      Toward the North chip. (x,y+1)
    • WEST

      public static final P2PTableRoute WEST
      Toward the West chip. (x-1,y)
    • SOUTH_WEST

      public static final P2PTableRoute SOUTH_WEST
      Toward the South West chip. (x-1,y-1)
    • SOUTH

      public static final P2PTableRoute SOUTH
      Toward the South chip. (x,y-1)
    • NONE

      public static final P2PTableRoute NONE
      No route to this chip.
    • MONITOR

      public static final P2PTableRoute MONITOR
      Route to the monitor on the current chip.
  • Field Details

    • value

      public final int value
      The SpiNNaker value.
  • Method Details

    • values

      public static P2PTableRoute[] 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 P2PTableRoute 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
    • get

      public static P2PTableRoute get(int value)
      Get a route descriptor from its encoded form.
      Parameters:
      value - The encoded form.
      Returns:
      The route descriptor.