public DataVolume(string key, string name, string unit, TimeDomain domain, Vector2 latLong)
 {
     Key     = key;
     Name    = name;
     Unit    = unit;
     Domain  = domain;
     LatLong = latLong;
 }
        public AddOperatorOptionsManager(List <SourceMetric> allSourceMetrics, List <Type> allOperatorTypes, TimeDomain initDomain)
        {
            this.allSourceMetrics = allSourceMetrics;
            this.allOperatorTypes = allOperatorTypes;
            domain = initDomain;

            trackerNamesCache = new Dictionary <GameTime.InTicks, List <string> >();
            metricsCache      = new Dictionary <TrackerDomain, List <SourceMetric> >(new TrackerDomainEqualityComparer());
        }
        public SourceMetric(string parentName, string key, string name, IPullable <float> source, string unit, TimeDomain domain)
        {
            this.ParentName = parentName;
            this.Key        = key;
            this.Name       = name;
            this.Unit       = unit;
            this.Domain     = domain;

            this.source = source;
        }
Exemple #4
0
        private void OnDomainChanged(TimeDomain newDomain)
        {
            if (!optionsManager.TrackerHasChildOfCurrentDomain(Model.ChosenTrackerName))
            {
                Model.ChosenTrackerName = "";
            }

            if (!optionsManager.SourceMetricIsOfCurrentDomain(Model.ChosenSourceMetric))
            {
                Model.ChosenSourceMetric = null;
            }
        }
Exemple #5
0
 public PollSourceMetric(string parentName, string key, string name, IPullable <float> source, string unit, TimeDomain domain) : base(parentName, key, name, source, unit, domain)
 {
 }
Exemple #6
0
 public SetSourceMetric(string parentName, string key, string name, IPullable <float> source, string unit, TimeDomain domain, IAggregator <float> aggregator = null) : base(parentName, key, name, source, unit, domain)
 {
     if (aggregator == null)
     {
         this.aggregator = new AverageAggregator();
     }
     else
     {
         this.aggregator = aggregator;
     }
 }
 public TrackerDomain(string trackerName, TimeDomain domain)
 {
     TrackerName = trackerName;
     Domain      = domain;
 }
        public WindowSourceMetric(string parentName, string key, string name, IPullable <float> source, string unit, TimeDomain domain, IAggregator <float> aggregator = null, int?windowSize = null) : base(parentName, key, name, source, unit, domain, aggregator)
        {
            if (windowSize.HasValue)
            {
                if (windowSize.Value <= 0)
                {
                    throw new Exception("WindowStatMetric windowSize must be greater than 0");
                }

                this.windowSize = windowSize.Value;
            }
            else
            {
                this.windowSize = this.Domain.ResInTicks;
            }
        }
 public DigestSourceMetric(string parentName, string key, string name, IPullable <float> source, string unit, TimeDomain domain, IAggregator <float> aggregator = null) : base(parentName, key, name, source, unit, domain, aggregator)
 {
 }
 public void ChangeDomain(TimeDomain inDomain)
 {
     domain = inDomain;
     domainChanged.OnNext(inDomain);
 }