org.openmuc.core.driver
Interface DeviceDriverManager

All Known Implementing Classes:
DriverManagerImpl

public interface DeviceDriverManager


Method Summary
 java.util.List<DeviceURI> getConnectedDevices(BusURI uri)
          Returns a list of connected Devices to this busURI
 java.util.List<ChannelInformation> getDeviceChannels(DeviceURI uri)
          Returns a List of Channels for a given Device.
 void readDeviceAsync(DeviceURI url, java.util.List<ChannelIdentifier> list, DataReceivedListener callback, java.lang.Object handle)
          Delegates a readDeviceAsync request to the appropriate communication driver
 java.util.List<Measurement> readDeviceSync(DeviceURI uri, java.util.List<ChannelIdentifier> channels)
          Immediately reads a Device and returns measured Results
 void writeChannel(DeviceURI url, ChannelIdentifier channel, double value)
          Delegates a writeChannel request for the given channel and value to the appropriate communication driver.
 

Method Detail

readDeviceAsync

void readDeviceAsync(DeviceURI url,
                     java.util.List<ChannelIdentifier> list,
                     DataReceivedListener callback,
                     java.lang.Object handle)
                     throws NoSuchDriverException,
                            java.io.IOException
Delegates a readDeviceAsync request to the appropriate communication driver

Parameters:
url -
list -
callback -
handle -
Throws:
NoSuchDriverException
java.io.IOException

writeChannel

void writeChannel(DeviceURI url,
                  ChannelIdentifier channel,
                  double value)
                  throws NoSuchDriverException,
                         MethodNotImplementedException,
                         java.io.IOException
Delegates a writeChannel request for the given channel and value to the appropriate communication driver.

Parameters:
url -
channel -
value -
Throws:
NoSuchDriverException
MethodNotImplementedException
java.io.IOException

getConnectedDevices

java.util.List<DeviceURI> getConnectedDevices(BusURI uri)
                                              throws MethodNotImplementedException,
                                                     NoSuchDriverException,
                                                     java.io.IOException
Returns a list of connected Devices to this busURI

Parameters:
uri -
Throws:
MethodNotImplementedException
NoSuchDriverException
java.io.IOException

getDeviceChannels

java.util.List<ChannelInformation> getDeviceChannels(DeviceURI uri)
                                                     throws MethodNotImplementedException,
                                                            NoSuchDriverException,
                                                            java.io.IOException
Returns a List of Channels for a given Device.

Parameters:
uri -
Throws:
MethodNotImplementedException
NoSuchDriverException
java.io.IOException

readDeviceSync

java.util.List<Measurement> readDeviceSync(DeviceURI uri,
                                           java.util.List<ChannelIdentifier> channels)
                                           throws MethodNotImplementedException,
                                                  java.io.IOException
Immediately reads a Device and returns measured Results

Parameters:
uri -
channels -
Throws:
MethodNotImplementedException
java.io.IOException