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

📄 swarm.objectbase.swarmobject.protocol.html

📁 set for Swarm2.1是圣菲研究院的开发人员对Swarm的特性及其使用描述的最为完备的指南性文档。从这里可以获得最细致的平台说明。
💻 HTML
字号:
<HTML><HEAD><TITLE>SwarmObject</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="Objectbase Library"HREF="swarm.objectbase.sgml.reference.html"><LINKREL="PREVIOUS"TITLE="Swarm"HREF="swarm.objectbase.swarm.protocol.html"><LINKREL="NEXT"TITLE="VarProbe"HREF="swarm.objectbase.varprobe.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.objectbase.swarm.protocol.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Reference IV. Objectbase Library</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.objectbase.varprobe.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.OBJECTBASE.SWARMOBJECT.PROTOCOL">SwarmObject</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN12387"></A><H2>Name</H2>SwarmObject&nbsp;--&nbsp; A superclass of most objects in a Swarm simulation that provides support for probing.</DIV><DIVCLASS="REFSECT1"><ANAME="AEN12390"></A><H2>Description</H2><P> A SwarmObject is an object that is intended to be a member of a Swarm.  It's behavior will be perpetuated by messages sent from the schedule  of events defined in the context of  Swarm object. </P><P> The SwarmObject is where the models of all the agents of a simulation will reside. Hence, most of the burden on defining the messages that can be sent to any agent lies with the user. SwarmObject inherits its basic functionality from the Create and Drop object types defined in the defobj library. </P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN12394"></A><H2>Protocols adopted by SwarmObject</H2><P> <AHREF="swarm.defobj.create.protocol.html">Create</A> <AHREF="swarm.defobj.drop.protocol.html">Drop</A> <AHREF="swarm.defobj.creatable.protocol.html">CREATABLE</A></P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN12400"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN12402"></A><H3>Phase: Using</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.SWARMOBJECT.METHOD.PU.M461"></A><P></P>- (id &lt;ProbeMap&gt;)<BCLASS="FUNCPROTOTYPE">getProbeMap</B><BR> The getProbeMap method returns a pointer to the ProbeMap for the object if there has been one creaded for that object's class. If it hasn't been created, then it creates a default ProbeMap.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.SWARMOBJECT.METHOD.PU.M338"></A><P></P>- (id &lt;ProbeMap&gt;)<BCLASS="FUNCPROTOTYPE">getCompleteProbeMap</B><BR> The getCompleteProbeMap method returns a newly created CompleteProbeMap for an object. <P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.SWARMOBJECT.METHOD.PU.M459"></A><P></P>- (id &lt;VarProbe&gt;)<BCLASS="FUNCPROTOTYPE">getProbeForVariable:</B> (const char *)<VARCLASS="PDPARAM">aVariable</VAR> <BR> The getProbeForVariable: method returns the VarProbe indexed in the ProbeMap by the string aVariable.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.SWARMOBJECT.METHOD.PU.M457"></A><P></P>- (id &lt;MessageProbe&gt;)<BCLASS="FUNCPROTOTYPE">getProbeForMessage:</B> (const char *)<VARCLASS="PDPARAM">aMessage</VAR> <BR> The getProbeForMessage: method returns the MessageProbe indexed in the ProbeMap by the string aMessage.<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.objectbase.swarm.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.objectbase.varprobe.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Swarm</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.objectbase.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">VarProbe</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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