Package jcgp.backend.resources

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


        guiNodes[r][c] = new GUINode(this, chromosome.getNode(r, c), lines, gui);
      }
      content.getChildren().addAll(guiNodes[r]);
    }
    // outputs
    guiOutputs = new GUIOutput[resources.outputs()];
    for (int i = 0; i < guiOutputs.length; i++) {
      xPos = ((resources.columns() + 1) * (2 * Constants.NODE_RADIUS + Constants.SPACING));
      yPos = (chromosome.getOutput(i).getIndex() * (2 * Constants.NODE_RADIUS + Constants.SPACING)) + Constants.NODE_RADIUS;
      // make the line
      Line line = new Line(xPos, yPos, xPos, yPos);
View Full Code Here


    // 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++) {
      tc = new TableColumn<TestCase<Object>, String>("I: " + i);
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

      // 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);
      outputs.add(tc);
      final int index = o;
      tc.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<TestCase<Object>,String>, ObservableValue<String>>() {
        @Override
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.