📄 node437.html
字号:
<html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><!--Converted with jLaTeX2HTML 2002 (1.62) JA patch-1.4patched version by: Kenshi Muto, Debian Project.LaTeX2HTML 2002 (1.62),original version by: Nikos Drakos, CBLU, University of Leeds* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan* with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --><HTML><HEAD><TITLE>33.1.3.0.3 Miscellaneous Information</TITLE><META NAME="description" CONTENT="33.1.3.0.3 Miscellaneous Information"><META NAME="keywords" CONTENT="everything"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META NAME="Generator" CONTENT="jLaTeX2HTML v2002 JA patch-1.4"><META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"><LINK REL="STYLESHEET" HREF="everything.css" tppabs="http://www.isi.edu/nsnam/ns/doc/everything.css"><LINK REL="previous" HREF="node436.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node436.html"><LINK REL="up" HREF="node434.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node434.html"><LINK REL="next" HREF="node438.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node438.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html8118" HREF="node438.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node438.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html8112" HREF="node434.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node434.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html8108" HREF="node436.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node436.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html8114" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html8116" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html8119" HREF="node438.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node438.html">33.1.4 Tracing</A><B> Up:</B> <A NAME="tex2html8113" HREF="node434.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node434.html">33.1.3 Statistics</A><B> Previous:</B> <A NAME="tex2html8109" HREF="node436.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node436.html">33.1.3.0.2 Overall Statistics</A>   <B> <A NAME="tex2html8115" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html8117" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H4><A NAME="SECTION06413030000000000000">33.1.3.0.3 Miscellaneous Information</A></H4>Finally, the user can use the following methods to gatheradditional information about the agent:<DL COMPACT><DT><DD>[]groupSize?../ns-2/srm.tcl.htmlAgent/SRM::groupSize? returns the agent's current estimate of the multicast group size.<DT><DD>[]distances?../ns-2/srm.cc.htmlSRMAgent::command returns a list of key-value pairs of distances; the key is the address of the agent, the value is the estimate of the distance to that agent. The first element is the address of this agent, and the distance of 0.<DT><DD>[]distance?../ns-2/srm.cc.htmlSRMAgent::command returns the distance to the particular agent specified as argument.<P>The default distance at the start of any simulation is 1.</DD></DL><PRE> $srm(i) groupSize? # returns $srm(i)'s estimate of the group size; $srm(i) distances? # returns list of \tup{address, distance} tuples; $srm(i) distance? 257 # returns the distance to agent at address 257;</PRE><P><BR><HR><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -