Enum AdHocChannel

  • All Implemented Interfaces:
    Serializable, Comparable<AdHocChannel>

    public enum AdHocChannel
    extends Enum<AdHocChannel>
    Channel numbers based on IEEE 1604 WAVE standard for US spectrum allocation.

    5.9 GHz Band (802.11p) Channel Name |SCH1|SCH2|SCH3|CCH |SCH4|SCH5|SCH6| --------------------------------------------------- Channel Number | 0 | 1 | 2 | 3 | 4 | 5 | 6 | --------------------------------------------------- Center GHz |5.86|5.87|5.88|5.89|5.90|5.91|5.92|

    • Method Detail

      • values

        public static AdHocChannel[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AdHocChannel c : AdHocChannel.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AdHocChannel valueOf​(String name)
        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 name
        NullPointerException - if the argument is null
      • getChannelNr

        public int getChannelNr()