org.minetti.astrodevice.common.orb.callback
Interface NewDeviceClientOrbCallback

All Superinterfaces:
ClientOrbCallback, Remote

public interface NewDeviceClientOrbCallback
extends ClientOrbCallback

Callback for name a new device and select this plug-in if necessary.

Author:
Jean-Philippe MINETTI

Method Summary
 String getDeviceBus()
          Returns the bus name where the device is connected.
 String getDeviceDescription()
          Returns the description of device.
 String getDeviceName()
          Returns the name given to the device.
 String getDeviceSerialNumber()
          Returns the serial number of device or other data identifying the devices of the same product.
 int getLifetime()
          Returns the lifetime of callback in seconds.
 String[] getPluginsNames()
          Returns the name of all possible plug-ins related to the device.
 void selectedPlugin(int pluginIndex)
          Selects a plug-in related to the device by its index into getPluginsNames().
 void setDeviceName(String deviceName)
          Sets the name given to the device.
 

Method Detail

getDeviceBus

String getDeviceBus()
                    throws RemoteException
Returns the bus name where the device is connected.

Returns:
Bus name.
Throws:
RemoteException - Exception if an error occurred.

getDeviceDescription

String getDeviceDescription()
                            throws RemoteException
Returns the description of device.

Returns:
Description of device.
Throws:
RemoteException - Exception if an error occurred.

getDeviceSerialNumber

String getDeviceSerialNumber()
                             throws RemoteException
Returns the serial number of device or other data identifying the devices of the same product.

Returns:
Serial number of device.
Throws:
RemoteException - Exception if an error occurred.

getDeviceName

String getDeviceName()
                     throws RemoteException
Returns the name given to the device.

Returns:
Name given to the device.
Throws:
RemoteException - Exception if an error occurred.

setDeviceName

void setDeviceName(String deviceName)
                   throws RemoteException
Sets the name given to the device.

Parameters:
deviceName - Name given to the device.
Throws:
RemoteException - Exception if an error occurred.

getPluginsNames

String[] getPluginsNames()
                         throws RemoteException
Returns the name of all possible plug-ins related to the device.

Can be NULL if there is no choice to do.

Returns:
Name of all possible plug-ins related to the device (can be NULL).
Throws:
RemoteException - Exception if an error occurred.

selectedPlugin

void selectedPlugin(int pluginIndex)
                    throws RemoteException
Selects a plug-in related to the device by its index into getPluginsNames().

Parameters:
pluginIndex - Index of selected plug-in.
Throws:
RemoteException - Exception if an error occurred.

getLifetime

int getLifetime()
                throws RemoteException
Returns the lifetime of callback in seconds.

Returns:
Lifetime of callback.
Throws:
RemoteException - Exception if an error occurred.


Copyright © 2012 astroDevice. All Rights Reserved.