public enum PowerLevel extends Enum<PowerLevel>
When an output is turned on without specifying a power level, the
default power level is P8
.
Enum Constant and Description |
---|
P0
Power level 0, turns the output off, and resets the default power level
back to
P8 . |
P1
Power level 1, lowest power level.
|
P2
Power level 2.
|
P3
Power level 3.
|
P4
Power level 4.
|
P5
Power level 5.
|
P6
Power level 6.
|
P7
Power level 7.
|
P8
Power level 8, highest power level.
|
Modifier and Type | Method and Description |
---|---|
byte |
getCode()
The byte expected by the control lab for the change power level command.
|
static PowerLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PowerLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerLevel P0
P8
.public static final PowerLevel P1
public static final PowerLevel P2
public static final PowerLevel P3
public static final PowerLevel P4
public static final PowerLevel P5
public static final PowerLevel P6
public static final PowerLevel P7
public static final PowerLevel P8
public static PowerLevel[] values()
for (PowerLevel c : PowerLevel.values()) System.out.println(c);
public static PowerLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getCode()
Copyright © 2016–2023. All rights reserved.