public class CapabilityTemperatureSensing extends Capability
Modifier and Type | Class and Description |
---|---|
static class |
CapabilityTemperatureSensing.AttributeId
enum denoting various possible attributes of the
CapabilityTemperatureSensing . |
static class |
CapabilityTemperatureSensing.CommandId
enum denoting the possible Commands that can be sent for
CapabilityTemperatureSensing . |
Capability.CapabilityId, Capability.CommandStatusListener<T extends Capability.CommandId>
Modifier and Type | Field and Description |
---|---|
static Capability.CapabilityId |
ID |
Modifier | Constructor and Description |
---|---|
protected |
CapabilityTemperatureSensing(int id,
Resource parent)
Constructor of the current class.
|
Modifier and Type | Method and Description |
---|---|
protected Command<? extends Capability.CommandId> |
extendedCreateCommand(int primitiveCommandId,
com.google.gson.JsonElement commandParams)
A function to create the command from the Json params.
|
boolean |
supports(Capability.CommandId commandId)
This function is used to check if a command is supported by the capability or not.
|
clearAndSetStandardCommandSet, containsAttribute, containsAttribute, createCommand, createCommandResponseArgs, getAttribute, getAttribute, getAttributeMap, getCapabilityWrapper, getId, getName, getParent, getSupportedCommands, hashCode, interceptCommand, internalAddAttribute, internalMarkAsReady, internalRemoveAttribute, internalSetName, internalSetParent, isReady, iterator, sendResourceCommand, setCapabilityWrapper, toString
public static final Capability.CapabilityId ID
protected CapabilityTemperatureSensing(int id, Resource parent)
id
- The unique id Of the capabilityparent
- The parent Resource of the capability.public boolean supports(Capability.CommandId commandId)
supports
in class Capability
commandId
- The Id denoting the command to be sent.protected Command<? extends Capability.CommandId> extendedCreateCommand(int primitiveCommandId, com.google.gson.JsonElement commandParams)
extendedCreateCommand
in class Capability
primitiveCommandId
- The int form of the commandIdcommandParams
- The Json params that can form a command