⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 geneticdrawingapp.java

📁 JGAP是一种遗传算法和遗传规划的组成部分提供了一个Java框架。它提供了基本的遗传机制
💻 JAVA
字号:
/*
 * This file is part of JGAP.
 *
 * JGAP offers a dual license model containing the LGPL as well as the MPL.
 *
 * For licensing information please see the file license.txt included with JGAP
 * or have a look at the top of class org.jgap.Chromosome which representatively
 * includes the JGAP license policy applicable for any file delivered with JGAP.
 */
package examples.monalisa.gui;

import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;

/**
 * This is the main class of the Mona Lisa Painting Problem. It starts the
 * application. Please notice that this is the Genetic Algorithms version.
 * Another implementation of the problem is done with Genetic Programming.
 * Please see package examples.gp.monalisa.
 *
 * The Mona Lisa Painting Problem is to find a number of polygons that form
 * a picture which corresponds as good as possible to a given input picture.
 * Originally, the Mona Lisa from Leonardo da Vinci was chosen as input.<p>
 * See http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/
 * for the initiator's blog of the problem, Roger Alsing.
 *
 * @author Yann N. Dauphin
 * @since 3.4
 */
public class GeneticDrawingApp
    extends SingleFrameApplication {
  /** String containing the CVS revision. Read out via reflection!*/
  private final static String CVS_REVISION = "$Revision: 1.4 $";

  /**
   * At startup create and show the main frame of the application.
   */
  @Override
  protected void startup() {
    show(new GeneticDrawingView(this));
  }

  /**
   * This method is to initialize the specified window by injecting resources.
   * Windows shown in our application come fully initialized from the GUI
   * builder, so this additional configuration is not needed.
   *
   * @param a_root not needed here
   */
  @Override
  protected void configureWindow(java.awt.Window a_root) {
  }

  /**
   * A convenient static getter for the application instance.
   * @return the instance of GeneticDrawingApp
   */
  public static GeneticDrawingApp getApplication() {
    return Application.getInstance(GeneticDrawingApp.class);
  }

  /**
   * Main method launching the application.
   *
   * @param a_args command-line options
   */
  public static void main(String[] a_args) {
    launch(GeneticDrawingApp.class, a_args);
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -