------=_Part_9264_2857892.1165332047369
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

things dont work as simply as that.

befeore the simualtion starts, you schedule a packet generation to occur at
0.01
then, still before the simulation starts, you schedule a link failure at
0.02
then you start the simulation, where control is given to the scheduler.

the scheduler only processes messages that are exanged between the NS2
components (agents / links / queues / packets).
After some hundreds of events, teh scheduler will eventually call your code
at time 0.01
then it calls some more hundreds of events, before it call your second piece
o code at time 0.02

what exactly are you trying to do?
Pedro Vale Estrela

PS: this is a fine material for the NS2 wiki  - please contribute !!!





On 12/5/06, G.Chandramowli <[EMAIL PROTECTED]> wrote:
>
>
> Hi everybody ...
>
> Can anyone tell me when the control from C++ comes back to OTcl ?
>
>   To be more specific , let me explain a specific example here .
>
>    Assume that I have written a script line to generate packets at
0.01second.
>    Second script line to make the link failure at 0.02 second .
>
>   Please tell me when the control , that goes to c++ from the script line
> 1, comes back to execute the script line 2 ?
>
> I am ready to explain further if my above example is difficult to
> understand .
>
>   Thanks in advance .
>   G.Chandramowli.
>
>

------=_Part_9264_2857892.1165332047369
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>things dont work as simply as that.</div>
<div>&nbsp;</div>
<div>befeore the simualtion starts, you schedule a packet generation to
occur at 0.01</div>
<div>then, still before the simulation starts, you schedule a link failure
at 0.02</div>
<div>then you start the simulation, where control is given to the
scheduler.</div>
<div>&nbsp;</div>
<div>the scheduler only processes messages that are exanged between the NS2
components (agents / links / queues / packets).</div>
<div>After some hundreds of events, teh scheduler will eventually call your
code at time 0.01</div>
<div>then it calls some more hundreds of events, before it call your second
piece o code at time 0.02</div>
<div>&nbsp;</div>
<div>what exactly are you trying to do?</div>
<div>Pedro Vale Estrela</div>
<div>&nbsp;</div>
<div>PS: this is a fine material for the NS2 wiki&nbsp; - please contribute
!!!</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 12/5/06, <b
class="gmail_sendername">G.Chandramowli</b> &lt;<a
href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px
0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi everybody ...<br><br>Can
anyone tell me when the control from C++ comes back to OTcl
?<br><br>&nbsp;&nbsp;To be more specific , let me explain a specific example
here .
<br><br>&nbsp;&nbsp; Assume that I have written a script line to generate
packets at 0.01 second.<br>&nbsp;&nbsp; Second script line to make the link
failure at 0.02 second .<br><br>&nbsp;&nbsp;Please tell me when the control
, that goes to c++ from the script line 1, comes back to execute the script
line 2 ?
<br><br>I am ready to explain further if my above example is difficult to
understand .<br><br>&nbsp;&nbsp;Thanks in advance
.<br>&nbsp;&nbsp;G.Chandramowli.<br><br></blockquote></div><br>

------=_Part_9264_2857892.1165332047369--



Reply via email to