public enum BroadcastingPower extends java.lang.Enum<BroadcastingPower>
powerInDbm
means stronger transmitPower.Enum Constant and Description |
---|
LEVEL_1
Weak: -30 dBm
|
LEVEL_2
Weak: -20 dBm
|
LEVEL_3 |
LEVEL_4
Weak: -12 dBm
|
LEVEL_5
Normal: -8 dBm
|
LEVEL_6
Normal: -4 dBm
|
LEVEL_7
Strong: 0 dBm
|
LEVEL_8
Strong: 4 dBm
|
Modifier and Type | Field and Description |
---|---|
int |
powerInDbm
Power measured in dBm.
|
Modifier and Type | Method and Description |
---|---|
static BroadcastingPower |
fromDbm(int powerInDbm) |
static BroadcastingPower |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BroadcastingPower[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BroadcastingPower LEVEL_1
public static final BroadcastingPower LEVEL_2
public static final BroadcastingPower LEVEL_3
public static final BroadcastingPower LEVEL_4
public static final BroadcastingPower LEVEL_5
public static final BroadcastingPower LEVEL_6
public static final BroadcastingPower LEVEL_7
public static final BroadcastingPower LEVEL_8
public static BroadcastingPower[] values()
for (BroadcastingPower c : BroadcastingPower.values()) System.out.println(c);
public static BroadcastingPower valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static BroadcastingPower fromDbm(int powerInDbm)