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

📄 creationthread.java

📁 利用JAVA实现的利用进化算法对人口增长进行仿真的源码
💻 JAVA
字号:
/*
 * CreationThread.java
 *
 * Created on 13 October 2006, 17:45
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package wpc.threads;
import javax.swing.JTextArea;
/**
 *
 * @author craig
 */
public class CreationThread extends Thread{
    wpc.MainFrame mainFrame;
    wpc.data.World world;
    /** Creates a new instance of CreationThread */
    public CreationThread(wpc.MainFrame mainFrame) {
        this.mainFrame = mainFrame;
        world = mainFrame.getWorld();
    }
    
    public void run() {
       mainFrame.debugAdd("Creating Initial world\n");
       mainFrame.setLabel("Creating");       
       world.createInitialWorld(2);//Temp number
       mainFrame.debugAdd("Initial world created\n");
       mainFrame.setCreated(true);
       mainFrame.setLabel("Created");
    }
    
}

⌨️ 快捷键说明

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