LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ns2 code to deploy nodes, assign initial energy values and divide into grids (https://www.linuxquestions.org/questions/linux-newbie-8/ns2-code-to-deploy-nodes-assign-initial-energy-values-and-divide-into-grids-4175529377/)

reshmaj 12-27-2014 09:02 PM

ns2 code to deploy nodes, assign initial energy values and divide into grids
 
How to deploy 50 nodes in 100 x 100 m and assign different energy values to them and divide them into grids of 20 x 20 m

TB0ne 12-28-2014 06:25 PM

Quote:

Originally Posted by reshmaj (Post 5291365)
How to deploy 50 nodes in 100 x 100 m and assign different energy values to them and divide them into grids of 20 x 20 m

You write the code to do it...or you can look up examples, and modify them to fit your needs.

But you need to read the LQ Rules and the "Question Guidelines" link in my posting signature. We are NOT going to give you code or write it for you, but we will be very happy to help you if you're stuck. But you are going to have to show effort of your own. Post what you've written/tried/looked up on your own, along with the relevant details, and we can try to help you.

baig7070 04-15-2017 03:07 AM

Quote:

Originally Posted by reshmaj (Post 5291365)
How to deploy 50 nodes in 100 x 100 m and assign different energy values to them and divide them into grids of 20 x 20 m

I can send you the code for that. Email me at hasanbaig94@gmail.com.

knudfl 04-15-2017 08:00 AM

Re #3, @baig7070.

Example grid : pbcast_sim.tcl + p_bcast.tcl
http://disc.ece.illinois.edu/downloads/lab108.html
>> http://disc.ece.illinois.edu/downloads/pbcast_sim.tcl
and http://disc.ece.illinois.edu/downloads/p_bcast.tcl

Simulation example : $ ns pbcast_sim.tcl -prob 20

Your code : Please attach as "grid__unique-name.tcl.txt
I.e. .txt is the only accepted suffix for attaching text files.
Attachments : That's the 'paper clip tool' in the 'Advanced Editor'.


-

TB0ne 04-15-2017 09:49 AM

Quote:

Originally Posted by baig7070 (Post 5697211)
I can send you the code for that. Email me at hasanbaig94@gmail.com.

Baig7070, this is a community forum. If you'd like to share code to solve problems, then post it here. But telling the community that you'll only share privately is fairly rude.


All times are GMT -5. The time now is 08:47 PM.