public class AvailableDeviceDriverRMI extends java.rmi.server.UnicastRemoteObject implements AvailableDeviceDriver
Modifier and Type | Field and Description |
---|---|
protected int |
accessID |
Modifier | Constructor and Description |
---|---|
protected |
AvailableDeviceDriverRMI(AvailableDeviceDriverInternal deviceDriver,
int accessID) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns the description of the device driver.
|
java.lang.String |
getDriverID()
Returns the identifier of the device driver.
|
java.lang.String |
getLibraryID()
Returns the name of the library where this device is implemented.
|
DeviceType |
getType()
Returns the type of this device driver.
|
void |
initializeDevice(DeviceSetting[] preInitSettings)
Initializes a previously loaded device.
|
boolean |
isSerialPortDriver()
Returns true if this driver communicates over a serial port.
|
PreInitDeviceProperty[] |
loadDevice(java.lang.String deviceID)
Loads the specified device driver, but yet does not initialize it.
|
void |
unloadDevice()
Unloads a previously loaded, but yet not initialized device.
|
clone, exportObject, exportObject, exportObject, unexportObject
protected AvailableDeviceDriverRMI(AvailableDeviceDriverInternal deviceDriver, int accessID) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getDriverID() throws MicroscopeDriverException
AvailableDeviceDriver
getDriverID
in interface AvailableDeviceDriver
MicroscopeDriverException
public DeviceType getType() throws MicroscopeDriverException
AvailableDeviceDriver
getType
in interface AvailableDeviceDriver
MicroscopeDriverException
public java.lang.String getDescription() throws MicroscopeDriverException
AvailableDeviceDriver
getDescription
in interface AvailableDeviceDriver
MicroscopeDriverException
public java.lang.String getLibraryID() throws MicroscopeDriverException
AvailableDeviceDriver
getLibraryID
in interface AvailableDeviceDriver
MicroscopeDriverException
public boolean isSerialPortDriver() throws java.rmi.RemoteException, MicroscopeLockedException, MicroscopeDriverException
AvailableDeviceDriver
isSerialPortDriver
in interface AvailableDeviceDriver
java.rmi.RemoteException
MicroscopeLockedException
MicroscopeDriverException
public PreInitDeviceProperty[] loadDevice(java.lang.String deviceID) throws MicroscopeDriverException, MicroscopeLockedException, java.rmi.RemoteException
AvailableDeviceDriver
loadDevice
in interface AvailableDeviceDriver
deviceID
- The ID under which the device should be initialized.MicroscopeDriverException
MicroscopeLockedException
java.rmi.RemoteException
public void initializeDevice(DeviceSetting[] preInitSettings) throws MicroscopeDriverException, MicroscopeLockedException
AvailableDeviceDriver
initializeDevice
in interface AvailableDeviceDriver
preInitSettings
- Device properties necessary to be set prior to the initialization of the device. Can be null or an empty array if no settings are necessary.MicroscopeDriverException
MicroscopeLockedException
public void unloadDevice() throws MicroscopeLockedException, MicroscopeDriverException
AvailableDeviceDriver
unloadDevice
in interface AvailableDeviceDriver
MicroscopeLockedException
MicroscopeDriverException