public void UpdateAnalysisBasedOn(IAnalysable analysable)
        {
            var simulation = analysable.DowncastTo <IndividualSimulation>();

            UpdateAnalysisBasedOn(simulation);
            UpdateTemplatesBasedOn(simulation);

            InitializeFromTemplateIfRequired();
        }
        public void UpdateAnalysisBasedOn(IAnalysable analysable)
        {
            _parameterIdentification = analysable.DowncastTo <ParameterIdentification>();

            AllRunResults             = _parameterIdentification.Results.OrderBy(x => x.TotalError).ToList();
            _view.CanSelectRunResults = AllRunResults.Count > 1;

            if (!AllRunResults.Any())
            {
                return;
            }

            SelectedRunResults = AllRunResults.First();

            _view.BindToSelectedRunResult();
        }
        public override void UpdateAnalysisBasedOn(IAnalysable analysable)
        {
            _parameterIdentification = analysable.DowncastTo <ParameterIdentification>();

            if (ChartIsBeingUpdated)
            {
                UpdateTemplateFromChart();
                ClearChartAndDataRepositories();
            }
            else
            {
                updateCacheColor();
            }

            if (_parameterIdentification.Results.Any())
            {
                _isMultipleRun = _parameterIdentification.Results.Count > 1;
                UpdateAnalysisBasedOn(_parameterIdentification.Results);
            }

            Refresh();
        }
Esempio n. 4
0
 public void UpdateAnalysisBasedOn(IAnalysable analysable)
 {
     UpdateAnalysisBasedOn(analysable.DowncastTo <IPopulationDataCollector>());
 }
 public void UpdateAnalysisBasedOn(IAnalysable analysable)
 {
     _sensitivityAnalysis = analysable.DowncastTo <SensitivityAnalysis>();
 }