org.openmuc.core.datamanager.impl
Class DeviceConfigurationImpl
java.lang.Object
org.openmuc.core.datamanager.impl.DeviceConfigurationImpl
- All Implemented Interfaces:
- DeviceConfiguration
public class DeviceConfigurationImpl
- extends java.lang.Object
- implements DeviceConfiguration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeviceConfigurationImpl
protected DeviceConfigurationImpl(Configuration configuration,
java.lang.String name)
DeviceConfigurationImpl
protected DeviceConfigurationImpl(Configuration configuration,
org.w3c.dom.Node nodeMeter)
createChannel
public ChannelConfiguration createChannel(java.lang.String label)
- Specified by:
createChannel
in interface DeviceConfiguration
deleteChannel
public void deleteChannel(java.lang.String label)
- Specified by:
deleteChannel
in interface DeviceConfiguration
getMeterID
public java.lang.String getMeterID()
- Specified by:
getMeterID
in interface DeviceConfiguration
getVendorID
public java.lang.String getVendorID()
- Specified by:
getVendorID
in interface DeviceConfiguration
getDeviceID
public java.lang.String getDeviceID()
- Specified by:
getDeviceID
in interface DeviceConfiguration
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interface DeviceConfiguration
getUrl
public DeviceURI getUrl()
- Specified by:
getUrl
in interface DeviceConfiguration
getChannels
public java.util.List<ChannelConfiguration> getChannels()
- Description copied from interface:
DeviceConfiguration
- Returns an immutable list of registers
- Specified by:
getChannels
in interface DeviceConfiguration
getChannelByLabel
public ChannelConfiguration getChannelByLabel(java.lang.String label)
- Specified by:
getChannelByLabel
in interface DeviceConfiguration
getChannelIdentifierList
public java.util.List<ChannelIdentifier> getChannelIdentifierList()
- Specified by:
getChannelIdentifierList
in interface DeviceConfiguration
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface DeviceConfiguration
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescription
in interface DeviceConfiguration
setVendorID
public void setVendorID(java.lang.String vendorID)
- Specified by:
setVendorID
in interface DeviceConfiguration
setDeviceID
public void setDeviceID(java.lang.String deviceID)
- Specified by:
setDeviceID
in interface DeviceConfiguration
setVersion
public void setVersion(java.lang.String version)
- Specified by:
setVersion
in interface DeviceConfiguration
persist
protected void persist(org.w3c.dom.Element parent,
org.w3c.dom.Document document)
getName
public java.lang.String getName()
- Specified by:
getName
in interface DeviceConfiguration
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface DeviceConfiguration
setMeterUrl
public void setMeterUrl(java.lang.String meterUrl)
- Specified by:
setMeterUrl
in interface DeviceConfiguration
getProperty
public java.lang.String getProperty(java.lang.String name)
- Specified by:
getProperty
in interface DeviceConfiguration
setProperty
public void setProperty(java.lang.String name,
java.lang.String value)
- Specified by:
setProperty
in interface DeviceConfiguration
deleteProperty
public void deleteProperty(java.lang.String name)
- Specified by:
deleteProperty
in interface DeviceConfiguration
getPropertyList
public java.util.Map<java.lang.String,java.lang.String> getPropertyList()
- Specified by:
getPropertyList
in interface DeviceConfiguration
getSamplingPeriod
public long getSamplingPeriod()
- Description copied from interface:
DeviceConfiguration
- Return the sampling period for this device
- Specified by:
getSamplingPeriod
in interface DeviceConfiguration
- Returns:
- sampling period in ms.
setSamplingPeriod
public void setSamplingPeriod(long period)
- Description copied from interface:
DeviceConfiguration
- Set the sampling period for this device
- Specified by:
setSamplingPeriod
in interface DeviceConfiguration
- Parameters:
period
- sampling period in ms.