📄 swarmobject.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Tue Nov 30 14:11:22 MST 2004 --><TITLE>Swarm 2.2 Reference Guide: Interface SwarmObject</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../swarm/objectbase/SwarmC.html"><B>PREV CLASS</B></A> <A HREF="../../swarm/objectbase/SwarmObjectC.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="SwarmObject.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">swarm.objectbase</FONT><BR>Interface SwarmObject</H2><DL><DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../swarm/simtoolsgui/ActionCache.html">ActionCache</A>, <A HREF="../../swarm/analysis/ActiveGraph.html">ActiveGraph</A>, <A HREF="../../swarm/analysis/ActiveOutFile.html">ActiveOutFile</A>, <A HREF="../../swarm/objectbase/ActivityControl.html">ActivityControl</A>, <A HREF="../../swarm/analysis/Averager.html">Averager</A>, <A HREF="../../swarm/random/BasicRandomGenerator.html">BasicRandomGenerator</A>, <A HREF="../../swarm/random/BernoulliDist.html">BernoulliDist</A>, <A HREF="../../swarm/random/BinomialDist.html">BinomialDist</A>, <A HREF="../../swarm/random/BooleanDistribution.html">BooleanDistribution</A>, <A HREF="../../swarm/random/C2TAUS1gen.html">C2TAUS1gen</A>, <A HREF="../../swarm/random/C2TAUS2gen.html">C2TAUS2gen</A>, <A HREF="../../swarm/random/C2TAUS3gen.html">C2TAUS3gen</A>, <A HREF="../../swarm/random/C2TAUSgen.html">C2TAUSgen</A>, <A HREF="../../swarm/space/Ca2d.html">Ca2d</A>, <A HREF="../../swarm/simtoolsgui/CommonProbeDisplay.html">CommonProbeDisplay</A>, <A HREF="../../swarm/simtoolsgui/CompleteProbeDisplay.html">CompleteProbeDisplay</A>, <A HREF="../../swarm/objectbase/CompleteProbeMap.html">CompleteProbeMap</A>, <A HREF="../../swarm/objectbase/CompleteVarMap.html">CompleteVarMap</A>, <A HREF="../../swarm/simtoolsgui/ControlPanel.html">ControlPanel</A>, <A HREF="../../swarm/space/ConwayLife2d.html">ConwayLife2d</A>, <A HREF="../../swarm/objectbase/CustomProbeMap.html">CustomProbeMap</A>, <A HREF="../../swarm/space/DblBuffer2d.html">DblBuffer2d</A>, <A HREF="../../swarm/objectbase/DefaultProbeMap.html">DefaultProbeMap</A>, <A HREF="../../swarm/space/Diffuse2d.html">Diffuse2d</A>, <A HREF="../../swarm/space/Discrete2d.html">Discrete2d</A>, <A HREF="../../swarm/random/DoubleDistribution.html">DoubleDistribution</A>, <A HREF="../../swarm/objectbase/EmptyProbeMap.html">EmptyProbeMap</A>, <A HREF="../../swarm/analysis/Entropy.html">Entropy</A>, <A HREF="../../swarm/random/ExponentialDist.html">ExponentialDist</A>, <A HREF="../../swarm/analysis/EZAverageSequence.html">EZAverageSequence</A>, <A HREF="../../swarm/analysis/EZBin.html">EZBin</A>, <A HREF="../../swarm/analysis/EZDistribution.html">EZDistribution</A>, <A HREF="../../swarm/analysis/EZGraph.html">EZGraph</A>, <A HREF="../../swarm/analysis/EZSequence.html">EZSequence</A>, <A HREF="../../swarm/random/GammaDist.html">GammaDist</A>, <A HREF="../../swarm/space/Grid2d.html">Grid2d</A>, <A HREF="../../swarm/space/Int2dFiler.html">Int2dFiler</A>, <A HREF="../../swarm/random/IntegerDistribution.html">IntegerDistribution</A>, <A HREF="../../swarm/random/LogNormalDist.html">LogNormalDist</A>, <A HREF="../../swarm/objectbase/MessageProbe.html">MessageProbe</A>, <A HREF="../../swarm/random/MT19937gen.html">MT19937gen</A>, <A HREF="../../swarm/simtoolsgui/MultiVarProbeDisplay.html">MultiVarProbeDisplay</A>, <A HREF="../../swarm/random/Normal.html">Normal</A>, <A HREF="../../swarm/random/NormalDist.html">NormalDist</A>, <A HREF="../../swarm/simtools/NSelect.html">NSelect</A>, <A HREF="../../swarm/space/Object2dDisplay.html">Object2dDisplay</A>, <A HREF="../../swarm/random/PMMLCG1gen.html">PMMLCG1gen</A>, <A HREF="../../swarm/random/PMMLCGgen.html">PMMLCGgen</A>, <A HREF="../../swarm/random/PoissonDist.html">PoissonDist</A>, <A HREF="../../swarm/random/ProbabilityDistribution.html">ProbabilityDistribution</A>, <A HREF="../../swarm/objectbase/Probe.html">Probe</A>, <A HREF="../../swarm/simtoolsgui/ProbeDisplay.html">ProbeDisplay</A>, <A HREF="../../swarm/simtoolsgui/ProbeDisplayManager.html">ProbeDisplayManager</A>, <A HREF="../../swarm/objectbase/ProbeMap.html">ProbeMap</A>, <A HREF="../../swarm/random/PSWBgen.html">PSWBgen</A>, <A HREF="../../swarm/simtools/QSort.html">QSort</A>, <A HREF="../../swarm/random/RandomBitDist.html">RandomBitDist</A>, <A HREF="../../swarm/simtoolsgui/SimpleProbeDisplay.html">SimpleProbeDisplay</A>, <A HREF="../../swarm/random/SimpleRandomGenerator.html">SimpleRandomGenerator</A>, <A HREF="../../swarm/simtoolsgui/SingleProbeDisplay.html">SingleProbeDisplay</A>, <A HREF="../../swarm/random/SplitRandomGenerator.html">SplitRandomGenerator</A>, <A HREF="../../swarm/simtools/UName.html">UName</A>, <A HREF="../../swarm/random/UniformDoubleDist.html">UniformDoubleDist</A>, <A HREF="../../swarm/random/UniformIntegerDist.html">UniformIntegerDist</A>, <A HREF="../../swarm/random/UniformUnsignedDist.html">UniformUnsignedDist</A>, <A HREF="../../swarm/random/UnsignedDistribution.html">UnsignedDistribution</A>, <A HREF="../../swarm/space/Value2dDisplay.html">Value2dDisplay</A>, <A HREF="../../swarm/objectbase/VarProbe.html">VarProbe</A></DD></DL><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../swarm/objectbase/ActivityControlImpl.html">ActivityControlImpl</A>, <A HREF="../../swarm/objectbase/ProbeMapImpl.html">ProbeMapImpl</A>, <A HREF="../../swarm/objectbase/SwarmObjectImpl.html">SwarmObjectImpl</A>, <A HREF="../../swarm/simtools/QSortImpl.html">QSortImpl</A>, <A HREF="../../swarm/simtools/UNameImpl.html">UNameImpl</A>, <A HREF="../../swarm/simtools/NSelectImpl.html">NSelectImpl</A>, <A HREF="../../swarm/simtoolsgui/ProbeDisplayManagerImpl.html">ProbeDisplayManagerImpl</A>, <A HREF="../../swarm/space/Value2dDisplayImpl.html">Value2dDisplayImpl</A>, <A HREF="../../swarm/space/Int2dFilerImpl.html">Int2dFilerImpl</A>, <A HREF="../../swarm/space/Discrete2dImpl.html">Discrete2dImpl</A>, <A HREF="../../swarm/space/Object2dDisplayImpl.html">Object2dDisplayImpl</A>, <A HREF="../../swarm/analysis/EZBinImpl.html">EZBinImpl</A>, <A HREF="../../swarm/analysis/EZGraphImpl.html">EZGraphImpl</A></DD></DL><HR><DL><DT>public interface <B>SwarmObject</B><DT>extends <A HREF="../../swarm/defobj/Create.html">Create</A>, <A HREF="../../swarm/defobj/CreateS.html">CreateS</A>, <A HREF="../../swarm/defobj/Drop.html">Drop</A>, <A HREF="../../swarm/defobj/DropS.html">DropS</A></DL><P><strong> A superclass of most objects in a Swarm simulation that provides support for probing.</strong>.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. 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><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../swarm/objectbase/ProbeMap.html">ProbeMap</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/objectbase/SwarmObject.html#getCompleteProbeMap()">getCompleteProbeMap</A></B>()</CODE><BR> The getCompleteProbeMap method returns a newly created CompleteProbeMap for an object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../swarm/objectbase/MessageProbe.html">MessageProbe</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/objectbase/SwarmObject.html#getProbeForMessage(java.lang.String)">getProbeForMessage</A></B>(java.lang.String aMessage)</CODE><BR> The getProbeForMessage: method returns the MessageProbe indexed in the ProbeMap by the string aMessage.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../swarm/objectbase/VarProbe.html">VarProbe</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/objectbase/SwarmObject.html#getProbeForVariable(java.lang.String)">getProbeForVariable</A></B>(java.lang.String aVariable)</CODE><BR> The getProbeForVariable: method returns the VarProbe indexed in the ProbeMap by the string aVariable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../swarm/objectbase/ProbeMap.html">ProbeMap</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/objectbase/SwarmObject.html#getProbeMap()">getProbeMap</A></B>()</CODE><BR> The getProbeMap method returns a pointer to the ProbeMap for the object if there has been one creaded for that object's class.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_swarm.defobj.Drop"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface swarm.defobj.<A HREF="../../swarm/defobj/Drop.html">Drop</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/defobj/Drop.html#drop()">drop</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_swarm.defobj.DefinedObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -