Enum FpgaId
- All Implemented Interfaces:
Serializable
,Comparable<FpgaId>
public enum FpgaId extends Enum<FpgaId>
The FPGAs that manage inter-board links.
- Author:
- Christian-B
- See Also:
FpgaEnum
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description int
id
The physical ID for this link. -
Method Summary
Modifier and Type Method Description static FpgaId
byId(int id)
Obtain the enum from the ID.static FpgaId
valueOf(String name)
Returns the enum constant of this type with the specified name.static FpgaId[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
id
public final int idThe physical ID for 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
-
byId
Obtain the enum from the ID.- Parameters:
id
- The physical ID for the FPGA link.- Returns:
- The ID as an enum
- Throws:
ArrayIndexOutOfBoundsException
- Thrown if the ID is outside the known range.
-