Enum Direction
- All Implemented Interfaces:
Serializable
,Comparable<Direction>
public enum Direction extends Enum<Direction>
Represents link directions of a board.
Note how this is tilted over with respect to classical compass directions; to
actually go "true vertically north", you have to go first N
and then NW
(or vice versa), taking two boards to actually
go straight north (by an offset of 12 chips); a
is vertically north
of c
, and f
is vertically north of d
.
- Author:
- Donal Fellows
- See Also:
DirInfo
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description int
bank
The register bank that manages the link in this direction.String
columnName
The name of the column in thepending_changes
table that holds information pertaining to this link.FPGA
fpga
The FPGA that manages the link in this direction. -
Method Summary
Modifier and Type Method Description Direction
opposite()
Gets the direction of the link in the opposite direction.static Direction
valueOf(String name)
Returns the enum constant of this type with the specified name.static Direction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
fpga
The FPGA that manages the link in this direction. Note that the names of FPGA identifiers don't exactly match up with the direction names in this class. This mostly doesn't matter; the only real confusion is right here in the definitions of these directions. -
bank
public final int bankThe register bank that manages the link in this direction. -
columnName
The name of the column in thepending_changes
table that holds information pertaining to this link.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
opposite
Gets the direction of the link in the opposite direction. Only really valid for SpiNN-5 boards.- Returns:
- The opposite direction.
-