<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">in your simulation scenario, every time that you call the install method for an application, this call returns a container of the applications installed. In this way, you can collect all the application instances and then generate a random number and decide which application instance to start first using the StartApplication method and a specified time point.</div><div class=""><br class=""></div><div class="">You can schedule any actions that you would like your application to take as NS3 events in the code of your application.</div><div class=""><br class=""></div><div class="">Hope that this helps.</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><span class="" style="float: none; display: inline !important;"><br class=""></span></div></div></div><div class=""><br class=""></div></div><div><blockquote type="cite" class=""><div class="">On Apr 27, 2016, at 7:49 PM, Zeinab Rezaiefar <<a href="mailto:z.rezaiefar@yahoo.com" class="">z.rezaiefar@yahoo.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 16px;" class=""><div id="yiv4202292833yui_3_16_0_ym19_1_1461069702816_107559" style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">  Hello every one,</div><div id="yiv4202292833yui_3_16_0_ym19_1_1461069702816_107594" style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">I would like to know how I can change consumer and producer randomly during simulation time. let consider we have 5 nodes and node 1 to node 4 all connect to the node 5  and then select two nodes among node 1 to node 4  as consumer and producer. I would like to know how I should schedule them that after every 1 second, the producer and consumer change while all of the users request the same content. moreover, for example user 1 sends request for the specific packet at second one and later at second 8 again this user may send request for this packet. </div><div id="yui_3_16_0_ym19_1_1461802106711_4858" style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr" class="">any help will be appreciate</div><div id="yui_3_16_0_ym19_1_1461802106711_4869" style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr" class="">thanks in advance</div><div id="yui_3_16_0_ym19_1_1461802106711_4870" style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr" class="">regards</div><div id="yui_3_16_0_ym19_1_1461802106711_4871" style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr" class="">Zeinab  </div></div></div></div></blockquote></div><br class=""></div></body></html>