Enum Class PDHPort
- All Implemented Interfaces:
Serializable,Comparable<PDHPort>,Constable
Represents the available ports on a Power Distribution Hub (PDH).
REV PDH has 20 ports (0-19), CTRE PDH has 24 ports (0-23).
Using the common 20-port standard here.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
PDH00
-
PDH01
-
PDH02
-
PDH03
-
PDH04
-
PDH05
-
PDH06
-
PDH07
-
PDH08
-
PDH09
-
PDH10
-
PDH11
-
PDH12
-
PDH13
-
PDH14
-
PDH15
-
PDH16
-
PDH17
-
PDH18
-
PDH19
-
-
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
-
getPortNumber
public int getPortNumber() -
toString
-