org.openmuc.core.datamanager.impl
Class ChannelConfigurationImpl
java.lang.Object
org.openmuc.core.datamanager.impl.ChannelConfigurationImpl
- All Implemented Interfaces:
- ChannelConfiguration
public class ChannelConfigurationImpl
- extends java.lang.Object
- implements ChannelConfiguration
Constructor Summary |
|
ChannelConfigurationImpl(int readingPeriod,
java.util.Date readingStartTime,
java.lang.String objectLocator,
int storageType,
java.lang.Float absoluteChangeLevel,
java.lang.Float relativeChangeLevel,
java.lang.String label,
java.lang.String description)
|
protected |
ChannelConfigurationImpl(org.w3c.dom.Node channel)
|
|
ChannelConfigurationImpl(java.lang.String label)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChannelConfigurationImpl
public ChannelConfigurationImpl(java.lang.String label)
ChannelConfigurationImpl
public ChannelConfigurationImpl(int readingPeriod,
java.util.Date readingStartTime,
java.lang.String objectLocator,
int storageType,
java.lang.Float absoluteChangeLevel,
java.lang.Float relativeChangeLevel,
java.lang.String label,
java.lang.String description)
ChannelConfigurationImpl
protected ChannelConfigurationImpl(org.w3c.dom.Node channel)
getOffset
public double getOffset()
- Specified by:
getOffset
in interface ChannelConfiguration
setOffset
public void setOffset(double offset)
- Specified by:
setOffset
in interface ChannelConfiguration
getScaler
public double getScaler()
- Specified by:
getScaler
in interface ChannelConfiguration
setScaler
public void setScaler(double scaler)
- Specified by:
setScaler
in interface ChannelConfiguration
getAbsoluteChangeLevel
public java.lang.Float getAbsoluteChangeLevel()
- Specified by:
getAbsoluteChangeLevel
in interface ChannelConfiguration
setAbsoluteChangeLevel
public void setAbsoluteChangeLevel(float absoluteChangeLevel)
- Specified by:
setAbsoluteChangeLevel
in interface ChannelConfiguration
getRelativeChangeLevel
public java.lang.Float getRelativeChangeLevel()
- Specified by:
getRelativeChangeLevel
in interface ChannelConfiguration
setRelativeChangeLevel
public void setRelativeChangeLevel(float relativeChangeLevel)
- Specified by:
setRelativeChangeLevel
in interface ChannelConfiguration
getStorageType
public int getStorageType()
- Specified by:
getStorageType
in interface ChannelConfiguration
getStoringPeriod
public int getStoringPeriod()
- Specified by:
getStoringPeriod
in interface ChannelConfiguration
getStoringStartTime
public java.util.Date getStoringStartTime()
- Specified by:
getStoringStartTime
in interface ChannelConfiguration
getDataID
public ChannelIdentifier getDataID()
- Specified by:
getDataID
in interface ChannelConfiguration
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface ChannelConfiguration
getLowerLimit
public java.lang.Double getLowerLimit()
- Specified by:
getLowerLimit
in interface ChannelConfiguration
setLowerLimit
public void setLowerLimit(java.lang.Double lowerLimit)
- Specified by:
setLowerLimit
in interface ChannelConfiguration
getUpperLimit
public java.lang.Double getUpperLimit()
- Specified by:
getUpperLimit
in interface ChannelConfiguration
setUpperLimit
public void setUpperLimit(java.lang.Double upperLimit)
- Specified by:
setUpperLimit
in interface ChannelConfiguration
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interface ChannelConfiguration
setLabel
public void setLabel(java.lang.String label)
- Specified by:
setLabel
in interface ChannelConfiguration
getObjectLocator
public java.lang.String getObjectLocator()
- Specified by:
getObjectLocator
in interface ChannelConfiguration
setObjectLocator
public void setObjectLocator(java.lang.String objectLocator)
- Specified by:
setObjectLocator
in interface ChannelConfiguration
setStoringPeriod
public void setStoringPeriod(java.lang.Integer storingPeriod)
setStoringStartTime
public void setStoringStartTime(java.util.Date storingStartTime)
- Specified by:
setStoringStartTime
in interface ChannelConfiguration
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescription
in interface ChannelConfiguration
setRelativeChangeLevel
public void setRelativeChangeLevel(java.lang.Float relativeChangeLevel)
- Specified by:
setRelativeChangeLevel
in interface ChannelConfiguration
setStorageType
public void setStorageType(java.lang.Integer storageType)
setScaler
public void setScaler(java.lang.Double scaler)
persist
public void persist(org.w3c.dom.Element parent,
org.w3c.dom.Document document)
setStoringPeriod
public void setStoringPeriod(int storingPeriod)
- Specified by:
setStoringPeriod
in interface ChannelConfiguration
- Parameters:
storingPeriod
- period of data storing in seconds
setStorageType
public void setStorageType(int storageType)
- Specified by:
setStorageType
in interface ChannelConfiguration
getUnit
public Unit getUnit()
- Specified by:
getUnit
in interface ChannelConfiguration
setUnit
public void setUnit(Unit unit)
- Specified by:
setUnit
in interface ChannelConfiguration