public interface DeviceInfo
Environment
s if you wish to
expose some (typically static) information about the device represented by
that environment to a Machine
connected to it.
You may also implement this on a MachineHost
in which case the Machine
will forward that information as
its own (since MachineHost
s usually use the machine's node as
their own, this avoids a dummy environment used solely for device info).
This is intended to permit programs to reflect on the hardware they are
running on, typically for purely informational purposes, but possibly to
toggle certain hardware specific features.
For example, graphics cards may expose their timings via this interface, so
that programs may determine at what speed they can redraw, and optimize
execution order.
While the format of the returned table of information is entirely up to you,
it is recommended to orient yourself on the key values and names that
lshw
uses (http://www.ezix.org/project/wiki/HardwareLiSter),
where applicable.Modifier and Type | Interface and Description |
---|---|
static class |
DeviceInfo.DeviceAttribute
Recommended list of key values for the device info table.
|
static class |
DeviceInfo.DeviceClass
Recommended list of values for the
class attribute (see above). |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getDeviceInfo()
Compile a list of device information strings as key-value pairs.
|
java.util.Map<java.lang.String,java.lang.String> getDeviceInfo()
class | memory |
description | Memory bank |
vendor | MightyPirates GmbH & Co. KG |
product | Multipurpose RAM Type |
clock | 500 |
null
.