public override List <GnssBaseLineName> Build() { ObsSiteFileManager totalSite = new ObsSiteFileManager(obsFilePaths, TimeSpan.FromMinutes(1)); List <GnssBaseLineName> result = new List <GnssBaseLineName>(); foreach (var line in IndicatedLines) { if (totalSite.Contains(line.RefName) && totalSite.Contains(line.RovName)) { result.Add(new GnssBaseLineName(totalSite[line.RefName], totalSite[line.RovName])); } } return(result); }
/// <summary> /// 构建 /// </summary> /// <returns></returns> public override List <GnssBaseLineName> Build() { List <GnssBaseLineName> lines = new List <GnssBaseLineName>(); ObsSiteFileManager siteObsBaselines = new ObsSiteFileManager(obsFilePaths, TimeSpan.FromMinutes(10)); foreach (var item in siteObsBaselines) { if (item.SiteName.Equals(refSiteName)) { continue; } var line = new GnssBaseLineName(item.SiteName, refSiteName); lines.Add(line); } return(lines); }