public static enum EzControlT10.Command extends Enum<EzControlT10.Command>
Enum Constant and Description |
---|
dim_down |
dim_max_time |
dim_off_time |
dim_up |
dim_value_time
Takes two arguments, the goal power, and the time to be taken.
|
get_status |
invalid
Marker for invalid command.
|
power_off |
power_on |
power_toggle |
set_power
Takes an argument, power in percents.
|
set_time |
Modifier and Type | Method and Description |
---|---|
boolean |
hasTimeArgument()
Returns true iff the command uses a time argument.
|
boolean |
isPresetCommand()
Returns true iff the command can be used as a present command.
|
static EzControlT10.Command |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EzControlT10.Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EzControlT10.Command power_on
public static final EzControlT10.Command power_off
public static final EzControlT10.Command power_toggle
public static final EzControlT10.Command dim_up
public static final EzControlT10.Command dim_down
public static final EzControlT10.Command dim_max_time
public static final EzControlT10.Command dim_off_time
public static final EzControlT10.Command set_time
public static final EzControlT10.Command dim_value_time
public static final EzControlT10.Command set_power
public static final EzControlT10.Command get_status
public static final EzControlT10.Command invalid
public static EzControlT10.Command[] values()
for (EzControlT10.Command c : EzControlT10.Command.values()) System.out.println(c);
public static EzControlT10.Command 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 boolean isPresetCommand()
public boolean hasTimeArgument()
Copyright © 2016. All rights reserved.