示例#1
0
 private MetricNode(Metric name, string scheme, SchemeNode[] schemes)
 {
     Name = name;
     Scheme = scheme;
     Schemes = schemes;
     _schemesDictionary = schemes.ToDictionary(i => i.Name);
 }
示例#2
0
 private OverlayNode(bool enable, bool enableScreenMessage, Metric metric, MetricNode[] metrics)
 {
     Enable = enable;
     EnableScreenMessage = enableScreenMessage;
     Metric = metric;
     Metrics = metrics;
     _metricsDictionary = metrics.ToDictionary(i => i.Name.Name);
 }
示例#3
0
 public MetricNode GetMetric(Metric metric)
 {
     return _metricsDictionary[metric.Name];
 }
示例#4
0
 private MetricNode(Metric name, bool enable, Unit unit)
 {
     Name = name;
     Enable = enable;
     Unit = unit;
 }