Enum Class EzControlT10.Command
- All Implemented Interfaces:
Serializable
,Comparable<EzControlT10.Command>
,java.lang.constant.Constable
- Enclosing class:
- EzControlT10
An enum consisting of the commands this class understands.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTakes two arguments, the goal power, and the time to be taken.Marker for invalid command.Takes an argument, power in percents. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true iff the command uses a time argument.boolean
Returns true iff the command can be used as a present command.static EzControlT10.Command
Returns the enum constant of this class with the specified name.static EzControlT10.Command[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
power_on
-
power_off
-
power_toggle
-
dim_up
-
dim_down
-
dim_max_time
-
dim_off_time
-
set_time
-
dim_value_time
Takes two arguments, the goal power, and the time to be taken. -
set_power
Takes an argument, power in percents. -
get_status
-
invalid
Marker for invalid command.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isPresetCommand
public boolean isPresetCommand()Returns true iff the command can be used as a present command.- Returns:
-
hasTimeArgument
public boolean hasTimeArgument()Returns true iff the command uses a time argument.- Returns:
-