|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmuc.mbus.driver.MBusDriverImpl
public class MBusDriverImpl
Field Summary |
---|
Fields inherited from interface org.openmuc.core.driver.DeviceDriverInterface |
---|
ERROR_INVALID_MESSAGE, ERROR_TIMEOUT, IO_ERROR |
Constructor Summary | |
---|---|
MBusDriverImpl()
|
Method Summary | |
---|---|
int |
addMeter(java.lang.String meterURL)
|
void |
configureInterface(java.lang.String iface,
java.lang.String configStr)
Configure the interface. |
java.util.List<ChannelInformation> |
getDeviceChannels(DeviceURI url)
Scan a device for available channels This operation is optional and my not be supported by specific drivers |
java.util.List<DeviceURI> |
getDeviceList(BusURI url)
Scan the bus for connected meters This operation is optional and my not be supported by specific drivers |
java.lang.String |
getDriverID()
|
java.util.Vector<OBISData> |
getMeterValues(int valueSelectionIndicator)
|
void |
getMeterValuesRequest(DataReceivedListener listener,
int valueSelectionIndicator)
|
java.util.Vector<java.lang.String> |
getSupportedOperations()
Get a list of supported operations by the driver. |
void |
readDeviceAsync(DeviceURI url,
java.util.List<ChannelIdentifier> registers,
DataReceivedListener callback,
java.lang.Object handle)
|
java.util.List<Measurement> |
readDeviceSync(DeviceURI url,
java.util.List<ChannelIdentifier> registers)
|
void |
shutdown()
|
void |
writeChannel(DeviceURI url,
ChannelIdentifier register,
double value)
Write a channel/register on connected meter / device / i/o |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MBusDriverImpl()
Method Detail |
---|
public int addMeter(java.lang.String meterURL)
public java.lang.String getDriverID()
getDriverID
in interface DeviceDriverInterface
public java.util.Vector<OBISData> getMeterValues(int valueSelectionIndicator)
public void getMeterValuesRequest(DataReceivedListener listener, int valueSelectionIndicator)
public java.util.Vector<java.lang.String> getSupportedOperations()
DeviceDriverInterface
getSupportedOperations
in interface DeviceDriverInterface
public void readDeviceAsync(DeviceURI url, java.util.List<ChannelIdentifier> registers, DataReceivedListener callback, java.lang.Object handle)
readDeviceAsync
in interface DeviceDriverInterface
url
- URL of the meterregisters
- List of registers to readout. If registers == null all
registers will be read.callback
- Callback object if task finished or error/timeout occured.
java.io.IOException
public void configureInterface(java.lang.String iface, java.lang.String configStr) throws java.io.IOException
DeviceDriverInterface
configureInterface
in interface DeviceDriverInterface
iface
- (eg. "usb0", "com1" etc)configStr
- (eg. "setting=2400-7N1")
java.io.IOException
public java.util.List<Measurement> readDeviceSync(DeviceURI url, java.util.List<ChannelIdentifier> registers)
readDeviceSync
in interface DeviceDriverInterface
public void writeChannel(DeviceURI url, ChannelIdentifier register, double value) throws MethodNotImplementedException
DeviceDriverInterface
writeChannel
in interface DeviceDriverInterface
url
- - URL of the device in a driver specific formatregister
- - channel to write tovalue
- - value to write to register
MethodNotImplementedException
- if method is not implemented by driverpublic void shutdown()
public java.util.List<DeviceURI> getDeviceList(BusURI url) throws MethodNotImplementedException
DeviceDriverInterface
getDeviceList
in interface DeviceDriverInterface
MethodNotImplementedException
- if method is not implemented by driverpublic java.util.List<ChannelInformation> getDeviceChannels(DeviceURI url) throws MethodNotImplementedException, java.io.IOException
DeviceDriverInterface
getDeviceChannels
in interface DeviceDriverInterface
MethodNotImplementedException
- if method is not implemented by driver
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |