public class CapabilityStationaryPosition extends Capability
| Modifier and Type | Class and Description |
|---|---|
static class |
CapabilityStationaryPosition.AttributeId
enum denoting various possible attributes of the
CapabilityStationaryPosition. |
static class |
CapabilityStationaryPosition.BeaconLocation
Class specifies fields necessary for BeaconLocation object.
|
static class |
CapabilityStationaryPosition.CommandId
enum denoting the possible Commands that can be sent for
CapabilityStationaryPosition. |
static class |
CapabilityStationaryPosition.DeviceLocation
Class specifies fields necessary for DeviceLocation object.
|
static class |
CapabilityStationaryPosition.Position
Class provides important fields for its subclasses
CapabilityStationaryPosition.DeviceLocation
and CapabilityStationaryPosition.BeaconLocation. |
static class |
CapabilityStationaryPosition.SetDeviceLocation
This class can be sent as an argument to
Capability.sendResourceCommand(buzz.getcoco.iot.Command<T>, buzz.getcoco.iot.Capability.CommandStatusListener<T>) while sending set device location commands. |
Capability.CapabilityId, Capability.CommandStatusListener<T extends Capability.CommandId>| Modifier and Type | Field and Description |
|---|---|
static Capability.CapabilityId |
ID |
| Modifier | Constructor and Description |
|---|---|
protected |
CapabilityStationaryPosition(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 checks if a command is supported or not, pass
null to check if capability supports any commands at all.
|
clearAndSetStandardCommandSet, containsAttribute, containsAttribute, createCommand, createCommandResponseArgs, getAttribute, getAttribute, getAttributeMap, getCapabilityWrapper, getId, getName, getParent, getSupportedCommands, hashCode, interceptCommand, internalAddAttribute, internalMarkAsReady, internalRemoveAttribute, internalSetName, internalSetParent, isReady, iterator, sendResourceCommand, setCapabilityWrapper, toStringpublic static final Capability.CapabilityId ID
protected CapabilityStationaryPosition(int id,
Resource parent)
id - The unique id Of the capabilityparent - The parent Resource of the capability.public boolean supports(Capability.CommandId commandId)
Capabilitysupports in class CapabilitycommandId - The Id denoting the command to be sent.protected Command<? extends Capability.CommandId> extendedCreateCommand(int primitiveCommandId, com.google.gson.JsonElement commandParams)
CapabilityextendedCreateCommand in class CapabilityprimitiveCommandId - The int form of the commandIdcommandParams - The Json params that can form a command