freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

ns的網(wǎng)絡(luò)功能實(shí)體結(jié)構(gòu)及類結(jié)構(gòu)(完整版)

2024-11-29 15:19上一頁面

下一頁面
  

【正文】 nform nodes of neighbors $n1 setneighbor [$n2 id] $n2 setneighbor [$n1 id] } } $ns duplexlink $n1 $n2 1Mb 10ms DropTail _o17 info class Queue/DropTail _o18 info class SimpleLink _o19 info class Connector _o20 info class Connector _o21 info class DelayLink _o22 info class TTLChecker _o23 info class Queue/DropTail _o24 info class SimpleLink _o25 info class Connector _o26 info class Connector _o27 info class DelayLink _o27 info class DelayLink _o28 info class TTLChecker _o29 info class invalid mand name _o29 while executing _o29 info class 啟動(dòng)過程 4 ? set tcp [new Agent/TCP] ? set snk [new Agent/TCPSink] ? 在 tcl/lib/ Agent/TCP instproc init {} { eval $self next set ns [Simulator instance] $ns createeventtrace Event $self } Class Agent/Null superclass Agent Agent/Null instproc init args { eval $self next $args } set tcp [new Agent/TCP] _o29 _o29 info class Agent/TCP _o30 info class invalid mand name _o30 while executing _o30 info class set nul [new Agent/TCPSink] _o30 _o30 info class Agent/TCPSink _o31 info class invalid mand name _o31 while executing _o31 info class 啟動(dòng)過程 5 ? set ftp [new Application/FTP] ? 沒有相關(guān)代碼,說明都使用默認(rèn)情況:簡(jiǎn)單 new一個(gè)對(duì)象而已 set ftp [new Application/FTP] _o31 _o31 info class Application/FTP _o32 info class invalid mand name _o32 while executing _o32 info class 啟動(dòng)過程 6 ☆ ? $ns attachagent $n0 $tcp ? $ns attachagent $n1 $snk ? 這一步非常重要,也非常復(fù)雜。 ——BBS A poor framework is much better than nothing. ——kkzhou outline ? 1預(yù)修知識(shí) ? 2一個(gè)最簡(jiǎn)單的 ns仿真的啟動(dòng)過程 ? 3Ns的網(wǎng)絡(luò)實(shí)體結(jié)構(gòu)和類結(jié)構(gòu) 1預(yù)修知識(shí) ? C++、 Tcl、 OTcl的語法 – – – 《 ns與網(wǎng)絡(luò)模擬 》 ? 面向?qū)ο蟮乃枷耄禾摂M函數(shù),動(dòng)態(tài)創(chuàng)建機(jī)制 ? Ns的安裝和簡(jiǎn)單仿真操作 (論壇上有 ) ? Ns的開發(fā)工具: gdb和 tcldebug(非常簡(jiǎn)單 ) ? Ns的分裂對(duì)象模型和 tclcl(非常重要而且很難,主要原理是動(dòng)態(tài)創(chuàng)建機(jī)制 ) 要學(xué)透, 注意區(qū)分類和對(duì)象 ,發(fā)現(xiàn)好多問題都是因?yàn)?OTcl理解不透造成的。 這一步的所有對(duì)象都由這個(gè)命令創(chuàng)建 (找到了,其實(shí)就是 new Node) 在 c++的Simulator對(duì)象中加入該 node對(duì)象 new Node之后,會(huì)調(diào)用 Node類的 init函數(shù) tcl/lib/ if {[llength $args] != 0} { set address_ [lindex $args 0] } else { set address_ $id_ } $self cmd addr $address_。 (%u,sl t)。 TclClass 虛函數(shù) TclClass::create 對(duì)應(yīng) c++對(duì)象自己的 create函數(shù) TcpAgent的實(shí)例 TclObject NsObject Agent RoutLogic ParentNode Node Connector TcpAgent LinkDelay Classifier Queue DestHashClassifier AddressClassifier PortClassifier HashClassifier RED DropTail Process Application Application/FTP 每個(gè) c++類都對(duì)應(yīng)一個(gè) OTcl類。 } 就像維護(hù)序列號(hào)一樣,分配的 port都是在它的 port的基礎(chǔ)上加 1 不清楚具體操作 Node instproc addtarget { agent port } { $self instvar ptnotif_ foreach m [$self set ptnotif_] { $m attach $agent $port } } Ptnodif_是路由模塊組成的數(shù)組。介紹一下 mand函數(shù) Node instproc mkdefaultclassifier {} { Node instvar module_list_ At minimum we should enable base module foreach modname [Node set module_list_] { $
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1