示例#1
0
        public override void processMessage(D2LogicalModel d2LogicalModel)
        {
            if (logWrapper.isDebug())
            {
                logWrapper.Debug("NTIS Model Measurement Site Tables Update");
            }

            tameStaticDataStore.clearDataStore();
            midasStaticDataStore.clearDataStore();
            anprStaticDataStore.clearDataStore();
            tmuStaticDataStore.clearDataStore();

            MeasurementSiteTablePublication measurementSiteTablePublication = (MeasurementSiteTablePublication)d2LogicalModel.payloadPublication;

            if (measurementSiteTablePublication != null)
            {
                DateTime publicationTime = measurementSiteTablePublication.publicationTime;
                MeasurementSiteTable[] measurementSiteTableList = measurementSiteTablePublication.measurementSiteTable;

                for (int measurementSiteTableListPos = 0; measurementSiteTableListPos < measurementSiteTableList.Length; measurementSiteTableListPos++)
                {
                    MeasurementSiteTable measurementSiteTable = measurementSiteTableList[measurementSiteTableListPos];
                    processMeasurementSiteTable(measurementSiteTable, publicationTime);
                }
            }

            if (logWrapper.isDebug())
            {
                logWrapper.Debug("NTIS Model Measurement Site Tables Update Complete");
            }
        }
示例#2
0
        private void processMeasurementSiteTable(MeasurementSiteTable measurementSiteTable, DateTime publicationTime)
        {
            String measurementSiteTableId = measurementSiteTable.id;

            if (logWrapper.isDebug())
            {
                logWrapper.Debug("NTIS Model Measurement Site Tables Update(" + measurementSiteTableId + ")");
            }

            MeasurementSiteRecord[] measurementSiteRecordList = measurementSiteTable.measurementSiteRecord;

            for (int measurementSiteRecordListPos = 0; measurementSiteRecordListPos < measurementSiteRecordList.Length; measurementSiteRecordListPos++)
            {
                MeasurementSiteRecord measurementSiteRecord = measurementSiteRecordList[measurementSiteRecordListPos];
                processMeasurementSiteRecord(measurementSiteRecord, publicationTime, measurementSiteTableId);
            }
        }