Пример #1
0
 public IEnumerable <IonoCorrections> GetCorrections(SatelliteSystem satSys, IonoCorrectionsEnum corType,
                                                     char timeMark, int satId)
 {
     return(IonoCorrections.Where(t => t.SatId.HasValue && t.SatId.Value == satId &&
                                  t.SatelliteSystem == satSys && t.HasCorrection(corType) &&
                                  Char.ToLowerInvariant(t.TimeMark).Equals(Char.ToLowerInvariant(timeMark))));
 }
Пример #2
0
        public IonoCorrections(SatelliteSystem satelliteSystem, IEnumerable <double> corrections, IonoCorrectionsEnum startIndex,
                               char?timeMark, int?satId)
        {
            _satelliteSystem = satelliteSystem;
            _timeMark        = timeMark;
            _satId           = satId;
            var index = 0;

            foreach (var correction in corrections)
            {
                Debug.Assert(Enum.IsDefined(typeof(IonoCorrectionsEnum), startIndex + index),
                             "Enum.IsDefined(typeof(IonoCorrectionsEnum),startIndex + index)");
                _ionoCorrections.Add(startIndex + index, correction);
                index++;
            }
        }
Пример #3
0
 public bool HasCorrection(IonoCorrectionsEnum corType)
 {
     return(_ionoCorrections.ContainsKey(corType));
 }
Пример #4
0
 public IEnumerable <IonoCorrections> GetCorrections(SatelliteSystem satSys, IonoCorrectionsEnum corType,
                                                     int timeMark, int satId)
 {
     return(GetCorrections(satSys, corType, CharToHourMap.HourToChar[timeMark], satId));
 }
Пример #5
0
 public IEnumerable <IonoCorrections> GetCorrections(SatelliteSystem satSys, IonoCorrectionsEnum corType)
 {
     return(_ionoCorrections.Where(t => t.SatelliteSystem == satSys && t.HasCorrection(corType)));
 }