|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmuc.metering.driver.manager.DriverManagerImpl
public class DriverManagerImpl
Constructor Summary | |
---|---|
DriverManagerImpl()
|
Method Summary | |
---|---|
java.util.List<DeviceURI> |
getConnectedDevices(BusURI url)
Returns a list of connected Devices to this busURI |
java.util.List<ChannelInformation> |
getDeviceChannels(DeviceURI url)
Returns a List of Channels for a given Device. |
void |
readDeviceAsync(DeviceURI url,
java.util.List<ChannelIdentifier> registers,
DataReceivedListener callback,
java.lang.Object handle)
Delegates a readDeviceAsync request to the appropriate communication driver |
java.util.List<Measurement> |
readDeviceSync(DeviceURI url,
java.util.List<ChannelIdentifier> channels)
Immediately reads a Device and returns measured Results |
void |
registerDriver(DeviceDriverInterface driver,
java.lang.String driverID)
|
void |
unregisterDriver(DeviceDriverInterface driver)
|
void |
writeChannel(DeviceURI url,
ChannelIdentifier register,
double value)
Delegates a writeChannel request for the given channel and value to the appropriate communication driver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DriverManagerImpl()
Method Detail |
---|
public void registerDriver(DeviceDriverInterface driver, java.lang.String driverID)
public void unregisterDriver(DeviceDriverInterface driver)
public void readDeviceAsync(DeviceURI url, java.util.List<ChannelIdentifier> registers, DataReceivedListener callback, java.lang.Object handle) throws NoSuchDriverException
DeviceDriverManager
readDeviceAsync
in interface DeviceDriverManager
NoSuchDriverException
public void writeChannel(DeviceURI url, ChannelIdentifier register, double value) throws NoSuchDriverException, MethodNotImplementedException, java.io.IOException
DeviceDriverManager
writeChannel
in interface DeviceDriverManager
NoSuchDriverException
MethodNotImplementedException
java.io.IOException
public java.util.List<DeviceURI> getConnectedDevices(BusURI url) throws MethodNotImplementedException, NoSuchDriverException, java.io.IOException
DeviceDriverManager
getConnectedDevices
in interface DeviceDriverManager
MethodNotImplementedException
NoSuchDriverException
java.io.IOException
public java.util.List<ChannelInformation> getDeviceChannels(DeviceURI url) throws MethodNotImplementedException, NoSuchDriverException, java.io.IOException
DeviceDriverManager
getDeviceChannels
in interface DeviceDriverManager
MethodNotImplementedException
NoSuchDriverException
java.io.IOException
public java.util.List<Measurement> readDeviceSync(DeviceURI url, java.util.List<ChannelIdentifier> channels) throws MethodNotImplementedException, java.io.IOException
DeviceDriverManager
readDeviceSync
in interface DeviceDriverManager
MethodNotImplementedException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |