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

📄 x23494.html

📁 set for Swarm2.1是圣菲研究院的开发人员对Swarm的特性及其使用描述的最为完备的指南性文档。从这里可以获得最细致的平台说明。
💻 HTML
字号:
<HTML><HEAD><TITLE>Summary of files</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="GridTurtle Test Programs"HREF="swarm.grid.sgml.appendix.html"><LINKREL="PREVIOUS"TITLE="GridTurtle Test Programs"HREF="swarm.grid.sgml.appendix.html"><LINKREL="NEXT"TITLE="Library Interface Conventions"HREF="swarm.library.sgml.appendix.html"></HEAD><BODYCLASS="SECT1"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.grid.sgml.appendix.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Appendix A. GridTurtle Test Programs</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.library.sgml.appendix.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="AEN23494">A.2. Summary of files</A></H1><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN23496">A.2.1. Main programs</A></H2><P></P><UL><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">grid0.m</A>. </B> Initialization of library package.  (Swarm              applications ordinarily just call initSwarm() which              takes care of all needed library initialization.)  Basic              messages on GridTurtle object.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">              grid1a.m,              grid1b.m,              grid1c.m            </A>. </B>Tests of Array type.  The setInitialValue:,              setDefaultMember:, and setMemberBlock: options are each              tested by variants of the same basic              program.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">              grid2.m, grid2b.m              </A>. </B>Tests of List type.  grid2 also tests inheritance              from a class that implements the List type (not yet              supported, but does work).  grid2b uses an internal              member slot (a special low-level implementation feature)              in what is called a List, but should really be an              OrderedSet.  The messages being used for this are in the              process of being changed, and should not be              used.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            grid3.m, grid3b.m            </A>. </B>Tests of Map type.  grid3b uses an alternate compare              function to handle integers rather than id values as              keys.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            grid4.m, grid4b.m            </A>. </B>Test of Set and OrderedSet types.  The OrderedSet              creation in grid4b uses message names that differ from              the currently documented              interface.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            grid5.m            </A>. </B>Tests of ActionGroup execution independent of any              schedule, both by itself and within a              swarm.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            grid6.m            </A>. </B>Test of running an entire top-level activity within              an action of an already running              activity.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            grid7.m            </A>. </B>Tests of schedule execution and schedule merging,              using various combinations of absolute, relative, and              repeating schedules.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            grid8.m            </A>. </B>Basic test of schedules running within a simulation              swarm that is nested within an observer              swarm.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            grid9.m            </A>. </B>Test of two-level nested swarms using a custom              subclass for the swarm.  (Normal user subclassing should              use the Swarm superclass provided in the <AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">objectbase</A>              library.)</P></DIV></LI></UL><P></P><UL><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            mousetraps, Mousetrap.m            </A>. </B>              Sample application (main program and supporting class)              that uses dynamic scheduling.  This application is much              the same as the mousetrap model of a nuclear chain              reaction that is also implemented as a stand-alone              application, but it runs outside any user interface              framework and links just with the core libraries defobj,              collections, and              activity.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            mousetraps2, Mousetrap2.m            </A>. </B>Variant of mousetraps that schedules actions at              subclock divisions of a coarser-grained schedule.  Used              to test this capability; intended only for specialized              use when ordinary time units can't be divided finely              enough.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            strtest.m            </A>. </B>Simple test of basic operations on the String              type.</P></DIV></LI></UL></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2"><ANAME="AEN23566">A.2.2. Support files</A></H2><P></P><UL><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            Makefile            </A>. </B>Make file for all programs in the directory.  Change              the SWARMHOME macro setting at the top to reflect              installation location of the swarm libraries relative to              the local directory.  This make file requires the GNU              make program; neither Sun nor other makes are compatible              with the GNU-specific conventions              used.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            grid.h            </A>. </B>Header file that defines the GridTurtle object type.              This file is also compiled to publish external              definitions for the grid module.  Conventions for coding              the header file of a library module are not fully              documented yet, but this is a working              sample.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">            grid.m            </A>. </B>Initialization of the grid module.  Not normally a              part of an application program, but included to test              module facilities outside of a library.  Methods of              coding this file are not currently documented, but this              is a working sample.</P></DIV></LI><LI><DIVCLASS="FORMALPARA"><P><B><AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT">              GridTurtle.m            </A>. </B>Code for the class that implements the GridTurtle              object type.  The interface for this type is specified              in the file grid.h.  Methods for coding classes that              implement a type (see <AHREF="swarm.grid.sgml.appendix.html#SWARM.GRID.SGML.IMPORTANT"> library              interface conventions</A> for a summary of the              differences between types and classes) are not currently              documented.  The important thing to know is simply that              a library implements all the messages declared as part              of a type.</P></DIV></LI></UL></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.grid.sgml.appendix.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="set.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="swarm.library.sgml.appendix.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">GridTurtle Test Programs</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.grid.sgml.appendix.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Library Interface Conventions</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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