org.openmuc.core.driver
Interface DeviceDriverManager

All Known Implementing Classes:
MeterDriverManagerImpl

public interface DeviceDriverManager


Method Summary
 java.util.List<DeviceURI> getConnectedDevices(BusURI url)
          Gets a list of connected Devices to this busURL
 java.util.List<ChannelInformation> getDeviceChannels(DeviceURI url)
          Gets 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 readMeterData request to the appropriate driver
 java.util.List<Measurement> readDeviceSync(DeviceURI url, java.util.List<ChannelIdentifier> channels)
          Immediately reads a Device and returns measured Results
 void writeChannel(DeviceURI url, ChannelIdentifier channel, double value)
           
 

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 readMeterData request to the appropriate 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
Parameters:
url -
channel -
value -
Throws:
NoSuchDriverException
MethodNotImplementedException
java.io.IOException

getConnectedDevices

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

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

getDeviceChannels

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

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

readDeviceSync

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

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