nl.lxtreme.ols.api
Interface DataAcquisitionService


public interface DataAcquisitionService

Denotes a service for acquiring data from a device.


Method Summary
 void acquireData(Device aDevice)
          Acquires data from the given device.
 void cancelAcquisition(Device aDevice)
          Signals that the current acquisition should be cancelled.
 boolean isAcquiring()
          Returns whether or not this device controller is acquiring data.
 

Method Detail

cancelAcquisition

void cancelAcquisition(Device aDevice)
                       throws IOException,
                              IllegalStateException
Signals that the current acquisition should be cancelled.

Parameters:
aDevice - the device from which data should be acquired, cannot be null;
Throws:
IOException - in case of I/O problems during the acquisition of data;
IllegalStateException - in case no acquisition is in progress.

isAcquiring

boolean isAcquiring()
Returns whether or not this device controller is acquiring data.

Returns:
true if this device controller is currently acquiring data (or waiting to start capturing due to a trigger), false otherwise.

acquireData

void acquireData(Device aDevice)
                 throws IOException
Acquires data from the given device.

Parameters:
aDevice - the device from which data should be acquired, cannot be null;
Throws:
IOException - in case of I/O problems during the acquisition of data;
IllegalArgumentException - in case the given device was null.


Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.