예제 #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;
 }