private void AppendMappedMeasurements(Channel channel, FieldVisitInfo fieldVisitInfo)
        {
            var config = new ConfigLoader(Appender).Load();
            var dischargeActivityMapper = new DischargeActivityMapper(config, fieldVisitInfo);

            Appender.AddDischargeActivity(fieldVisitInfo, dischargeActivityMapper.Map(channel));
        }
Example #2
0
        private void AppendMappedMeasurements(DischargeMeasurementSummary summary, FieldVisitInfo fieldVisitInfo)
        {
            var dischargeActivityMapper = new DischargeActivityMapper(Config, fieldVisitInfo);

            Appender.AddDischargeActivity(fieldVisitInfo, dischargeActivityMapper.Map(summary));

            var calibrationsMapper = new CalibrationsMapper(fieldVisitInfo);

            foreach (var calibration in calibrationsMapper.Map(summary))
            {
                Appender.AddCalibration(fieldVisitInfo, calibration);
            }
        }
Example #3
0
        private void AppendMappedMeasurements(XmlRootSummary xmlRootSummary, FieldVisitInfo fieldVisitInfo)
        {
            var dischargeActivityMapper = new DischargeActivityMapper(fieldVisitInfo);

            _appender.AddDischargeActivity(fieldVisitInfo, dischargeActivityMapper.Map(xmlRootSummary));

            var readingsMapper = new ReadingsMapper(fieldVisitInfo);

            foreach (var reading in readingsMapper.Map(xmlRootSummary, dischargeActivityMapper.IsMetric))
            {
                _appender.AddReading(fieldVisitInfo, reading);
            }
        }
Example #4
0
 public StageDischargeReadingsPlugin(IDataParser <StageDischargeReadingRecord> parser)
 {
     _parser = parser;
     _dischargeActivityMapper = new DischargeActivityMapper();
 }