Class SceneStatus
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.SceneStatus
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
ConstructorsConstructorDescriptionSceneStatus(AccessMessage message) Constructs the GenericOnOffStatus mMessage. -
Method Summary
Modifier and TypeMethodDescriptionfinal intReturns the target state of the GenericOnOffModelintReturns the opCode of this messagefinal intReturns the present state of the GenericOnOffModeldefault StringgetStatusMessage(int status) final IntegerReturns the target state of the GenericOnOffModelintReturns the transition resolution.intReturns the transition steps.final booleanReturns true if the message was successful.Methods inherited from class org.openremote.agent.protocol.bluetooth.mesh.transport.GenericStatusMessage
getAid, getAkf, getParameters, getSrcAddressMethods inherited from class org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
getAszmic, getDst, getMessage, getMessageTtl, getSrc, setMessageTtl
-
Field Details
-
LOG
-
-
Constructor Details
-
SceneStatus
Constructs the GenericOnOffStatus mMessage.- Parameters:
message- Access Message
-
-
Method Details
-
getOpCode
public int getOpCode()Description copied from class:MeshMessageReturns the opCode of this message- Specified by:
getOpCodein classMeshMessage- Returns:
- opcode
-
getStatus
public final int getStatus()Returns the present state of the GenericOnOffModel- Returns:
- true if on and false other wise
-
isSuccessful
public final boolean isSuccessful()Returns true if the message was successful. -
getCurrentScene
public final int getCurrentScene()Returns the target state of the GenericOnOffModel- Returns:
- true if on and false other wise
-
getTargetScene
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
-
getStatusMessage
-