📄 swarm.space.sgml.reference.html
字号:
<HTML><HEAD><TITLE>Space Library</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.analysis.generic.module.html"><LINKREL="NEXT"TITLE="Ca2d"HREF="swarm.space.ca2d.protocol.html"></HEAD><BODYCLASS="REFERENCE"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.analysis.generic.module.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.space.ca2d.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="REFERENCE"><ANAME="SWARM.SPACE.SGML.REFERENCE"></A><DIVCLASS="TITLEPAGE"><H1CLASS="TITLE">X. Space Library</H1><DIVCLASS="PARTINTRO"><ANAME="AEN22663"></A><TABLECLASS="SIDEBAR"BORDER="1"CELLPADDING="5"><TR><TD><DIVCLASS="SIDEBAR"><P><B>Overview</B></P><P>The Swarm Space library is the beginnings of a library to assist in building environments for interacting agents. In general, environments can be just as varied as the agents themselves (in one view, the environment itself is simply another agent). However, many simulations have similar types of environments that can be helpfully supported by generic code.</P><P>The current space library only addresses simple kinds of discretized 2d space. Improvement is planned in the future. Briefly, coordinates need to be elevated to the status of objects, which should hopefully allow spaces of different scales and boundary conditions to interact through a common reference system. In addition, other types of spaces are desired: continuous coordinates, other dimensions, arbitrary graphs, etc</P></DIV></TD></TR></TABLE><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SWARM.SPACE.SGML.SECT1.DEPEND">1. Dependencies</A></H1><P>Following are the other header files imported by <space.h>:<TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="PROGRAMLISTING">#import <objectbase.h>#import <gui.h></PRE></TD></TR></TABLE> </P></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SWARM.SPACE.SGML.SECT1.COMPAT">2. Compatibility</A></H1><P>No explicit compatibility issues for particular versions of Swarm</P></DIV></DIV><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><AHREF="swarm.space.ca2d.protocol.html">Ca2d</A> — Defines abstract protocol for cellular automata.</DT><DT><AHREF="swarm.space.conwaylife2d.protocol.html">ConwayLife2d</A> — Classic 2d Conway's Life CA.</DT><DT><AHREF="swarm.space.dblbuffer2d.protocol.html">DblBuffer2d</A> — A double buffered space.</DT><DT><AHREF="swarm.space.diffuse2d.protocol.html">Diffuse2d</A> — 2d difussion with evaporation.</DT><DT><AHREF="swarm.space.discrete2d.protocol.html">Discrete2d</A> — Root class of all 2d discrete spaces.</DT><DT><AHREF="swarm.space.grid2d.protocol.html">Grid2d</A> — A 2d container class for agents.</DT><DT><AHREF="swarm.space.int2dfiler.protocol.html">Int2dFiler</A> — Saves the state of a Discrete2d object [DEPRECATED].</DT><DT><AHREF="swarm.space.object2ddisplay.protocol.html">Object2dDisplay</A> — Object2dDisplay displays 2d arrays of objects.</DT><DT><AHREF="swarm.space.value2ddisplay.protocol.html">Value2dDisplay</A> — Value2dDisplay displays 2d arrays of values.</DT><DT><AHREF="swarm.space.generic.module.html">General</A> — tools for visualizing objects in various spaces</DT></DL></DIV></DIV><DIVCLASS="TITLEPAGE"><DIVCLASS="ABSTRACT"><P><B>Documentation and Implementation Status</B></P><P>Swarm is an open ended system which is meant to grow in responseto the requirements of the user base, either by inhouse development orthrough user re-contributions. We are therefore maintaining a list ofthe most popular requests (both in terms of tools and libraries) sothat groups of users can recognize common requirements, make moreinformed suggestions and so forth:</P><P>A 'Double' Space Which could deal with notions of "distance" and answer questions of the form: "which other objects are within X radius of me"? An initial implementation of such a space has been re-contributed by Ginger Booth and may serve as a good foundation for such a space.</P><P>Complete Batch-Mode SupportSwarm can now run in batch mode, which should allow the user toorganize large parameter sweeps over the models s/he isimplementing. However, we still need to provide adequate andstandardized support for file operations (it should be easy, forexample, to load the parameters of an experiment from a file). Inorder to do this we will provide File objects which will allow usersto avoid ad-hoc coding of their file-I/O. This support will be inplace well before V1.0.</P><P>More Analysis Tools The averager object can generate the Mean, Max,Min, and Count of a given input stream. We would like to add similartools to calculate entropies, mutual information and other suchmeasures.</P></DIV><AHREF="swarm.space.generic.revhistory.html">Revision History (space)</A></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.analysis.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="swarm.space.ca2d.protocol.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">Ca2d</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -