📄 swarm.objectbase.probemap.protocol.html
字号:
<HTML><HEAD><TITLE>ProbeMap</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="ProbeLibrary"HREF="swarm.objectbase.probelibrary.protocol.html"><LINKREL="NEXT"TITLE="Swarm"HREF="swarm.objectbase.swarm.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.probelibrary.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.swarm.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.OBJECTBASE.PROBEMAP.PROTOCOL">ProbeMap</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN12184"></A><H2>Name</H2>ProbeMap -- A container class for Probes used to specify the contents of a ProbeDisplay.</DIV><DIVCLASS="REFSECT1"><ANAME="AEN12187"></A><H2>Description</H2><P> A ProbeMap is a Map-type collection of Probes. They are used to gather several Probes, who usually have a common referent, into a single bundle. For example, all the instance variables of a ModelSwarm might be gathered into a single ProbeMap. Each ProbeMap is then installed into the global ProbeLibrary. </P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN12190"></A><H2>Protocols adopted by ProbeMap</H2><P> <AHREF="swarm.objectbase.swarmobject.protocol.html">SwarmObject</A> <AHREF="swarm.objectbase.probeconfig.protocol.html">ProbeConfig</A> <AHREF="swarm.defobj.creatable.protocol.html">CREATABLE</A></P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN12196"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN12198"></A><H3>Phase: Creating</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBEMAP.METHOD.PC.M832"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setProbedClass:</B> (Class)<VARCLASS="PDPARAM">class</VAR> <BR> The setProbedClass: method sets the class of the object that the set of probes that constitute the probe map points at. This message must be sent before createEnd. <P></P></DIV></LI></UL></DIV><DIVCLASS="REFSECT2"><ANAME="AEN12210"></A><H3>Phase: Using</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBEMAP.METHOD.PU.M436"></A><P></P>- (int)<BCLASS="FUNCPROTOTYPE">getNumEntries</B><BR> The getNumEntries method returns the number of probes in the ProbeMap.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBEMAP.METHOD.PU.M463"></A><P></P>- (Class)<BCLASS="FUNCPROTOTYPE">getProbedClass</B><BR> The getProbedClass method returns the class of the object that the set of probes that constitute the probe map points at.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBEMAP.METHOD.PU.M459"></A><P></P>- (id <VarProbe>)<BCLASS="FUNCPROTOTYPE">getProbeForVariable:</B> (const char *)<VARCLASS="PDPARAM">aVariable</VAR> <BR> The getProbeForVariable: method returns the Probe corresponding to the given variable name.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBEMAP.METHOD.PU.M457"></A><P></P>- (id <MessageProbe>)<BCLASS="FUNCPROTOTYPE">getProbeForMessage:</B> (const char *)<VARCLASS="PDPARAM">aMessage</VAR> <BR> The getProbeForMessage: method returns the Probe corresponding to the specified message name.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBEMAP.METHOD.PU.M100"></A><P></P>- <BCLASS="FUNCPROTOTYPE">addProbe:</B> <VARCLASS="PDPARAM">aProbe</VAR> <BR> The addProbe: method adds a probe to the contents of the ProbeMap. The ProbeMap will always make sure that the probedClass of the Probe being added corresponds to its own probedClass.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBEMAP.METHOD.PU.M102"></A><P></P>- <BCLASS="FUNCPROTOTYPE">addProbeMap:</B> <VARCLASS="PDPARAM">aProbeMap</VAR> <BR> The addProbeMap: method is used to tailor the contents of a ProbeMap by performing "set inclusion" with another ProbeMap. The typing is verified prior to inclusion.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBEMAP.METHOD.PU.M267"></A><P></P>- <BCLASS="FUNCPROTOTYPE">dropProbeForVariable:</B> (const char *)<VARCLASS="PDPARAM">aVariable</VAR> <BR> The dropProbeForVariable: method is used to drop a Probe from the ProbeMap. No class verification takes place since the probe is dropped based on its variableName, not its actual id value.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBEMAP.METHOD.PU.M266"></A><P></P>- <BCLASS="FUNCPROTOTYPE">dropProbeForMessage:</B> (const char *)<VARCLASS="PDPARAM">aMessage</VAR> <BR> The dropProbeForMessage: method is used to drop a Probe from the ProbeMap. No class verification takes place since the probe is dropped based on its messageName, not its actual id value.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBEMAP.METHOD.PU.M268"></A><P></P>- <BCLASS="FUNCPROTOTYPE">dropProbeMap:</B> <VARCLASS="PDPARAM">aProbeMap</VAR> <BR> The dropProbeMap: method is used to drop a probe from a probe map. It is equivalent to callling dropProbeForVariable for each variable name present in the ProbeMap being dropped, followed by a call to dropProbeForMessage for each message name present in the ProbeMap being dropped.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBEMAP.METHOD.PU.M147"></A><P></P>- <BCLASS="FUNCPROTOTYPE">begin:</B> (id <Zone>)<VARCLASS="PDPARAM">aZone</VAR> <BR> The begin: method returns an iterator (index) over the ProbeMap. This index is used in the exact same way any Map index is used. <P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBEMAP.METHOD.PU.M197"></A><P></P>- <BCLASS="FUNCPROTOTYPE">clone:</B> (id <Zone>)<VARCLASS="PDPARAM">aZone</VAR> <BR> The clone: method returns a clone of the probe map. If the initial probe map created by Library Generation or by the default version of Object generation, the probe map should be cloned prior to making changes to it to avoid having the changes affect the other potential users of the probe map.<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.probelibrary.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.swarm.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">ProbeLibrary</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.objectbase.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Swarm</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -