Enum Class Direction
- All Implemented Interfaces:
Serializable
,Comparable<Direction>
,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionopposite()
Gets the direction of the link in the opposite direction.static Direction
Returns the enum constant of this class with the specified name.static Direction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
N
Northward, fromx
toa
. -
E
Eastward, fromx
tob
. -
SE
Southeast, fromx
toc
. -
S
Southward, fromx
tod
. -
W
Westward, fromx
toe
. -
NW
Northwest, fromx
tof
.
-
-
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 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
-
opposite
Gets the direction of the link in the opposite direction. Only really valid for SpiNN-5 boards.- Returns:
- The opposite direction.
-