private SerializableBadTimestampMeasurement CreateSerializableBadTimestampMeasurement(IMeasurement measurement, Ticks arrivalTime) { SerializableBadTimestampMeasurement serializableMeasurement = new SerializableBadTimestampMeasurement(measurement, arrivalTime); serializableMeasurement.ProcessException += serializableMeasurement_ProcessException; serializableMeasurement.SetDeviceAndSignalType(m_test.DataSource); return(serializableMeasurement); }
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); }
private SerializableBadTimestampMeasurement CreateSerializableBadTimestampMeasurement(IMeasurement measurement, Ticks arrivalTime) { SerializableBadTimestampMeasurement serializableMeasurement = new SerializableBadTimestampMeasurement(measurement, arrivalTime); serializableMeasurement.ProcessException += serializableMeasurement_ProcessException; serializableMeasurement.SetDeviceAndSignalType(m_test.DataSource); return serializableMeasurement; }