Class Group
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.Group
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a mesh groupGroup
(int id, int address, UUID addressLabel, int parentAddress, UUID parentAddressLabel, String meshUuid) Constructs a mesh group to be used for room db implementationConstructs a mesh groupConstructs a mesh groupConstructs a mesh groupConstructs a mesh group -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the address of the groupReturns the label UUID of the address of the groupReturns the provisionerUuid of the networkgetName()
Returns the group name of a mesh networkint
Returns address of the parent group if the group has onevoid
setAddressLabel
(UUID uuidLabel) Sets the group address labelvoid
setMeshUuid
(String meshUuid) Sets the provisionerUuid of the networkvoid
Sets a name to a mesh groupvoid
setParentAddress
(int parentAddress) Sets the parent address, if this group belongs to a parent groupvoid
setParentAddressLabel
(UUID parentAddressLabel) Sets the label UUID of the parent address
-
Field Details
-
id
public int id
-
-
Constructor Details
-
Group
public Group(int id, int address, UUID addressLabel, int parentAddress, UUID parentAddressLabel, String meshUuid) throws IllegalArgumentException Constructs a mesh group to be used for room db implementation- Parameters:
id
- Autogenerated primary key idaddress
- Address of the groupaddressLabel
- Label UUID of the group address in the case of a virtual addressparentAddress
- Parent address of the groupparentAddressLabel
- Label UUID of the parent address in the case of a virtual addressmeshUuid
- UUID of the mesh network- Throws:
IllegalArgumentException
-
Group
Constructs a mesh group- Parameters:
address
- Address of the groupmeshUuid
- UUID of the mesh network- Throws:
IllegalArgumentException
-
Group
Constructs a mesh group- Parameters:
address
- Address of the groupparentAddress
- Parent address of the group. If there is no parent group useMeshAddress.UNASSIGNED_ADDRESS
meshUuid
- UUID of the mesh network- Throws:
IllegalArgumentException
-
Group
Constructs a mesh group- Parameters:
address
- Address of the groupparentAddressLabel
- Label UUID of the parent address in the case of a virtual addressmeshUuid
- UUID of the mesh network- Throws:
IllegalArgumentException
-
Group
Constructs a mesh group- Parameters:
addressLabel
- Label UUID of the address in the case of a virtual addressparentAddress
- Parent address of the group. If there is no parent group useMeshAddress.UNASSIGNED_ADDRESS
meshUuid
- UUID of the mesh network- Throws:
IllegalArgumentException
-
Group
public Group(UUID addressLabel, UUID parentAddressLabel, String meshUuid) throws IllegalArgumentException Constructs a mesh group- Parameters:
addressLabel
- Label UUID of the group address in the case of a virtual addressparentAddressLabel
- Label UUID of the parent address in the case of a virtual addressmeshUuid
- UUID of the mesh network- Throws:
IllegalArgumentException
-
-
Method Details
-
getMeshUuid
Returns the provisionerUuid of the network- Returns:
- provisionerUuid
-
setMeshUuid
Sets the provisionerUuid of the network- Parameters:
meshUuid
- network provisionerUuid
-
getAddress
public int getAddress()Returns the address of the group- Returns:
- 2 byte group address
-
getAddressLabel
Returns the label UUID of the address of the group- Returns:
- Label UUID of the group address if the group address is a virtual address or null otherwise
-
setAddressLabel
Sets the group address label- Parameters:
uuidLabel
- UUID label of the address
-
getParentAddressLabel
-
setParentAddressLabel
Sets the label UUID of the parent address- Parameters:
parentAddressLabel
- Label UUID of the parent address
-
getParentAddress
public int getParentAddress()Returns address of the parent group if the group has one- Returns:
- parent address
-
setParentAddress
public void setParentAddress(int parentAddress) Sets the parent address, if this group belongs to a parent group- Parameters:
parentAddress
- address of the parent group
-
getName
Returns the group name of a mesh network -
setName
Sets a name to a mesh group
-