Class ProvisionedMeshNode

java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.transport.ProvisionedMeshNode

public final class ProvisionedMeshNode extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getElements

      public final Map<Integer,Element> getElements()
    • hasUnicastAddress

      public final boolean hasUnicastAddress(int unicastAddress)
      Check if an unicast address is the address of an element
      Parameters:
      unicastAddress - the address to check
      Returns:
      if this address is the address of an element
    • setElements

      public final void setElements(Map<Integer,Element> elements)
    • getDeviceKey

      public final byte[] getDeviceKey()
    • setDeviceKey

      public void setDeviceKey(byte[] deviceKey)
    • getSequenceNumber

      public final int getSequenceNumber()
    • setSequenceNumber

      public final void setSequenceNumber(int sequenceNumber)
      Sets the sequence number

      This is only meant to be used internally within the library. However this is open now for users to set the sequence number manually in provisioner node.

      Parameters:
      sequenceNumber - sequence number of the node
    • getCompanyIdentifier

      public final Integer getCompanyIdentifier()
    • setCompanyIdentifier

      public final void setCompanyIdentifier(Integer companyIdentifier)
    • getProductIdentifier

      public final Integer getProductIdentifier()
    • setProductIdentifier

      public final void setProductIdentifier(Integer productIdentifier)
    • getVersionIdentifier

      public final Integer getVersionIdentifier()
    • setVersionIdentifier

      public final void setVersionIdentifier(Integer versionIdentifier)
    • getCrpl

      public final Integer getCrpl()
    • setCrpl

      public final void setCrpl(Integer crpl)
    • getNodeFeatures

      public final Features getNodeFeatures()
      Returns the Features of the node
    • setNodeFeatures

      public final void setNodeFeatures(Features features)
      Set Features of the node
      Parameters:
      features - feature set supported by the node
    • getAddedNetKeys

      public final List<NodeKey> getAddedNetKeys()
      Returns the list of Network keys added to this node
    • setAddedNetKeys

      public final void setAddedNetKeys(List<NodeKey> addedNetKeyIndexes)
    • setAddedNetKeyIndex

      protected final void setAddedNetKeyIndex(int index)
      Adds a NetKey index that was added to the node
      Parameters:
      index - NetKey index
    • updateAddedNetKey

      protected final void updateAddedNetKey(int index)
      Update a net key's updated state
      Parameters:
      index - NetKey index
    • updateNetKeyList

      protected final void updateNetKeyList(List<Integer> indexes)
      Update the added net key list of the node
      Parameters:
      indexes - NetKey index
    • removeAddedNetKeyIndex

      protected final void removeAddedNetKeyIndex(int index)
      Removes an NetKey index that was added to the node
      Parameters:
      index - NetKey index
    • getAddedAppKeys

      public final List<NodeKey> getAddedAppKeys()
      Returns the list of added AppKey indexes to the node
    • setAddedAppKeys

      public final void setAddedAppKeys(List<NodeKey> addedAppKeyIndexes)
    • setAddedAppKeyIndex

      protected final void setAddedAppKeyIndex(int index)
      Adds an AppKey index that was added to the node
      Parameters:
      index - AppKey index
    • updateAddedAppKey

      protected final void updateAddedAppKey(int index)
      Update an app key's updated state
      Parameters:
      index - AppKey index
    • updateAppKeyList

      protected final void updateAppKeyList(int netKeyIndex, List<Integer> indexes, List<ApplicationKey> keyIndexes)
      Update the added net key list of the node
      Parameters:
      netKeyIndex - NetKey Index
      indexes - AppKey indexes
    • removeAddedAppKeyIndex

      protected final void removeAddedAppKeyIndex(int index)
      Removes an AppKey index that was added to the node
      Parameters:
      index - AppKey index
    • setCompositionData

      protected final void setCompositionData(ConfigCompositionDataStatus configCompositionDataStatus)
      Sets the data from the ConfigCompositionDataStatus
      Parameters:
      configCompositionDataStatus - Composition data status object
    • setAppKeyBindStatus

      protected final void setAppKeyBindStatus(ConfigModelAppStatus configModelAppStatus)
      Sets the bound app key data from the ConfigModelAppStatus
      Parameters:
      configModelAppStatus - ConfigModelAppStatus containing the bound app key information
    • setAppKeyUnbindStatus

      protected final void setAppKeyUnbindStatus(ConfigModelAppStatus configModelAppStatus)
      Sets the unbind app key data from the ConfigModelAppStatus
      Parameters:
      configModelAppStatus - ConfigModelAppStatus containing the unbound app key information
    • getSeqAuth

      public Integer getSeqAuth(int src)
    • isExist

      public boolean isExist(int modelId)
    • incrementSequenceNumber

      public int incrementSequenceNumber()
      Increments the sequence number
    • getMeshUuid

      public String getMeshUuid()
    • setMeshUuid

      public void setMeshUuid(String meshUuid)
    • getUuid

      public String getUuid()
    • setUuid

      public void setUuid(String uuid)
    • isConfigured

      public final boolean isConfigured()
    • setConfigured

      public final void setConfigured(boolean configured)
    • getNodeName

      public final String getNodeName()
    • setNodeName

      public final void setNodeName(String nodeName)
    • getUnicastAddress

      public final int getUnicastAddress()
    • setUnicastAddress

      public final void setUnicastAddress(int unicastAddress)
      Sets the unicast address of the node

      This is to be used only by the library

    • getNumberOfElements

      public int getNumberOfElements()
      Returns the number of elements in the node
    • getLastUnicastAddress

      public int getLastUnicastAddress()
      Returns the unicast address used by the last element in the node
    • getTtl

      public final Integer getTtl()
    • setTtl

      public final void setTtl(Integer ttl)
    • getFlags

      public final byte[] getFlags()
    • setFlags

      public final void setFlags(byte[] flags)
    • getTimeStamp

      public long getTimeStamp()
    • setTimeStamp

      public void setTimeStamp(long timestamp)
    • getSecurity

      public int getSecurity()
    • setSecurity

      public void setSecurity(int security)
    • isBlackListed

      @Deprecated public boolean isBlackListed()
      Deprecated.
      Use isExcluded() instead
      Returns true if the node is blacklisted or false otherwise
    • setBlackListed

      @Deprecated public void setBlackListed(boolean blackListed)
      Deprecated.
      Blacklist a node.
      Parameters:
      blackListed - true if blacklisted
    • isSecureNetworkBeaconSupported

      public Boolean isSecureNetworkBeaconSupported()
    • setSecureNetworkBeaconSupported

      public void setSecureNetworkBeaconSupported(Boolean enable)
    • getNetworkTransmitSettings

      public NetworkTransmitSettings getNetworkTransmitSettings()
      Returns NetworkTransmitSettings of this node
    • setNetworkTransmitSettings

      public void setNetworkTransmitSettings(NetworkTransmitSettings networkTransmitSettings)
      Sets NetworkTransmitSettings of this node
    • getRelaySettings

      public RelaySettings getRelaySettings()
      Returns RelaySettings of this node
    • setRelaySettings

      public void setRelaySettings(RelaySettings relaySettings)
      Sets NetworkTransmitSettings of this node
    • isExcluded

      public boolean isExcluded()
      Returns true if the node is marked as excluded.
      Returns:
      true if marked as excluded or false otherwise.
    • getNodeIdentityState

      public int getNodeIdentityState()
    • setExcluded

      public void setExcluded(boolean excluded)