P
- the device type the descriptor is defined for.public interface DeviceDescriptor<P extends Device<? super P>>
DeviceDescriptor
interface encapsulates the identifying and descriptive
information of a device as well as its registered configuration (hardware addressing
parameters, and static and dynamic configuration parameters).Modifier and Type | Field and Description |
---|---|
static int |
UNDEFINED_ID
Undefined device numerical ID.
|
Modifier and Type | Method and Description |
---|---|
<C extends DeviceConfig<? super P>> |
getConfiguration()
Returns the registered configuration of the device.
|
int |
getID()
Returns the numerical ID of the device.
|
java.lang.Class<P> |
getInterface()
Returns the interface (sub-interface of
Device ) of the device. |
java.lang.String |
getName()
Returns the name of the device.
|
java.lang.String[] |
getProperties()
Returns the properties of the device.
|
static final int UNDEFINED_ID
int getID()
DeviceManager.open(java.lang.Class, jdk.dio.DeviceConfig)
this device's numerical ID is undefined.0
)
or UNDEFINED_ID
if none is defined.java.lang.String getName()
null
if none is defined.java.lang.String[] getProperties()
String
array (a defensive copy) of the device properties or an
empty String
array if none are defined.java.lang.Class<P> getInterface()
Device
) of the device.Device
) of the device.<C extends DeviceConfig<? super P>> C getConfiguration()
C
- the device configuration type.DeviceConfig
which encapsulates the hardware addressing
information, and static and dynamic configuration parameters of this device
device; or null
if none is defined.Copyright © 2012, 2014, Oracle and/or its affiliates. All rights reserved.
Legal Notices