Enum P2PTableRoute

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

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

  • 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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static P2PTableRoute valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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.