public interface Device
Device
implements Connectable
interface, then the argument of Connectable.openConnection(String)
correspond to the params
part of Connector
URL specification.
A device is uniquely identified with its name and its hardware descriptor.Connector
Modifier and Type | Field and Description |
---|---|
static String |
UNKNOWN_NAME
This value is returned by
getName() when this device is unregistered and its name is unavailable. |
Modifier and Type | Method and Description |
---|---|
Device[] |
getChildren()
Returns the children of this device in the hardware topology.
|
<D extends Device> |
getDescriptor()
Returns the device hardware descriptor.
|
String |
getName()
Returns the name of the device.
|
Device |
getParent()
Returns the parent of this device in the hardware topology.
|
static final String UNKNOWN_NAME
getName()
when this device is unregistered and its name is unavailable.<D extends Device> HardwareDescriptor<D> getDescriptor()
D
- the type of the deviceString getName()
UNKNOWN_NAME
if this device is not registered and its name is unavailable.Device getParent()
Device[] getChildren()