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)))); }
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++; } }
public bool HasCorrection(IonoCorrectionsEnum corType) { return(_ionoCorrections.ContainsKey(corType)); }
public IEnumerable <IonoCorrections> GetCorrections(SatelliteSystem satSys, IonoCorrectionsEnum corType, int timeMark, int satId) { return(GetCorrections(satSys, corType, CharToHourMap.HourToChar[timeMark], satId)); }
public IEnumerable <IonoCorrections> GetCorrections(SatelliteSystem satSys, IonoCorrectionsEnum corType) { return(_ionoCorrections.Where(t => t.SatelliteSystem == satSys && t.HasCorrection(corType))); }