swarm.grid.sgml.appendix.html
来自「set for Swarm2.1是圣菲研究院的开发人员对Swarm的特性及其使用」· HTML 代码 · 共 235 行
HTML
235 行
<HTML><HEAD><TITLE>GridTurtle Test Programs</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="Reference Guide for Swarm 2.1.1"HREF="book930.html"><LINKREL="PREVIOUS"TITLE="General"HREF="swarm.space.generic.module.html"><LINKREL="NEXT"TITLE="Summary of files"HREF="x23494.html"></HEAD><BODYCLASS="APPENDIX"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.space.generic.module.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="x23494.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="APPENDIX"><H1><ANAME="SWARM.GRID.SGML.APPENDIX">Appendix A. GridTurtle Test Programs</A></H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT>A.1. <AHREF="swarm.grid.sgml.appendix.html#AEN23487">Overview</A></DT><DT>A.2. <AHREF="x23494.html">Summary of files</A></DT><DD><DL><DT>A.2.1. <AHREF="x23494.html#AEN23496">Main programs</A></DT><DT>A.2.2. <AHREF="x23494.html#AEN23566">Support files</A></DT></DL></DD></DL></DIV><DIVCLASS="IMPORTANT"><BLOCKQUOTECLASS="IMPORTANT"><ANAME="SWARM.GRID.SGML.IMPORTANT"></A><P><B>Important: </B>To prevent the guide from getting overbulky, the actual program listings of the Grid Turtle test programs, that were formerly contained here, can now be found in a separate archive on the Swarm ftp site: <AHREF="ftp://ftp.swarm.org/pub/swarm/gridturtle-2.1.1.tar.gz"TARGET="_top">gridturtle-2.1.1.tar.gz</A></P></BLOCKQUOTE></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="AEN23487">A.1. Overview</A></H1><P>The GridTurtle test programs are a collection of programs which exercise basic capabilities of the defobj, collections, and activity libraries. These programs are always run on each new release of these libraries as a partial test. For the time being they also serve to show examples of working code that exercise basic capabilities or accomplishes particular tasks. </P><P>Note, however, that these are not good examples to learn from, or examples to emulate! The programs are not particularly well-designed as either a systematic test or a useful series of tutorial examples, but until there's anything else they help serve for both. To serve their role as test programs some of these examples deliberately make use of the more obscure and low-level features of the libraries they exercise. Mixed in are examples of many basic code fragments an application might need. So be selective in what you use, and read the comments on each program below. </P><P>Most of the programs in this directory use a simple type of object called a "GridTurtle." This type of object is an agent that move around on a two-dimensional grid, always moving in a current direction that it maintains internally. This agent is like a "turtle" of the original Logo system, except that its position is constrained to discrete integer values of its X-Y coordinates, and its direction is always one of the four orthogonal directions north, east, south, or west. The GridTurtle object type is implemented using the <AHREF="swarm.library.sgml.appendix.html">library interface conventions</A> of the <AHREF="swarm.defobj.sgml.reference.html">defobj</A> library, and is itself a defined module that must be initialized by any program. </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.space.generic.module.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="set.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="x23494.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">General</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="book930.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Summary of files</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?