Example #1
0
        private Dictionary <string, SignalCache> LoadSignalCacheList(string signalIdentityCodes)
        {
            string[] signalIdentities = signalIdentityCodes.Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
            Dictionary <string, SignalCache> cacheList = new Dictionary <string, SignalCache>();

            foreach (string signalIdentity in signalIdentities)
            {
                SignalCache signalCache = new SignalCache(signalIdentity, barType, cacheId);
                cacheList.Add(signalIdentity, signalCache);
            }

            return(cacheList);
        }
Example #2
0
        public CoreSignal(object instance, Guid cacheId, bool cachingEnabled = true)
        {
            this.SignalInstance = instance;
            this.Signal         = instance as ISignal;
            this.cacheId        = cacheId;
            this.cachingEnabled = cachingEnabled;

            if (cachingEnabled)
            {
                this.Cache = new SignalCache(instance, cacheId);
                this.Cache.Initialize();
            }
        }
 public HistogramViewModel(SignalCache signal, int index)
 {
     MinValue = signal.Min(p => p.Y) - double.Epsilon;
     MaxValue = signal.Max(p => p.Y) + double.Epsilon;
     _lowerBound = MinValue;
     _upperBound = MaxValue;
     _buckets = 10;
     _signal = signal;
     _index = index;
     _chart = new HistogramChart(signal);
     Info = new SignalInfoViewModel(signal.Header);
     Columns = new BindableCollection<Tuple<int, Bucket>>();
     Update();
 }
 public SpectrumViewModel(SignalCache signalCache, int index)
 {
     _index = index;
     Chart = new SpectrumChart(signalCache);
     Info = new SignalInfoViewModel(signalCache.Header);
 }
 public HistogramChart(SignalCache signal)
 {
     _signal = signal;
 }