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