Exemplo n.º 1
0
        /// <summary>
        /// 向下移动
        /// </summary>
        /// <returns></returns>
        public override bool MoveNext()
        {
            //#region 流程控制
            //CurrentIndex++;
            //if (CurrentIndex == StartIndex) { log.Debug("数据流 " + this.Name + " 开始读取数据。"); }
            //if (this.IsCancel) { log.Info("数据流 " + this.Name + " 已被手动取消。"); return false; }
            //if (CurrentIndex > this.MaxEnumIndex) { log.Info("数据流 " + this.Name + " 已达指定的最大编号 " + this.MaxEnumIndex); return false; }
            //while (CurrentIndex < this.StartIndex) { this.MoveNext(); }
            //#endregion

            if (_CurrentReader.MoveNext())
            {
                var result = (EpochInfoBuilder.Build(_CurrentReader.Current));
                if (result == null)
                {
                    return(false);
                }
                this.Current = result;
                return(true);
            }
            return(false);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取指定时刻的观测数据
        /// </summary>
        /// <param name="gpsTime"></param>
        /// <param name="toleranceSeccond"></param>
        /// <returns></returns>
        public override Domain.EpochInformation Get(Geo.Times.Time gpsTime, double toleranceSeccond = 1e-15)
        {
            var epochObs = _CurrentReader.Get(gpsTime, toleranceSeccond);

            return(EpochInfoBuilder.Build(epochObs));
        }