Exemple #1
0
 public RunMutateSortersVm(ISorterMutateParams sorterMutateParams, IEnumerable <ISorterGenomeEvalVm> sorterGenomeEvalVms)
 {
     MutateSortersRunnerVm = new MutateSortersRunnerVm(sorterMutateParams, sorterGenomeEvalVms);
     MutateSortersRunnerVm.OnIterationResult.Subscribe(ReportBestResult);
     _sorterGenomeEvalGridVm = new SorterGenomeEvalGridVm("Selected mutants");
     ReportFrequency         = 10;
     _stopwatch = new Stopwatch();
 }
Exemple #2
0
        async Task OnRunCommand()
        {
            Busy = true;
            _stopwatch.Reset();
            _stopwatch.Start();
            _cancellationTokenSource = new CancellationTokenSource();

            await MutateSortersRunnerVm.OnRunAsync(_cancellationTokenSource);

            _stopwatch.Stop();
            Busy = false;
        }