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

📄 swarm.space.int2dfiler.protocol.html

📁 set for Swarm2.1是圣菲研究院的开发人员对Swarm的特性及其使用描述的最为完备的指南性文档。从这里可以获得最细致的平台说明。
💻 HTML
字号:
<HTML><HEAD><TITLE>Int2dFiler</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="Space Library"HREF="swarm.space.sgml.reference.html"><LINKREL="PREVIOUS"TITLE="Grid2d"HREF="swarm.space.grid2d.protocol.html"><LINKREL="NEXT"TITLE="Object2dDisplay"HREF="swarm.space.object2ddisplay.protocol.html"></HEAD><BODYCLASS="REFENTRY"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.grid2d.protocol.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Reference X. Space Library</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.space.object2ddisplay.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.SPACE.INT2DFILER.PROTOCOL">Int2dFiler</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN23238"></A><H2>Name</H2>Int2dFiler&nbsp;--&nbsp; Saves the state of a Discrete2d object [DEPRECATED].</DIV><DIVCLASS="REFSECT1"><ANAME="AEN23241"></A><H2>Description</H2><P> The Int2dFiler class is used to save the state of any Discrete2d object (or a subclass thereof) to a specified file.  </P><P> Use of this protocol is deprecated, the ability to write the state  of a Discrete2d instance to disk (serialize) is now encoded directly  to the Discrete2d class, via the lisp and HDF5  archiver features.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN23245"></A><H2>Protocols adopted by Int2dFiler</H2><P> <AHREF="swarm.objectbase.swarmobject.protocol.html">SwarmObject</A> <AHREF="swarm.defobj.creatable.protocol.html">CREATABLE</A></P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN23250"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN23252"></A><H3>Phase: Using</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.SPACE.INT2DFILER.METHOD.PU.M738"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setDiscrete2dToFile:</B> (id &lt;Discrete2d&gt;)<VARCLASS="PDPARAM">sSpace</VAR> <BR> Set the target space to be filled. This message can be used more than once, but often it is useful to keep one Int2dFiler per space (e.g. when the space is saved multiple times). <P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.SPACE.INT2DFILER.METHOD.PU.M890"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setValueMessage:</B> (SEL)<VARCLASS="PDPARAM">aSelector</VAR> <BR> This message is optional. It is used when the target Discrete2d contains objects.  By sending each object the message specified by the selector, the Int2dFiler is able to get from the object an integer representing its state, which it then writes to the file. <P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.SPACE.INT2DFILER.METHOD.PU.M679"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setBackground:</B> (int)<VARCLASS="PDPARAM">aValue</VAR> <BR> This message is optional.  It is used when the target Discrete2d contains objects.  If a particular location in the space has no resident object, the argument of this message is the value which gets writtent to the file. The default background value is 0. <P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.SPACE.INT2DFILER.METHOD.PU.M276"></A><P></P>- <BCLASS="FUNCPROTOTYPE">fileTo:</B> (const char *)<VARCLASS="PDPARAM">aFileName</VAR> <BR> When the Int2dFiler receives this message, it opens a file called fileName, stores the state of a pre-specified space into it, and then closes the file. <P></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.space.grid2d.protocol.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.object2ddisplay.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Grid2d</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.space.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Object2dDisplay</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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