Class Provisioner
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.Provisioner
Class definition of a Provisioner of mesh network
-
Constructor Summary
ConstructorsConstructorDescriptionProvisioner(String provisionerUuid, List<AllocatedUnicastRange> allocatedUnicastRanges, List<AllocatedGroupRange> allocatedGroupRanges, List<AllocatedSceneRange> allocatedSceneRanges, String meshUuid) ConstructsProvisioner -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a range to the provisionerbooleanassignProvisionerAddress(Integer address) Assigns provisioner addressReturnsAllocatedGroupRangefor this provisionerReturnsAllocatedSceneRangefor this provisionerReturnsAllocatedUnicastRangefor this provisionerintReturns the provisionerUuid of the Mesh networkReturns the provisioner nameReturns the provisionerUuidbooleanhasOverlappingGroupRanges(List<AllocatedGroupRange> otherRanges) booleanhasOverlappingSceneRanges(List<AllocatedSceneRange> otherRanges) booleanhasOverlappingUnicastRanges(List<AllocatedUnicastRange> otherRanges) booleanbooleanremoveRange(Range range) Add a range to the provisionervoidsetAllocatedGroupRanges(List<AllocatedGroupRange> allocatedGroupRanges) SetsAllocatedGroupRangefor this provisionervoidsetAllocatedSceneRanges(List<AllocatedSceneRange> allocatedSceneRanges) SetsAllocatedSceneRangefor this provisionervoidsetAllocatedUnicastRanges(List<AllocatedUnicastRange> allocatedUnicastRanges) SetsAllocatedGroupRangefor this provisionervoidsetGlobalTtl(int ttl) Set the ttl of the provisionervoidsetLastSelected(boolean lastSelected) voidsetMeshUuid(String uuid) Sets the provisionerUuid of the mesh network to this application keyvoidsetProvisionerAddress(Integer address) Set provisioner addressvoidsetProvisionerName(String provisionerName) Sets a friendly name to a provisionervoidsetProvisionerUuid(String provisionerUuid) booleanReturns true if the provisioner is allowed to configure the network
-
Constructor Details
-
Provisioner
public Provisioner(String provisionerUuid, List<AllocatedUnicastRange> allocatedUnicastRanges, List<AllocatedGroupRange> allocatedGroupRanges, List<AllocatedSceneRange> allocatedSceneRanges, String meshUuid) ConstructsProvisioner
-
-
Method Details
-
getMeshUuid
Returns the provisionerUuid of the Mesh network- Returns:
- String provisionerUuid
-
setMeshUuid
Sets the provisionerUuid of the mesh network to this application key- Parameters:
uuid- mesh network provisionerUuid
-
getProvisionerName
Returns the provisioner name- Returns:
- name
-
setProvisionerName
Sets a friendly name to a provisioner- Parameters:
provisionerName- friendly name- Throws:
IllegalArgumentException
-
getProvisionerUuid
Returns the provisionerUuid- Returns:
- UUID
-
setProvisionerUuid
-
getAllocatedGroupRanges
ReturnsAllocatedGroupRangefor this provisioner- Returns:
- allocated range of group addresses
-
setAllocatedGroupRanges
SetsAllocatedGroupRangefor this provisioner- Parameters:
allocatedGroupRanges- allocated range of group addresses
-
getAllocatedUnicastRanges
ReturnsAllocatedUnicastRangefor this provisioner- Returns:
- allocated range of unicast addresses
-
setAllocatedUnicastRanges
SetsAllocatedGroupRangefor this provisioner- Parameters:
allocatedUnicastRanges- allocated range of unicast addresses
-
getAllocatedSceneRanges
ReturnsAllocatedSceneRangefor this provisioner- Returns:
- allocated range of unicast addresses
-
setAllocatedSceneRanges
SetsAllocatedSceneRangefor this provisioner- Parameters:
allocatedSceneRanges- allocated range of unicast addresses
-
getProvisionerAddress
-
setProvisionerAddress
Set provisioner address- Parameters:
address- address of the provisioner- Throws:
IllegalArgumentException
-
assignProvisionerAddress
Assigns provisioner address- Parameters:
address- address of the provisioner- Throws:
IllegalArgumentException
-
getGlobalTtl
public int getGlobalTtl() -
supportsConfiguration
public boolean supportsConfiguration()Returns true if the provisioner is allowed to configure the network -
setGlobalTtl
Set the ttl of the provisioner- Parameters:
ttl- ttl- Throws:
IllegalArgumentException- if invalid ttl value is set
-
isLastSelected
public boolean isLastSelected() -
setLastSelected
public void setLastSelected(boolean lastSelected) -
addRange
Add a range to the provisioner- Parameters:
allocatedRange-Range
-
removeRange
Add a range to the provisioner- Parameters:
range-Range
-
hasOverlappingUnicastRanges
-
hasOverlappingGroupRanges
-
hasOverlappingSceneRanges
-