|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Device
Interface for implementing device controllers. Each supported device must implement at least this interface.
Method Summary | |
---|---|
AcquisitionTask |
createAcquisitionTask(AcquisitionProgressListener aProgressListener)
Creates a new AcquisitionTask for acquiring data from the device. |
CancelTask |
createCancelTask()
Creates a new CancelTask for canceling the current acquisition from
the device, if the device needs something special to do this. |
String |
getName()
Returns a descriptive name of this device controller. |
boolean |
isSetup()
Returns whether this device is already set up or not. |
boolean |
setupCapture(Window aParent)
Allows this device controller to set up the device by means of presenting an UI. |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
AcquisitionTask createAcquisitionTask(AcquisitionProgressListener aProgressListener) throws IOException
AcquisitionTask
for acquiring data from the device.
aProgressListener
- the acquisition progress listener the acquisition task can use to
report its progress, cannot be null
.
null
.
IOException
- in case of I/O problems during the creation of the acquisition
task.CancelTask createCancelTask() throws IOException
CancelTask
for canceling the current acquisition from
the device, if the device needs something special to do this.
null
the running acquisition is
simply cancelled.
IOException
- in case of I/O problems during the creating of the cancellation
task.String getName()
null
.boolean isSetup()
true
if there is a "valid" setup for this device,
false
otherwise.boolean setupCapture(Window aParent)
aParent
- the parent window that can be used to display (modal) dialogs, can
be null
.
true
if the setup is successfully completed (the user
acknowledged the setup), false
if the setup is aborted
by the user.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |