private bool RunOperationComponentStatistic(XElement currentElement)
        {
            bool bHasStatistics = false;

            if (this.AnalyzerType
                == ARSAnalyzerHelper.ANALYZER_TYPES.statistics01)
            {
                StatisticalAnalyzer1 statsAnalyzer1
                               = new StatisticalAnalyzer1(this.GCCalculatorParams);
                bHasStatistics = statsAnalyzer1.SetStatisticalCalculation(
                    currentElement);
                statsAnalyzer1 = null;
            }
            else if (ARSAnalyzerHelper.IsEffectivenessAnalysis(
                         this.AnalyzerType))
            {
                if (this.ceAnalyzer == null)
                {
                    this.ceAnalyzer
                        = new CostEffectivenessAnalyzer1(this.GCCalculatorParams);
                }
                bHasStatistics = SetEffectivenessStatistic(currentElement);
            }
            else
            {
                this.GCCalculatorParams.ErrorMessage
                    = Errors.MakeStandardErrorMsg("ANALYSES_NOANALYZER");
            }
            return(bHasStatistics);
        }
        public bool SetEffectivenessStatistic(XElement currentElement)
        {
            bool bHasStatistics = false;

            if (currentElement.HasAttributes)
            {
                //refactor: is a new stats analyzer needed by every node?
                StatisticalAnalyzer1 statsAnalyzer2
                    = new StatisticalAnalyzer1(this.GCCalculatorParams);
                //run the regular mean and standard deviation statistics
                bHasStatistics = statsAnalyzer2.SetStatisticalCalculation(
                    currentElement);
                if (bHasStatistics)
                {
                    //run the cost effectiveness statistic
                    bHasStatistics = this.ceAnalyzer
                                     .SetCostEffectivenessCalculation(currentElement);
                }
                statsAnalyzer2 = null;
            }
            else
            {
                //grouping nodes sometimes need to manipulate children for display
                bHasStatistics = this.ceAnalyzer.SetCostEffectivenessCalculation(
                    currentElement);
            }
            return(bHasStatistics);
        }