Enum PositionState
- All Implemented Interfaces:
Comparable<PositionState>
Which way a window covering is moving, for Trait.COVERING_MOTION.
Read-only on every backend.
Phrased in terms of opening and closing rather than of the position number
going up or down, because the two backends disagree about which direction
that number runs -- see Trait.COVERING_POSITION. "Opening" here always
means moving toward daylight.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PositionStateof(TraitValue value) Reads a motion state out of a trait value, total: a value that is not an enum, or whose ordinal is outside this set, answersUNKNOWN.static PositionStateReturns the enum constant of this type with the specified name.static PositionState[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
STOPPED
Not moving. -
OPENING
Moving toward fully open. -
CLOSING
Moving toward fully closed. -
UNKNOWN
The accessory could not say.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
of
Reads a motion state out of a trait value, total: a value that is not an enum, or whose ordinal is outside this set, answers
UNKNOWN.Parameters
value: a value read fromTrait.COVERING_MOTION, ornull
Returns
the state, never
null
-