コード例 #1
0
        private void RefreshGaleShapley(string name, int index)
        {
            AlgorithmOptionGaleShapley alg = new AlgorithmOptionGaleShapley(name, index);

            AlgorithmOptions.Add(alg);
            AlgorithmElements.Add(alg);

            UpdateGeneticSettings(alg.Index);
        }
コード例 #2
0
        private void OnNewGaleShapleyAlgorithmCommand()
        {
            _model.CreateGaleShapleyAlgorithm();
            AlgorithmOptionGaleShapley alg = new AlgorithmOptionGaleShapley(
                _context.GetAlgorithms.Last().Name,
                AlgorithmOptions.Count()
                );

            AlgorithmOptions.Add(alg);
            AlgorithmElements.Add(alg);

            //UpdateGeneticSettings(alg.Index);
            OnPropertyChanged("AlgorithmOptions");
        }
コード例 #3
0
 public void Visit(AlgorithmOptionGaleShapley element)
 {
     _galeShapleyMethod?.Invoke(element);
 }