コード例 #1
0
        private void ProcessingAnalysisConfiguration()
        {
            if (this.Analysis.Configuration.Values == null)
            {
                return;
            }

            foreach (var value in this.Analysis.Configuration.Values)
            {
                var valueField = new AnalysisValueField(this.Analysis, value);

                this.valueDictionary.SetObjectForKey(valueField, valueField.Key);
                var valueResultColumn = new AnalysisValueResultColumn(valueField);

                this.resultColumns.SetObjectForKey(valueResultColumn, valueField.Key);
                if (!valueField.IsCategory && !valueField.IsDefaultCategory && !valueField.IsXCategory)
                {
                    continue;
                }

                var valueCategory = new AnalysisValueCategory(valueField);
                if (valueField.IsXCategory)
                {
                    this.SetXCategory(valueCategory);
                }
                else
                {
                    this.categoryDictionary.SetObjectForKey(valueCategory, valueCategory.Key);
                    if (valueField.IsDefaultCategory)
                    {
                        this.SetDefaultCategory(valueCategory);
                    }
                }
            }
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AnalysisValueCategory"/> class.
 /// </summary>
 /// <param name="field">Field</param>
 public AnalysisValueCategory(AnalysisValueField field)
 {
     this.AnalysisValueField = field;
     this.valueFunction      = new AnalysisValueResultColumn(field).ValueFunction;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AnalysisValueFilter"/> class.
 /// </summary>
 /// <param name="analysisValue">Analysis value</param>
 /// <param name="val">Value</param>
 public AnalysisValueFilter(AnalysisValueField analysisValue, string val)
     : base(val, val)
 {
     this.AnalysisValue = analysisValue;
 }