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

📄 swarm.simtoolsgui.guiswarm.protocol.html

📁 set for Swarm2.1是圣菲研究院的开发人员对Swarm的特性及其使用描述的最为完备的指南性文档。从这里可以获得最细致的平台说明。
💻 HTML
字号:
<HTML><HEAD><TITLE>GUISwarm</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="Simtoolsgui Library"HREF="swarm.simtoolsgui.sgml.reference.html"><LINKREL="PREVIOUS"TITLE="GUIComposite"HREF="swarm.simtoolsgui.guicomposite.protocol.html"><LINKREL="NEXT"TITLE="MessageProbeWidget"HREF="swarm.simtoolsgui.messageprobewidget.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.simtoolsgui.guicomposite.protocol.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Reference VII. Simtoolsgui Library</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.simtoolsgui.messageprobewidget.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.SIMTOOLSGUI.GUISWARM.PROTOCOL">GUISwarm</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN17205"></A><H2>Name</H2>GUISwarm&nbsp;--&nbsp; A version of the Swarm class which is graphics aware. </DIV><DIVCLASS="REFSECT1"><ANAME="AEN17208"></A><H2>Description</H2><P> GUISwarm is a subclass of Swarm that is used as a toplevel Swarm for simulations running with a graphical user interface. The GUISwarm creates a ControlPanel automatically for you and defines a -go method that interprets the state of the ControlPanel to keep things running in response to user input. Users subclass GUISwarm much like they subclass a normal Swarm, implementing the same kind of buildObjects, buildActions, and activateIn methods. When you are done building your Observer Swarm, start it as a toplevel via [myGUISwarm go].</P><P> The control panel places a few responsibilities on the GUISwarm subclass author. In particular, a message to [controlPanel doTkEvents] should be scheduled fairly frequently - only when that method is executed will the user interface update (and the stop button be checked). Also, it is often useful to use [controlPanel setStateStopped] to wait for the user to indicate they're ready for execution to proceed.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN17212"></A><H2>Protocols adopted by GUISwarm</H2><P> <AHREF="swarm.objectbase.swarm.protocol.html">Swarm</A> <AHREF="swarm.simtoolsgui.windowgeometryrecordname.protocol.html">WindowGeometryRecordName</A> <AHREF="swarm.defobj.creatable.protocol.html">CREATABLE</A></P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN17218"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN17220"></A><H3>Phase: Using</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.SIMTOOLSGUI.GUISWARM.METHOD.PU.M537"></A><P></P>- <BCLASS="FUNCPROTOTYPE">go</B><BR> Start the activity running, and also handle user requests via the control panel. Returns either Completed (the model ran until requested to terminate) or ControlStateQuit (the user pressed the quit button).<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.SIMTOOLSGUI.GUISWARM.METHOD.PU.M297"></A><P></P>- (id &lt;ActionCache&gt;)<BCLASS="FUNCPROTOTYPE">getActionCache</B><BR><P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.SIMTOOLSGUI.GUISWARM.METHOD.PU.M346"></A><P></P>- (id &lt;ControlPanel&gt;)<BCLASS="FUNCPROTOTYPE">getControlPanel</B><BR><P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.SIMTOOLSGUI.GUISWARM.METHOD.PU.M264"></A><P></P>- (void)<BCLASS="FUNCPROTOTYPE">drop</B><BR><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.simtoolsgui.guicomposite.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.simtoolsgui.messageprobewidget.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">GUIComposite</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.simtoolsgui.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">MessageProbeWidget</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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