public interface DeviceManager
Modifier and Type | Method and Description |
---|---|
Device |
addDevice(DeviceDescriptor descriptor)
Add Device into
deviceList . |
Device |
addDevice(DeviceDescriptor descriptor,
Preferences prefs)
Create an instance of a device driver.
|
int |
deviceCount()
Size query for deviceList
|
Device |
getDevice(int i)
Indexed getter for deviceList elements
|
int |
getDeviceIndex(Device device)
Getter for the index of
device . |
IDriver |
getNullDriver()
Returns null driver of Generic Device.
|
Device |
removeDevice(int i)
Remover for deviceList elements.
|
Device addDevice(DeviceDescriptor descriptor, Preferences prefs) throws ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException
descriptor
- the class name of the device driverprefs
- the preferencesClassNotFoundException
NoSuchMethodException
InstantiationException
IllegalAccessException
InvocationTargetException
Device addDevice(DeviceDescriptor descriptor)
deviceList
. A new Preferences node will be
created for the Device.className
- name of Device class (ex.
"synthdrivers.KawaiK4.KawaiK4Device").Device
value created.Device getDevice(int i)
Device removeDevice(int i)
Device
object removed.int deviceCount()
int getDeviceIndex(Device device)
device
.IDriver getNullDriver()
Copyright © 2014. All Rights Reserved.