Class Scene
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.Scene
Class definitions for creating scenes in a mesh network
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatSceneNumber
(int number, boolean add0x) Formats the scene number in to a 4 character hexadecimal StringReturns the address of the scenegetName()
Friendly name of the sceneint
static boolean
isValidSceneNumber
(int sceneNumber) Validates the scene numbervoid
setAddresses
(List<Integer> addresses) Sets addresses for this groupvoid
Sets a friendly name to a scenevoid
setNumber
(int number) toString()
-
Field Details
-
addresses
-
-
Constructor Details
-
Scene
-
Scene
-
-
Method Details
-
getMeshUuid
-
getName
Friendly name of the scene- Returns:
- name
-
setName
Sets a friendly name to a scene- Parameters:
name
- friendly name
-
getAddresses
Returns the address of the scene- Returns:
- 2 byte address
-
setAddresses
Sets addresses for this group- Parameters:
addresses
- list of addresses
-
getNumber
public int getNumber() -
setNumber
public void setNumber(int number) -
isValidSceneNumber
public static boolean isValidSceneNumber(int sceneNumber) Validates the scene number- Parameters:
sceneNumber
- Scene number- Returns:
- true if is a valid or throws an IllegalArgument exception
-
formatSceneNumber
Formats the scene number in to a 4 character hexadecimal String- Parameters:
number
- Scene numberadd0x
- Sets "0x" as prefix if set to true or false otherwise
-
toString
-