📄 node350.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>28.3.1.0.2 Link../ns-2/ns-link.tcl</TITLE><META NAME="description" CONTENT="28.3.1.0.2 Link../ns-2/ns-link.tcl"><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="next" HREF="node351.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node351.html"><LINK REL="previous" HREF="node349.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node349.html"><LINK REL="up" HREF="node348.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node348.html"><LINK REL="next" HREF="node351.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node351.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html6704" HREF="node351.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node351.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html6698" HREF="node348.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node348.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html6692" HREF="node349.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node349.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html6700" 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="tex2html6702" 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="tex2html6705" HREF="node351.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node351.html">28.3.1.0.3 SimpleLink../ns-2/ns-link.tcl</A><B> Up:</B> <A NAME="tex2html6699" HREF="node348.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node348.html">28.3.1 Extensions to Other</A><B> Previous:</B> <A NAME="tex2html6693" HREF="node349.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node349.html">28.3.1.0.1 DynamicLink../ns-2/dynalink.cc.tcl</A>   <B> <A NAME="tex2html6701" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html6703" 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="SECTION05331020000000000000">28.3.1.0.2 Link../ns-2/ns-link.tcl</A></H4>This class supports the primitives:up and down, and up? to set and query <TT>status_</TT>.These primitives are instance procedures of the class.<UL><LI>The instance procedures []up../ns-2/dynamics.tclLink::up and []down../ns-2/dynamics.tclLink::down set <TT>status_</TT> to 1 and 0 respectively.<P>In addition, when the link fails, []down will reset all connectors that make up the link. Each connector, including all queues and the delay object will flush and drop any packets that it currently stores. This emulates the packet drop due to link failure.<P>Both procedures then write trace entries to each file handle in the list, <TT>dynT_</TT>.<P></LI><LI>The instance procedure []up?../ns-2/dynamics.tclLink::up? returns the current value of <TT>status_</TT>.</LI></UL>In addition, the class contains the instance procedure[]all-connectors../ns-2/dynamics.tclLink::all-connectors.This procedure takes an operation as argument, and appliesthe operation uniformly to all of the class instance variablesthat are handles for TclObjects.<P><BR><HR><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -