Пример #1
0
        private void processVmsUnitRecord(VmsUnitRecord vmsUnitRecord, DateTime publicationTime, String vmsUnitTableId)
        {
            String vmsUnitIdentifier = vmsUnitRecord.id;

            if (logWrapper.isTrace())
            {
                logWrapper.Trace("Processing VMS Identifier(" + vmsUnitIdentifier + ")");
            }

            switch (vmsUnitTableId)
            {
            case "NTIS_Matrix_Units":
                MatrixSignalStaticData matrixSignalStaticData = new MatrixSignalStaticData(vmsUnitIdentifier, publicationTime, vmsUnitRecord);
                matrixSignalStaticDataStore.updateData(matrixSignalStaticData);
                break;

            case "NTIS_VMS_Units":
                VMSStaticData vmsStaticData = new VMSStaticData(vmsUnitIdentifier, publicationTime, vmsUnitRecord);
                vmsStaticDataStore.updateData(vmsStaticData);
                break;

            default:
                logWrapper.Error("VMS Unit Table Id not implemented: " + vmsUnitTableId);
                break;
            }
        }
Пример #2
0
        private void processVmsUnitTable(VmsUnitTable vmsUnitTable, DateTime publicationTime)
        {
            String vmsUnitTableId = vmsUnitTable.id;

            if (logWrapper.isDebug())
            {
                logWrapper.Debug("NTIS Model VMS Tables Update(" + vmsUnitTableId + ")");
            }

            VmsUnitRecord[] vmsUnitRecordList = vmsUnitTable.vmsUnitRecord;

            for (int vmsUnitRecordListPos = 0; vmsUnitRecordListPos < vmsUnitRecordList.Length; vmsUnitRecordListPos++)
            {
                VmsUnitRecord vmsUnitRecord = vmsUnitRecordList[vmsUnitRecordListPos];
                processVmsUnitRecord(vmsUnitRecord, publicationTime, vmsUnitTableId);
            }
        }
 public MatrixSignalStaticData(String matrixSignalStaticIdentifier, DateTime publicationTime, VmsUnitRecord matrixSignalStaticData)
 {
     this.publicationTime = publicationTime;
     this.matrixSignalStaticIdentifier = matrixSignalStaticIdentifier;
     this.matrixSignalStaticData       = matrixSignalStaticData;
 }
 public VMSStaticData(String vmsStaticIdentifier, DateTime publicationTime, VmsUnitRecord vmsStaticData)
 {
     this.publicationTime     = publicationTime;
     this.vmsStaticIdentifier = vmsStaticIdentifier;
     this.vmsStaticData       = vmsStaticData;
 }