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

📄 swarm.objectbase.probelibrary.protocol.html

📁 set for Swarm2.1是圣菲研究院的开发人员对Swarm的特性及其使用描述的最为完备的指南性文档。从这里可以获得最细致的平台说明。
💻 HTML
字号:
<HTML><HEAD><TITLE>ProbeLibrary</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="ProbeConfig"HREF="swarm.objectbase.probeconfig.protocol.html"><LINKREL="NEXT"TITLE="ProbeMap"HREF="swarm.objectbase.probemap.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.probeconfig.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.probemap.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.OBJECTBASE.PROBELIBRARY.PROTOCOL">ProbeLibrary</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN12059"></A><H2>Name</H2>ProbeLibrary&nbsp;--&nbsp; A (singleton) Class, whose instance is used as a container for a global mapping between classnames and their 'default' ProbeMaps. These defaults can be changed by the user, thus allowing him/her to customize the default contents of the ProbeDisplays generated when probing objects.</DIV><DIVCLASS="REFSECT1"><ANAME="AEN12062"></A><H2>Description</H2><P> The normal Swarm simulation will probably only ever contain one instance  of this class, namely the probeLibrary object. This object is used for Library Generation of Probes and ProbeMaps: its role is to cache one  unique "official" ProbeMap for every Class ever probed during a run of Swarm. These ProbeMaps are generated as they are requested. </P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN12065"></A><H2>Protocols adopted by ProbeLibrary</H2><P> <AHREF="swarm.defobj.create.protocol.html">Create</A> <AHREF="swarm.defobj.drop.protocol.html">Drop</A> <AHREF="swarm.objectbase.probeconfig.protocol.html">ProbeConfig</A> <AHREF="swarm.defobj.creatable.protocol.html">CREATABLE</A></P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN12072"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN12074"></A><H3>Phase: Using</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBELIBRARY.METHOD.PU.M742"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setDisplayPrecision:</B> (int)<VARCLASS="PDPARAM">nSigDisplay</VAR> <BR> The setDisplayPrecision: method sets the number of significant digits for  floating point and double floating point numbers displayed on GUI widgets. This method is currently only implemented for VarProbes. It has not been  implemented for MessageProbes yet.  The setDisplayPrecision method allows all probes checked out from the  global ProbeLibrary instance to access this displayed precision. However,  individual probes can vary from this global default, by using the  setFloatFormat method on a exisiting probe. <P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBELIBRARY.METHOD.PU.M366"></A><P></P>- (int)<BCLASS="FUNCPROTOTYPE">getDisplayPrecision</B><BR> The getDisplayPrecision method gets the current display precision set in  the ProbeLibrary instance.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBELIBRARY.METHOD.PU.M850"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setSavedPrecision:</B> (int)<VARCLASS="PDPARAM">nSigSaved</VAR> <BR> The setSavedPrecision: method sets the number of significant digits saved  for floating-point and double floating-point numbers through ObjectSaver.  This function sets the global default precision for all floating point  numbers, including double floating point numbers. This floating point  precision affects all numbers saved via the ObjectSaver class. There is  currently no way to override this global default for an individual probe. <P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBELIBRARY.METHOD.PU.M482"></A><P></P>- (int)<BCLASS="FUNCPROTOTYPE">getSavedPrecision</B><BR> The getSavedPrecision method gets the current saved precision set in the  ProbeLibrary instance.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBELIBRARY.METHOD.PU.M553"></A><P></P>- (BOOL)<BCLASS="FUNCPROTOTYPE">isProbeMapDefinedFor:</B> (Class)<VARCLASS="PDPARAM">aClass</VAR> <BR> The isProbeMapDefinedFor: method returns True if there is a non-nil value  in the ProbeLibrary for that class and False otherwise.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBELIBRARY.METHOD.PU.M462"></A><P></P>- (id &lt;ProbeMap&gt;)<BCLASS="FUNCPROTOTYPE">getProbeMapFor:</B> (Class)<VARCLASS="PDPARAM">aClass</VAR> <BR> The getProbeMapFor: method returns a ProbeMap for the aClass class. If a  specific ProbeMap has been designed and installed in the ProbeLibrary for  that class, then that specific ProbeMap is returned. If a custom ProbeMap  was not designed and installed, then a CompleteProbeMap is created and  returned.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBELIBRARY.METHOD.PU.M339"></A><P></P>- (id &lt;ProbeMap&gt;)<BCLASS="FUNCPROTOTYPE">getCompleteProbeMapFor:</B> (Class)<VARCLASS="PDPARAM">aClass</VAR> <BR> The getCompleteProbeMapFor: method returns a ProbeMap containing Probes  for all the instance variables and messages of the given Class (including  inherited variables and messages). The current implementation of  ProbeLibrary does not cache CompleteProbeMaps. <P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBELIBRARY.METHOD.PU.M340"></A><P></P>- (id &lt;ProbeMap&gt;)<BCLASS="FUNCPROTOTYPE">getCompleteVarMapFor:</B> (Class)<VARCLASS="PDPARAM">aClass</VAR> <BR> The getCompleteVarMapFor: method returns a ProbeMap containing Probes for  all the instance variables of the given Class (including inherited  variables) but does not include any MessageProbes. <P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBELIBRARY.METHOD.PU.M460"></A><P></P>- (id &lt;VarProbe&gt;)<BCLASS="FUNCPROTOTYPE">getProbeForVariable:</B> (const char *)<VARCLASS="PDPARAM">aVar</VAR> <BCLASS="FUNCPROTOTYPE">inClass:</B> (Class)<VARCLASS="PDPARAM">aClass</VAR> <BR> The getProbeForVariable:inClass: method returns a probe that has been  "checked out" from the appropriate Probes in the probe library.  Note: The returned probe will be cached so to avoid affecting the results        of future requests for the same probes, clone the probe prior to        making modifications to the probe.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBELIBRARY.METHOD.PU.M458"></A><P></P>- (id &lt;MessageProbe&gt;)<BCLASS="FUNCPROTOTYPE">getProbeForMessage:</B> (const char *)<VARCLASS="PDPARAM">aMessage</VAR> <BCLASS="FUNCPROTOTYPE">inClass:</B> (Class)<VARCLASS="PDPARAM">aClass</VAR> <BR> The getProbeForMessage:inClass: method returns a probe that has been  "checked out" from the appropriate Probes in the probe library.  Note: The returned probe will be cached so to avoid affecting the results        of future requests for the same probes, clone the probe prior to        making modifications to the probe.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.OBJECTBASE.PROBELIBRARY.METHOD.PU.M831"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setProbeMap:</B> <VARCLASS="PDPARAM">aMap</VAR> <BCLASS="FUNCPROTOTYPE">For:</B> (Class)<VARCLASS="PDPARAM">aClass</VAR> <BR> The setProbeMap:For: method sets the standard probe map as the probe map. The returned Probe will be cached as though it was produced by the library itself.<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.probeconfig.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.probemap.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">ProbeConfig</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.objectbase.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">ProbeMap</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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