java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.Group

public class Group extends Object
  • 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 id
      address - Address of the group
      addressLabel - Label UUID of the group address in the case of a virtual address
      parentAddress - Parent address of the group
      parentAddressLabel - Label UUID of the parent address in the case of a virtual address
      meshUuid - UUID of the mesh network
      Throws:
      IllegalArgumentException
    • Group

      public Group(int address, String meshUuid) throws IllegalArgumentException
      Constructs a mesh group
      Parameters:
      address - Address of the group
      meshUuid - UUID of the mesh network
      Throws:
      IllegalArgumentException
    • Group

      public Group(int address, int parentAddress, String meshUuid) throws IllegalArgumentException
      Constructs a mesh group
      Parameters:
      address - Address of the group
      parentAddress - Parent address of the group. If there is no parent group use MeshAddress.UNASSIGNED_ADDRESS
      meshUuid - UUID of the mesh network
      Throws:
      IllegalArgumentException
    • Group

      public Group(int address, UUID parentAddressLabel, String meshUuid) throws IllegalArgumentException
      Constructs a mesh group
      Parameters:
      address - Address of the group
      parentAddressLabel - Label UUID of the parent address in the case of a virtual address
      meshUuid - UUID of the mesh network
      Throws:
      IllegalArgumentException
    • Group

      public Group(UUID addressLabel, int parentAddress, String meshUuid) throws IllegalArgumentException
      Constructs a mesh group
      Parameters:
      addressLabel - Label UUID of the address in the case of a virtual address
      parentAddress - Parent address of the group. If there is no parent group use MeshAddress.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 address
      parentAddressLabel - Label UUID of the parent address in the case of a virtual address
      meshUuid - UUID of the mesh network
      Throws:
      IllegalArgumentException
  • Method Details

    • getMeshUuid

      public String getMeshUuid()
      Returns the provisionerUuid of the network
      Returns:
      provisionerUuid
    • setMeshUuid

      public void setMeshUuid(String meshUuid)
      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

      public UUID 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

      public void setAddressLabel(UUID uuidLabel)
      Sets the group address label
      Parameters:
      uuidLabel - UUID label of the address
    • getParentAddressLabel

      public UUID getParentAddressLabel()
    • setParentAddressLabel

      public void setParentAddressLabel(UUID parentAddressLabel)
      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

      public String getName()
      Returns the group name of a mesh network
    • setName

      public void setName(String name)
      Sets a name to a mesh group