- 1、本文档共35页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
《SWARM for Java 教程》.pdf
DRAFT
jSIMPLEBUG:
a Swarm tutorial for Java
Charles P. Staelin
Smith College
Northampton, MA
April 2000
based on OjbectiveC code and original text by
Chris Lanton Swarm development team
Santa Fe Institute, NM
DRAFT
8:00 AM 04/14/00
jSimpleBug: a Swarm tutorial for Java
Introduction
This tutorial takes the user through the development of a Swarm model using the Java
programming language. The model itself is a very simple one, but the application we
build step by step around it makes use of a lot of the functionality of Swarm and
demonstrates many of Swarms features. This Java-based tutorial borrows heavily from
an earlier Objective-C-based tutorial by Chris Lanton and the Swarm development
team. Indeed, the Java code is pretty much a loose translation of their Objective-C code
and portions of the text are theirs as well. There are a number of changes, however, to
reflect this tutorials focus on using Swarm with Java rather than Objective-C.
We start out with a very simple Swarm simulation, one agent, a SimpleBug, taking a
random walk on the X,Y plane. Through a progression of models we increase the
number of agents and introduce basic object-oriented and Swarm-style programming in
Java. The final version implements an experiment in which multiple invocations of the
SimpleBug model are created, run, analyzed, reported on, and dropped. Along the way,
we introduce many of the functions that Swarm provides for creating and interacting
with multi-agent, artificial worlds. Although this is a relatively simple exercise,
hopefully it will show how easy it can be to build fairly complex models from the
simple building blocks provided by Swarm.
There are
您可能关注的文档
- 《QSI-018_LAMP成品入库、出货检验工作指引》.pdf
- 《Quality analysis on 3D building models reconstructed from airborne laser 》.pdf
- 《Quantum Dot Solar CellsSemiconductor Nanocrystals As Light Harvesters》.pdf
- 《QUANTUM Fluctuation in small laser USC》.pdf
- 《Quicksheet-Level2watermark》.pdf
- 《QX5241高端电流检测2MHz高亮度LED驱动器》.pdf
- 《QX5305升压型大功率LED恒流驱动器》.pdf
- 《QX6101自供电降压型LED恒流驱动器》.pdf
- 《QX6102内置NPN降压型LED恒流驱动器》.pdf
- 《raising_the_linguistic_accuracy_level_of_advanced_L2_writers》.pdf
- 高铁通车2025年对区域物流产业升级的推动作用研究.docx
- 医药行业原材料采购管理措施.docx
- 传媒与内容产业新媒体内容创新与传播效果评价体系[001].docx
- 2025年智能仓储分拣技术智能化升级对仓储行业的影响评估报告.docx
- 全球创新药研发产业链协同效应与竞争格局研究报告.docx
- 海上光伏电站建设用海上风电与光伏一体化系统技术研究报告.docx
- 传媒与云计算2025年跨界融合智慧农业研究报告[001].docx
- 传媒与内容产业短视频平台内容生态优化策略研究.docx
- 2025年潮玩市场研究报告:消费现状、趋势与市场细分领域增长动力分析.docx
- 2025年建筑垃圾资源化利用商业模式创新与市场前景分析报告.docx
文档评论(0)