Enum Class P2PTableRoute
- All Implemented Interfaces:
Serializable
,Comparable<P2PTableRoute>
,Constable
P2P Routing table routes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionToward the East chip.Route to the monitor on the current chip.No route to this chip.Toward the North chip.Toward the North East chip.Toward the South chip.Toward the South West chip.Toward the West chip. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic P2PTableRoute
get
(int value) Get a route descriptor from its encoded form.static P2PTableRoute
Returns the enum constant of this class with the specified name.static P2PTableRoute[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EAST
Toward the East chip. (x+1,y) -
NORTH_EAST
Toward the North East chip. (x+1,y+1) -
NORTH
Toward the North chip. (x,y+1) -
WEST
Toward the West chip. (x-1,y) -
SOUTH_WEST
Toward the South West chip. (x-1,y-1) -
SOUTH
Toward the South chip. (x,y-1) -
NONE
No route to this chip. -
MONITOR
Route to the monitor on the current chip.
-
-
Field Details
-
value
public final int valueThe SpiNNaker value.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
get
Get a route descriptor from its encoded form.- Parameters:
value
- The encoded form.- Returns:
- The route descriptor.
-