Exemplo n.º 1
0
 public ValuesReader(ValuesEntry valuesEntry)
     : base(valuesEntry)
 {
     this.valuesEntry = valuesEntry;
     dataType         = valuesEntry.getDataType();
     channelCount     = valuesEntry.getChannelCount();
     lsbValue         = valuesEntry.getLsbValue();
     baseline         = valuesEntry.getBaseline();
 }
Exemplo n.º 2
0
        public void testClone()
        {
            ValuesEntry clonedValuesEntry = (ValuesEntry)valuesEntry.clone <ValuesEntry>();

            Assert.AreEqual(valuesEntry.getAdcResolution(), clonedValuesEntry.getAdcResolution());
            Assert.AreEqual(valuesEntry.getAdcZero(), clonedValuesEntry.getAdcZero());
            Assert.AreEqual(valuesEntry.getBaseline(), clonedValuesEntry.getBaseline());
            Assert.AreEqual(valuesEntry.getComment(), clonedValuesEntry.getComment());
            Assert.AreEqual(valuesEntry.getContentClass(), clonedValuesEntry.getContentClass());
            Assert.AreEqual(valuesEntry.getDataType(), clonedValuesEntry.getDataType());
            Assert.AreEqual(valuesEntry.getFileFormat().getFileFormatName(), clonedValuesEntry.getFileFormat().getFileFormatName());
            Assert.AreEqual(valuesEntry.getFileFormat().getComment(), clonedValuesEntry.getFileFormat().getComment());
            Assert.AreEqual(valuesEntry.getId(), clonedValuesEntry.getId());
            Assert.AreEqual(valuesEntry.getLsbValue(), clonedValuesEntry.getLsbValue(), 0);
            Assert.AreEqual(valuesEntry.getSampleRate(), clonedValuesEntry.getSampleRate(), 0);
            Assert.AreEqual(valuesEntry.getSource(), clonedValuesEntry.getSource());
            Assert.AreEqual(valuesEntry.getUnisens(), clonedValuesEntry.getUnisens());
            Assert.AreEqual(valuesEntry.getUnit(), clonedValuesEntry.getUnit());
            Assert.AreEqual(valuesEntry.getChannelCount(), clonedValuesEntry.getChannelCount());
            assertArrayEquals(valuesEntry.getChannelNames(), clonedValuesEntry.getChannelNames());
        }