Package jcgp.backend.resources

Examples of jcgp.backend.resources.Resources.inputs()


    content = new Pane();
    content.setId("content pane for genes");
   
    // generate the GUIGenes
    // inputs
    guiInputs = new GUIInput[resources.inputs()];
    for (int i = 0; i < guiInputs.length; i++) {
      // make the GUI elements
      guiInputs[i] = new GUIInput(this, chromosome.getInput(i));
      content.getChildren().addAll(guiInputs[i]);
    }
View Full Code Here


    table = new TableView<TestCase<Object>>();
    // get test cases from problem
    ObservableList<TestCase<Object>> testCaseList = testCaseProblem.getTestCases();
   
    // prepare input and output columns
    ArrayList<TableColumn<TestCase<Object>, String>> inputs = new ArrayList<TableColumn<TestCase<Object>, String>>(resources.inputs());
    ArrayList<TableColumn<TestCase<Object>, String>> outputs = new ArrayList<TableColumn<TestCase<Object>, String>>(resources.outputs());

    // create input columns
    TableColumn<TestCase<Object>, String> tc;
    for (int i = 0; i < resources.inputs(); i++) {
View Full Code Here

    ArrayList<TableColumn<TestCase<Object>, String>> inputs = new ArrayList<TableColumn<TestCase<Object>, String>>(resources.inputs());
    ArrayList<TableColumn<TestCase<Object>, String>> outputs = new ArrayList<TableColumn<TestCase<Object>, String>>(resources.outputs());

    // create input columns
    TableColumn<TestCase<Object>, String> tc;
    for (int i = 0; i < resources.inputs(); i++) {
      tc = new TableColumn<TestCase<Object>, String>("I: " + i);
      inputs.add(tc);
      final int index = i;
      tc.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<TestCase<Object>,String>, ObservableValue<String>>() {
        @Override
View Full Code Here

          return new SimpleStringProperty(param.getValue().getInputs()[index].toString());
        }
      });
      tc.setSortable(false);
      // set column width so all columns are distributed across the width of the stage
      tc.prefWidthProperty().bind(table.widthProperty().divide(resources.inputs() + resources.outputs()));
    }
   
    // create output columns
    for (int o = 0; o < resources.outputs(); o++) {
      tc = new TableColumn<TestCase<Object>, String>("O: " + o);
View Full Code Here

          return new SimpleStringProperty(param.getValue().getOutputs()[index].toString());
        }
      });
      tc.setSortable(false);
      // set column width so all columns are distributed across the width of the stage
      tc.prefWidthProperty().bind(table.widthProperty().divide(resources.inputs() + resources.outputs()));
    }
   
    // add created columns
    table.getColumns().addAll(inputs);
    table.getColumns().addAll(outputs);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.