Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/14/08 01:05:05 (16 years ago)
Author:
swagner
Message:

Fixed ticket #52

  • adapted plugin HeuristicLab.SGA according to changes in CombinedOperator, OperatorExtractor and ItemList
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.SGA/SGAEditor.cs

    r2 r65  
    6767      } else {
    6868        tabControl.Enabled = true;
    69         problemInitializationTextBox.Text = SGA.ProblemInitializer.Name;
    70         solutionGenerationTextBox.Text = SGA.SolutionGenerator.Name;
    71         selectionTextBox.Text = SGA.Selector.Name;
    72         crossoverTextBox.Text = SGA.Crossover.Name;
    73         mutationTextBox.Text = SGA.Mutator.Name;
    74         evaluationTextBox.Text = SGA.Evaluator.Name;
     69        problemInitializationTextBox.Text = SGA.ProblemInjector.GetType().Name;
     70        solutionGenerationTextBox.Text = SGA.SolutionGenerator.GetType().Name;
     71        selectionTextBox.Text = SGA.Selector.GetType().Name;
     72        crossoverTextBox.Text = SGA.Crossover.GetType().Name;
     73        mutationTextBox.Text = SGA.Mutator.GetType().Name;
     74        evaluationTextBox.Text = SGA.Evaluator.GetType().Name;
    7575      }
    7676    }
     
    8787    #region Button Events
    8888    private void viewProblemInitializationButton_Click(object sender, EventArgs e) {
    89       IView view = SGA.ProblemInitializer.CreateView();
     89      IView view = SGA.ProblemInjector.CreateView();
    9090      if (view != null)
    9191        PluginManager.ControlManager.ShowControl(view);
     
    119119      if (chooseOperatorDialog == null) chooseOperatorDialog = new ChooseOperatorDialog();
    120120      if (chooseOperatorDialog.ShowDialog(this) == DialogResult.OK) {
    121         SGA.ProblemInitializer = chooseOperatorDialog.Operator;
    122         problemInitializationTextBox.Text = SGA.ProblemInitializer.Name;
     121        SGA.ProblemInjector = chooseOperatorDialog.Operator;
     122        problemInitializationTextBox.Text = SGA.ProblemInjector.GetType().Name;
    123123      }
    124124    }
     
    127127      if (chooseOperatorDialog.ShowDialog(this) == DialogResult.OK) {
    128128        SGA.SolutionGenerator= chooseOperatorDialog.Operator;
    129         solutionGenerationTextBox.Text = SGA.SolutionGenerator.Name;
     129        solutionGenerationTextBox.Text = SGA.SolutionGenerator.GetType().Name;
    130130      }
    131131    }
     
    134134      if (chooseOperatorDialog.ShowDialog(this) == DialogResult.OK) {
    135135        SGA.Selector = chooseOperatorDialog.Operator;
    136         selectionTextBox.Text = SGA.Selector.Name;
     136        selectionTextBox.Text = SGA.Selector.GetType().Name;
    137137      }
    138138    }
     
    141141      if (chooseOperatorDialog.ShowDialog(this) == DialogResult.OK) {
    142142        SGA.Crossover = chooseOperatorDialog.Operator;
    143         crossoverTextBox.Text = SGA.Crossover.Name;
     143        crossoverTextBox.Text = SGA.Crossover.GetType().Name;
    144144      }
    145145    }
     
    148148      if (chooseOperatorDialog.ShowDialog(this) == DialogResult.OK) {
    149149        SGA.Mutator = chooseOperatorDialog.Operator;
    150         mutationTextBox.Text = SGA.Mutator.Name;
     150        mutationTextBox.Text = SGA.Mutator.GetType().Name;
    151151      }
    152152    }
     
    155155      if (chooseOperatorDialog.ShowDialog(this) == DialogResult.OK) {
    156156        SGA.Evaluator = chooseOperatorDialog.Operator;
    157         evaluationTextBox.Text = SGA.Evaluator.Name;
     157        evaluationTextBox.Text = SGA.Evaluator.GetType().Name;
    158158      }
    159159    }
Note: See TracChangeset for help on using the changeset viewer.