网站大量收购独家精品文档,联系QQ:2885784924

《SWARM for Java 教程》.pdf

  1. 1、本文档共35页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

文档评论(0)

mwap + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档