The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ... The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

nmlab.korea.ac.kr
from nmlab.korea.ac.kr More from this publisher
12.07.2015 Views

$ns_ cancel Cancels the event. In effect, event is removed from scheduler’s list ofready to run events.$ns_ create-trace This creates a trace-object of type between and objectsand attaches trace-object to for writing trace-outputs. If op is definedas "nam", this creates nam tracefiles; otherwise if op is not defined, nstracefiles are created on default.$ns_flush-traceFlushes all trace object write buffers.$ns_ gen-mapThis dumps information like nodes, node components, links etc created for agiven simulation. This may be broken for some scenarios (like wireless).$ns_ at-now This is in effect like command "$ns_ at $now $args". Note that this functionmay not work because of tcl’s string number resolution.These are additional simulator (internal) helper functions (normally usedfor developing/changing the ns core code) :$ns_ use-scheduler Used to specify the type of scheduler to be used for simulation. The differenttypes of scheduler available are List, Calendar, Heap and RealTime. CurrentlyCalendar is used as default.$ns_ after Scheduling an to be executed after the lapse of time .$ns_ clearMemTraceUsed for memory debugging purposes.$ns_ is-startedThis returns true if simulator has started to run and false if not.43

$ns_ dumpqCommand for dumping events queued in scheduler while scheduler is halted.$ns_ create_packetformatThis sets up simulator’s packet format.44

$<strong>ns</strong>_ cancel Cancels the event. In effect, event is removed from scheduler’s list ofready to run events.$<strong>ns</strong>_ cre<strong>at</strong>e-trace This cre<strong>at</strong>es a trace-object of type between <strong>and</strong> objects<strong>and</strong> <strong>at</strong>taches trace-object to for writing trace-outputs. If op is definedas "nam", this cre<strong>at</strong>es nam tracefiles; otherwise if op is not defined, <strong>ns</strong>tracefiles are cre<strong>at</strong>ed on default.$<strong>ns</strong>_flush-traceFlushes all trace object write buffers.$<strong>ns</strong>_ gen-mapThis dumps inform<strong>at</strong>ion like nodes, node components, links etc cre<strong>at</strong>ed for agiven simul<strong>at</strong>ion. This may be broken for some scenarios (like wireless).$<strong>ns</strong>_ <strong>at</strong>-now This is in effect like comm<strong>and</strong> "$<strong>ns</strong>_ <strong>at</strong> $now $args". Note th<strong>at</strong> this functionmay not work because of tcl’s string number resolution.<strong>The</strong>se are additional simul<strong>at</strong>or (internal) helper functio<strong>ns</strong> (normally usedfor developing/changing the <strong>ns</strong> core code) :$<strong>ns</strong>_ use-scheduler Used to specify the type of scheduler to be used for simul<strong>at</strong>ion. <strong>The</strong> differenttypes of scheduler available are List, Calendar, Heap <strong>and</strong> RealTime. CurrentlyCalendar is used as default.$<strong>ns</strong>_ after Scheduling an to be executed after the lapse of time .$<strong>ns</strong>_ clearMemTraceUsed for memory debugging purposes.$<strong>ns</strong>_ is-startedThis retur<strong>ns</strong> true if simul<strong>at</strong>or has started to run <strong>and</strong> false if not.43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!