public override void FillAlgorithmFields()
        {
            numberTB    = new TextBox();
            maxNumberTB = new TextBox();
            window.algorithmAtributesPanel.Children.Clear();
            AlgorithmsAttributes algorithmAttributes = new AlgorithmsAttributes(window);

            algorithmAttributes.GenerateNewField(this.GetTextBlockText("Number of states"), numberTB);
            algorithmAttributes.GenerateNewField(this.GetTextBlockText("Maximum number of steps"), maxNumberTB);
        }
Ejemplo n.º 2
0
        public override void FillAlgorithmFields()
        {
            startingTB = new TextBox();
            coolingTB  = new TextBox();
            window.algorithmAtributesPanel.Children.Clear();
            AlgorithmsAttributes algorithmAttributes = new AlgorithmsAttributes(window);

            algorithmAttributes.GenerateNewField(this.GetTextBlockText("Starting temperature"), startingTB);
            algorithmAttributes.GenerateNewField(this.GetTextBlockText("Cooling factor"), coolingTB);
        }
Ejemplo n.º 3
0
        public override void FillAlgorithmFields()
        {
            sizeTB      = new TextBox();
            elitismTB   = new TextBox();
            crossoverTB = new TextBox();
            mutationTB  = new TextBox();
            numberTB    = new TextBox();
            window.algorithmAtributesPanel.Children.Clear();
            AlgorithmsAttributes algorithmAttributes = new AlgorithmsAttributes(window);

            algorithmAttributes.GenerateNewField(this.GetTextBlockText("Size of single generation"), sizeTB);
            algorithmAttributes.GenerateNewField(this.GetTextBlockText("Percentage of elitism (0-100)"), elitismTB);
            algorithmAttributes.GenerateNewField(this.GetTextBlockText("Crossover probability (0-100)"), crossoverTB);
            algorithmAttributes.GenerateNewField(this.GetTextBlockText("Mutation probability (0-100)"), mutationTB);
            algorithmAttributes.GenerateNewField(this.GetTextBlockText("Number of generations"), numberTB);
        }