<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Igor,</div><div><br></div>What do you mean by the "event"?  There could be many events going on in your scenario, some of them could be designed to exist for the entire simulation.  If you're referring to applications that are keep running, then it should be possible.<div><br></div><div>What I did in some of my simulations is that I have scheduled stop time for my applications at some time, e.g., like this:</div><div><pre style="overflow-x: auto; overflow-y: hidden; padding: 5px; line-height: 14px; border-top-width: 1px; border-bottom-width: 1px; border-style: solid none; border-top-color: rgb(170, 204, 153); border-bottom-color: rgb(170, 204, 153); font-size: 12px; text-align: left; "><span class="n">consumerHelper</span><span class="p">.</span><span class="n">Install</span> <span class="p">(</span><span class="n">nodes</span><span class="p">.</span><span class="n">Get</span> <span class="p">(</span><span class="mi" style="color: rgb(32, 128, 80);">0</span><span class="p">)).Stop (Seconds (5.0));</span>
</pre></div><div><span class="c1" style="color: rgb(64, 128, 144); font-style: italic;"><br></span></div><div>While specifying that my simulation need to be stopped some time after that, say after 30 or 60 seconds after that.   You can also specify stop time hours after you schedule stop of your application, since NS-3 will easily skip till the end when there are no events scheduled.</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><div><div>On Jun 27, 2013, at 11:39 AM, Igor <<a href="mailto:igorcompuff@gmail.com">igorcompuff@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Alex,<div><br></div><div>I was wondering if is it possible to make the simulation ends only when there is no more events. I am making the simulations execute for 5 seconds, with the command Simulator::Stop (Seconds (5.0)), but when it is over, there are still a bunch of events remaining.</div>
<div><br></div><div>Thank You in advance.</div><div><br></div><div>Best regards,</div><div><br></div><div>Igor Ribeiro.</div></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></div></body></html>