org.minetti.astrodevice.server.plugin.driver
Interface DeviceDriver

All Known Subinterfaces:
AltazimuthTelescopeDriver, CameraDriver, DomeDriver, EquatorialTelescopeDriver, FilterWheelDriver, FocuserDriver, RotatorDriver, SafetyMonitorDriver, UsbEquatorialTelescope

public interface DeviceDriver

Driver for any device.

Author:
Jean-Philippe MINETTI

Method Summary
 void close()
          Closes the connection of USB device.
 Plugin getPlugin()
          Returns the plug-in of driver.
 boolean isOpened()
          Returns TRUE if the USB device is connected.
 void open()
          Opens a new connection to the USB device and returns all informations on this device.
 

Method Detail

getPlugin

Plugin getPlugin()
Returns the plug-in of driver.

Returns:
Plug-in of driver.

open

void open()
          throws AstroDevicePluginException
Opens a new connection to the USB device and returns all informations on this device.

Throws:
AstroDevicePluginException - Exception if an error occurred.

close

void close()
           throws AstroDevicePluginException
Closes the connection of USB device.

Throws:
AstroDevicePluginException - Exception if an error occurred.

isOpened

boolean isOpened()
Returns TRUE if the USB device is connected.

Returns:
TRUE if the USB device is connected.


Copyright © 2012 astroDevice. All Rights Reserved.