Exemple #1
0
 public void Add(int timePoint, BinarySpectrum spectrum)
 {
     cache.Add(timePoint, new SpectrumCacheItem(spectrum));
 }
 public SpectrumCacheItem(BinarySpectrum spectrum)
 {
     Spectrum = spectrum;
 }
 private void AddSpectrumToCacheIfNotPresent(int timePoint, BinarySpectrum spectrum)
 {
     if (!spectrumCache.IsInCache(timePoint))
     {
         spectrumCache.Add(timePoint, spectrum);
     }
 }