org.openmuc.core.datamanager.config
Interface DeviceConfiguration

All Known Implementing Classes:
DeviceConfigurationImpl

public interface DeviceConfiguration


Method Summary
 ChannelConfiguration createChannel(java.lang.String label)
           
 void deleteChannel(java.lang.String label)
           
 void deleteProperty(java.lang.String name)
           
 ChannelConfiguration getChannelByLabel(java.lang.String label)
           
 java.util.List<ChannelIdentifier> getChannelIdentifierList()
           
 java.util.List<ChannelConfiguration> getChannels()
          Returns an immutable list of registers
 java.lang.String getDescription()
           
 java.lang.String getDeviceID()
           
 java.lang.String getMeterID()
           
 java.lang.String getName()
           
 java.lang.String getProperty(java.lang.String name)
           
 java.util.Map<java.lang.String,java.lang.String> getPropertyList()
           
 long getSamplingPeriod()
          Return the sampling period for this device
 DeviceURI getUrl()
           
 java.lang.String getVendorID()
           
 java.lang.String getVersion()
           
 void setDescription(java.lang.String description)
           
 void setDeviceID(java.lang.String deviceID)
           
 void setMeterUrl(java.lang.String meterUrl)
           
 void setName(java.lang.String name)
           
 void setProperty(java.lang.String name, java.lang.String value)
           
 void setSamplingPeriod(long period)
          Set the sampling period for this device
 void setVendorID(java.lang.String vendorID)
           
 void setVersion(java.lang.String version)
           
 

Method Detail

createChannel

ChannelConfiguration createChannel(java.lang.String label)

deleteChannel

void deleteChannel(java.lang.String label)

getMeterID

java.lang.String getMeterID()

getVendorID

java.lang.String getVendorID()

getDeviceID

java.lang.String getDeviceID()

getVersion

java.lang.String getVersion()

getUrl

DeviceURI getUrl()

getChannels

java.util.List<ChannelConfiguration> getChannels()
Returns an immutable list of registers


getChannelByLabel

ChannelConfiguration getChannelByLabel(java.lang.String label)

getChannelIdentifierList

java.util.List<ChannelIdentifier> getChannelIdentifierList()

getDescription

java.lang.String getDescription()

getSamplingPeriod

long getSamplingPeriod()
Return the sampling period for this device

Returns:
sampling period in ms.

setDescription

void setDescription(java.lang.String description)

setVendorID

void setVendorID(java.lang.String vendorID)

setDeviceID

void setDeviceID(java.lang.String deviceID)

setVersion

void setVersion(java.lang.String version)

getName

java.lang.String getName()

setName

void setName(java.lang.String name)

setMeterUrl

void setMeterUrl(java.lang.String meterUrl)

setSamplingPeriod

void setSamplingPeriod(long period)
Set the sampling period for this device

Parameters:
period - sampling period in ms.

getProperty

java.lang.String getProperty(java.lang.String name)

getPropertyList

java.util.Map<java.lang.String,java.lang.String> getPropertyList()

setProperty

void setProperty(java.lang.String name,
                 java.lang.String value)

deleteProperty

void deleteProperty(java.lang.String name)