Class ShadowMeshModel
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.ShadowMeshModel
- Direct Known Subclasses:
ShadowGenericOnOffModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected final ShadowMeshElement
protected final ExecutorService
static final Logger
protected final BluetoothMeshNetwork
-
Constructor Summary
ConstructorsConstructorDescriptionShadowMeshModel
(ExecutorService executorService, BluetoothMeshNetwork network, ShadowMeshElement element, int appKeyIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSensorValueConsumer
(Consumer<Object> consumer) protected abstract MeshMessage
createGetMeshMessage
(ApplicationKey applicationKey) protected abstract MeshMessage
createSetMeshMessage
(ApplicationKey applicationKey, Object value) protected void
protected abstract int
protected abstract String
abstract void
onMeshMessageReceived
(MeshMessage meshMessage) void
removeSensorValueConsumer
(Consumer<Object> consumer) void
void
sendSetCommand
(Object value) void
setAppKeyIndex
(int appKeyIndex)
-
Field Details
-
LOG
-
element
-
meshNetwork
-
appKeyIndex
protected int appKeyIndex -
executorService
-
-
Constructor Details
-
ShadowMeshModel
public ShadowMeshModel(ExecutorService executorService, BluetoothMeshNetwork network, ShadowMeshElement element, int appKeyIndex)
-
-
Method Details
-
addSensorValueConsumer
-
removeSensorValueConsumer
-
setAppKeyIndex
public void setAppKeyIndex(int appKeyIndex) -
sendSetCommand
-
sendGetCommand
public void sendGetCommand() -
executeSensorValueConsumers
-
onMeshMessageReceived
-
createSetMeshMessage
-
createGetMeshMessage
-
getModelName
-
getModelId
protected abstract int getModelId()
-