Class Features
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.Features
Defines the features supported by a
ProvisionedMeshNode-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintReturns the friend feature stateintReturns the low power feature stateintgetProxy()Returns the proxy feature stateintgetRelay()Returns the relay feature statebooleanReturns true if friend feature is supported and false otherwisebooleanReturns true if low power feature is supported and false otherwisebooleanReturns true if proxy feature is supported and false otherwisebooleanReturns true if relay feature is supported and false otherwisevoidsetFriend(int friend) voidsetLowPower(int lowPower) voidsetProxy(int proxy) voidsetRelay(int relay) toString()
-
Field Details
-
DISABLED
public static final int DISABLED- See Also:
-
ENABLED
public static final int ENABLED- See Also:
-
UNSUPPORTED
public static final int UNSUPPORTED- See Also:
-
-
Constructor Details
-
Features
public Features(int friend, int lowPower, int proxy, int relay)
-
-
Method Details
-
toString
-
getFriend
public int getFriend()Returns the friend feature state -
setFriend
public void setFriend(int friend) -
getLowPower
public int getLowPower()Returns the low power feature state -
setLowPower
public void setLowPower(int lowPower) -
getProxy
public int getProxy()Returns the proxy feature state -
setProxy
public void setProxy(int proxy) -
getRelay
public int getRelay()Returns the relay feature state -
setRelay
public void setRelay(int relay) -
isFriendFeatureSupported
public boolean isFriendFeatureSupported()Returns true if friend feature is supported and false otherwise -
isRelayFeatureSupported
public boolean isRelayFeatureSupported()Returns true if relay feature is supported and false otherwise -
isProxyFeatureSupported
public boolean isProxyFeatureSupported()Returns true if proxy feature is supported and false otherwise -
isLowPowerFeatureSupported
public boolean isLowPowerFeatureSupported()Returns true if low power feature is supported and false otherwise -
assembleFeatures
public int assembleFeatures()
-