Class GenericOnOffStatus
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
org.openremote.agent.protocol.bluetooth.mesh.transport.GenericStatusMessage
org.openremote.agent.protocol.bluetooth.mesh.transport.GenericOnOffStatus
To be used as a wrapper class for when creating the GenericOnOffStatus Message.
-
Field Summary
FieldsFields inherited from class org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
messageTtl, mMessage
-
Constructor Summary
ConstructorsConstructorDescriptionGenericOnOffStatus
(AccessMessage message) Constructs the GenericOnOffStatus mMessage. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the opCode of this messagefinal boolean
Returns the present state of the GenericOnOffModelfinal Boolean
Returns the target state of the GenericOnOffModelint
Returns the transition resolution.int
Returns the transition steps.Methods inherited from class org.openremote.agent.protocol.bluetooth.mesh.transport.GenericStatusMessage
getAid, getAkf, getParameters, getSrcAddress
Methods inherited from class org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
getAszmic, getDst, getMessage, getMessageTtl, getSrc, setMessageTtl
-
Field Details
-
LOG
-
-
Constructor Details
-
GenericOnOffStatus
Constructs the GenericOnOffStatus mMessage.- Parameters:
message
- Access Message
-
-
Method Details
-
getOpCode
public int getOpCode()Description copied from class:MeshMessage
Returns the opCode of this message- Specified by:
getOpCode
in classMeshMessage
- Returns:
- opcode
-
getPresentState
public final boolean getPresentState()Returns the present state of the GenericOnOffModel- Returns:
- true if on and false other wise
-
getTargetState
Returns the target state of the GenericOnOffModel- Returns:
- true if on and false other wise
-
getTransitionSteps
public int getTransitionSteps()Returns the transition steps.- Returns:
- transition steps
-
getTransitionResolution
public int getTransitionResolution()Returns the transition resolution.- Returns:
- transition resolution
-