Package jcgp

Examples of jcgp.JCGP


  public SettingsPane(GUI gui) {
    super();
    this.gui = gui;
   
    // acquire a reference to jcgp, for convenience
    final JCGP jcgp = gui.getExperiment();
   
    // make the overarching container
    mainContainer = new VBox(8);
    mainContainer.setPadding(new Insets(5, Constants.RESIZE_MARGIN, 0, 2));
   
View Full Code Here


   * Makes a new instance of GUI. This initialises the JCGP experiment and
   * instantiates the function selector. It also creates the console flush task
   * and the service responsible for running the JCGP experiment.
   */
  public GUI() {
    jcgp = new JCGP();
    functionSelector = new FunctionSelector(jcgp.getResources().getFunctionSet());
   
    /*
     * This task flushes the console in a thread-safe way.
     * The problem is that this task is executed using Platform.runLater()
View Full Code Here

    remakeTabs();
  }
 
  public void remakeTabs() {
    getTabs().clear();
    JCGP jcgp = gui.getExperiment();
   
    Tab tab;
    ChromosomePane cp;
    for (int i = 0; i < jcgp.getResources().populationSize(); i++) {
      cp = new ChromosomePane(jcgp.getPopulation().get(i), gui, this);
      tab = new Tab("Chr " + i);
      tab.setContent(cp);
      getTabs().add(tab);
    }
  }
View Full Code Here

TOP

Related Classes of jcgp.JCGP

Copyright © 2018 www.massapicom. 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.