org.minetti.astrodevice.server.plugin
Interface Plugin


public interface Plugin

Plug-in used for drive one or more devices.

A plug-in must:

Author:
Jean-Philippe MINETTI

Method Summary
 DeviceRecognitionStatus attemptDeviceRecognition(DeviceSignature deviceSignature)
          Attempts a recognition of a device by its signature.
 String getName()
          Returns the unique name of plug-in.
 DeviceDriver newDriver(String name, DeviceSignature deviceSignature)
          Creates and returns a new driver for a device.
 

Method Detail

getName

String getName()
Returns the unique name of plug-in.

Returns:
Unique name of plug-in.

attemptDeviceRecognition

DeviceRecognitionStatus attemptDeviceRecognition(DeviceSignature deviceSignature)
Attempts a recognition of a device by its signature.

Parameters:
deviceSignature - Signature used for recognize the device.
Returns:
Recognition status of device.

newDriver

DeviceDriver newDriver(String name,
                       DeviceSignature deviceSignature)
Creates and returns a new driver for a device.

Parameters:
name - Name given to the device.
deviceSignature - Signature used for recognize the device.
Returns:
New driver for the device.


Copyright © 2012 astroDevice. All Rights Reserved.