Example #1
0
        /// <summary>
        /// Classifies each way into its proper level and marks the nodes for that level.
        /// </summary>
        public void AnalyzeStressModel()
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();
            _stressModel.Initialize(_ways, _nodes);
            if (_options.Verbose)
            {
                Console.WriteLine("Running stress analysis...");
            }
            _stressModel.RunAnalysis();
            if (_options.Timers)
            {
                Console.WriteLine("Stress  - Elapsed time: " + sw.Elapsed);
            }
        }