Package org.eclipse.mosaic.lib.enums
Enum AdHocChannel
- java.lang.Object
-
- java.lang.Enum<AdHocChannel>
-
- org.eclipse.mosaic.lib.enums.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChannelNr()
static AdHocChannel
valueOf(String name)
Returns the enum constant of this type with the specified name.static AdHocChannel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCH1
public static final AdHocChannel SCH1
-
SCH2
public static final AdHocChannel SCH2
-
SCH3
public static final AdHocChannel SCH3
-
CCH
public static final AdHocChannel CCH
-
SCH4
public static final AdHocChannel SCH4
-
SCH5
public static final AdHocChannel SCH5
-
SCH6
public static final AdHocChannel SCH6
-
-
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 nameNullPointerException
- if the argument is null
-
getChannelNr
public int getChannelNr()
-
-