Component

public abstract class Component extends Object

Class describing a entity that has a set ofCapabilitythat can be executed.

Fields

Name Description
public static final int TAG_ID

Unique id for the Tag Component.

Constructors

Name Description
public Component()

Methods

of

public static Component of(int componentId, Vendor vendor, Product product, List<Capability> capabilities, Revision revision, String serialNumber)

Creates a new instance of Component.

Parameters

Name Description
int componentId
Vendor vendor
Product product
List<Capability> capabilities
Revision revision
String serialNumber

ReturnValue

Name Description
Component

componentId

public abstract int componentId()

The Id of the component. Used when executing commands.

ReturnValue

Name Description
int

vendor

public abstract Vendor vendor()

The vendor of this component.

ReturnValue

Name Description
Vendor

product

public abstract Product product()

The product associated with this component.

ReturnValue

Name Description
Product

gearCapabilities

public abstract List<Capability> gearCapabilities()

List of supported capabilities.

ReturnValue

Name Description
List<Capability>

version

public abstract Revision version()

Firmware version of the device .

ReturnValue

Name Description
Revision

serialNumber

public abstract String serialNumber()

Manufacturer serial number.

ReturnValue

Name Description
String