Пример #1
0
        private SerializableBadTimestampMeasurement CreateSerializableBadTimestampMeasurement(IMeasurement measurement, Ticks arrivalTime)
        {
            SerializableBadTimestampMeasurement serializableMeasurement = new SerializableBadTimestampMeasurement(measurement, arrivalTime);

            serializableMeasurement.ProcessException += serializableMeasurement_ProcessException;
            serializableMeasurement.SetDeviceAndSignalType(m_test.DataSource);
            return(serializableMeasurement);
        }
Пример #2
0
        private SerializableTimestampTest ReadBadTimestampMeasurements()
        {
            SerializableTimestampTest serializableTest = new SerializableTimestampTest();
            Dictionary <Ticks, LinkedList <IMeasurement> > badTimestampMeasurements             = m_test.GetMeasurementsWithBadTimestamps();
            List <SerializableBadTimestampMeasurement>     serializableBadTimestampMeasurements = new List <SerializableBadTimestampMeasurement>();

            foreach (Ticks arrivalTime in badTimestampMeasurements.Keys)
            {
                foreach (IMeasurement measurement in badTimestampMeasurements[arrivalTime])
                {
                    SerializableBadTimestampMeasurement serializableMeasurement = CreateSerializableBadTimestampMeasurement(measurement, arrivalTime);
                    serializableBadTimestampMeasurements.Add(serializableMeasurement);
                }
            }

            serializableTest.BadTimestampMeasurements = serializableBadTimestampMeasurements.ToArray();
            return(serializableTest);
        }
Пример #3
0
 private SerializableBadTimestampMeasurement CreateSerializableBadTimestampMeasurement(IMeasurement measurement, Ticks arrivalTime)
 {
     SerializableBadTimestampMeasurement serializableMeasurement = new SerializableBadTimestampMeasurement(measurement, arrivalTime);
     serializableMeasurement.ProcessException += serializableMeasurement_ProcessException;
     serializableMeasurement.SetDeviceAndSignalType(m_test.DataSource);
     return serializableMeasurement;
 }