📄 swarm.overview.mag3.chapter.html
字号:
<HTML><HEAD><TITLE>Mag 3x: Swarm Structures</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.53"><LINKREL="HOME"TITLE="Documentation Set for Swarm 2.1.1"HREF="set.html"><LINKREL="UP"TITLE="Brief Overview of Swarm"HREF="book149.html"><LINKREL="PREVIOUS"TITLE="Mag 2x: Basis of Swarm Computation"HREF="swarm.overview.mag2.chapter.html"><LINKREL="NEXT"TITLE="Observer Swarms"HREF="swarm.overview.mag3.observer-swarm.sect1.html"></HEAD><BODYCLASS="CHAPTER"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Documentation Set for Swarm 2.1.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="swarm.overview.mag2.chapter.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.overview.mag3.observer-swarm.sect1.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="CHAPTER"><H1><ANAME="SWARM.OVERVIEW.MAG3.CHAPTER">Chapter 3. Mag 3x: Swarm Structures</A></H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT>3.1. <AHREF="swarm.overview.mag3.chapter.html#SWARM.OVERVIEW.MAG3.MODEL-SWARM.SECT1">Model Swarms</A></DT><DT>3.2. <AHREF="swarm.overview.mag3.observer-swarm.sect1.html">Observer Swarms</A></DT><DT>3.3. <AHREF="swarm.overview.mag3.summary.sect1.html">Summary</A></DT></DL></DIV><P>Swarm applications are structured around the concept of the Swarm. Swarms are the basic building blocks of Swarm simulations: a Swarm is a combination of a collection of objects and a schedule of activity over those objects. The collection are like the matter of the Swarm and the schedule is like the arrow of time moving the objects forward.</P><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SWARM.OVERVIEW.MAG3.MODEL-SWARM.SECT1">3.1. Model Swarms</A></H1><P>In our current demos, Swarm applications contain two swarms. At the core is the <ICLASS="EMPHASIS">model swarm</I>, the Swarm that encapsulates the simulated model. Everything in the model swarm corresponds to objects in the world being modeled. For instance, in Heatbugs the HeatbugModelSwarm contains a collection of Heatbug agents, a HeatSpace to represent a physical property of the world, antion of Heatbug agents, a HeatSpace to represent a physical property of the world, and a Grid2d to store agent position.</P><P>In addition to the object collection, the model swarm also contains a schedule of activity on the model. The schedule defines the effect of passing time on the model. For the simple heatbugs schedule, the execution is simply to update the HeatSpace (diffusing heat across the world) and then telling each Heatbug agent to move itself. </P><P>Model swarms consist of a set of inputs and outputs. The inputs to the HeatbugModelSwarm are model parameters: things like the size of the world, the number of HeatBugs, and the diffusion rate of heat. The outputs of the HeatbugModelSwarm are the observables of the model: the individual Heatbugs, the distribution of heat across the world, etc. </P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="swarm.overview.mag2.chapter.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="set.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="swarm.overview.mag3.observer-swarm.sect1.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Mag 2x: Basis of Swarm Computation</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="book149.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Observer Swarms</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -