Class DeviceIdentifier
-
- All Implemented Interfaces:
public final class DeviceIdentifier
What is this thing? This defines the platform that various entities can be attached to. An example would be a Raspberry Pi hosting multiple sensors.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
manufacturer
private final String
model
private final List<String>
identifiers
private final String
name
-
Constructor Summary
Constructors Constructor Description DeviceIdentifier(String manufacturer, String model, List<String> identifiers, String name)
DeviceIdentifier(String manufacturer, String model, List<String> identifiers)
DeviceIdentifier(String manufacturer, String model)
-
Method Summary
Modifier and Type Method Description final String
getManufacturer()
final String
getModel()
final List<String>
getIdentifiers()
final String
getName()
final JSONObject
asJSON()
-
-
Constructor Detail
-
DeviceIdentifier
DeviceIdentifier(String manufacturer, String model, List<String> identifiers, String name)
- Parameters:
manufacturer
- who made itmodel
- what "type" of thing is thisidentifiers
- a list of unique identifiers: defaults to the device'shostname
if availblename
- the name for the device: defaults to the firstidentifier
-
DeviceIdentifier
DeviceIdentifier(String manufacturer, String model, List<String> identifiers)
- Parameters:
manufacturer
- who made itmodel
- what "type" of thing is thisidentifiers
- a list of unique identifiers: defaults to the device'shostname
if availble
-
-
Method Detail
-
getManufacturer
final String getManufacturer()
-
getIdentifiers
final List<String> getIdentifiers()
-
asJSON
final JSONObject asJSON()
-
-
-
-