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

📄 startsimplebug.java

📁 swarm 平台学习程序
💻 JAVA
字号:
// StartSimpleBug.java
// Java SimpleBug application. 

import swarm.Globals;
import swarm.defobj.Zone;

public class StartSimpleBug
{
    public static void main (String[] args)
    {
	ModelSwarm modelSwarm;

        // Swarm initialization: all Swarm apps must call this first.
        Globals.env.initSwarm ("SimpleBug", "2.1", 
			       "bug-swarm@santafe.edu", args);

	// Create a top-level Swarm object and build its internal
	// objects and activities.
	//modelSwarm = new ModelSwarm(Globals.env.globalZone);
modelSwarm = 
           (ModelSwarm)Globals.env.lispAppArchiver.getWithZone$key( 
                         Globals.env.globalZone, "modelSwarm"); 
	modelSwarm.buildObjects();
	modelSwarm.buildActions();
	modelSwarm.activateIn(null);

	// Now activate the swarm.
	(modelSwarm.getActivity()).run();
    }
}


⌨️ 快捷键说明

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