Re: [ns] Multiple source files

2006-10-11 Thread Daniel Mahrenholz

Keita Rose schrieb:
 I am trying to run a mobile scenario using multiple source files, how do I go 
 about implementing that is NS-2 if it is at all possible.
   
I'm not sure, I got you right. But I did the following in order to 
simulate different topologies with the same set of applications. I first 
build a core simulation script, e.g. one that creates the simulator 
objects, configures everything, etc. Then I include the script that 
creates the topology (given by a command line parameter) into this core 
script. The remaining part of the core script configures the 
applications and runs the simulation.

Now, in order to investigate different topologies, I wrote a control 
script, that iterates over the list of available toplogies and calls the 
simulation script with the name of the topology script as a parameter. 
You should be able to do something similar.

Daniel.



Re: [ns] Multiple source files

2006-10-11 Thread Pedro Vale Estrela


Exactly, that's the way to do it.

I might add that this function makes your life easier
http://tagus.inesc-id.pt/~pestrela/ns2/contributed_code.html#_Toc147652228


Pedro Vale Estrela



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of Daniel Mahrenholz
 Sent: quarta-feira, 11 de Outubro de 2006 10:32
 To: Keita Rose
 Cc: ns-users@ISI.EDU
 Subject: Re: [ns] Multiple source files
 
 
 Keita Rose schrieb:
  I am trying to run a mobile scenario using multiple source files, how do
 I go about implementing that is NS-2 if it is at all possible.
 
 I'm not sure, I got you right. But I did the following in order to
 simulate different topologies with the same set of applications. I first
 build a core simulation script, e.g. one that creates the simulator
 objects, configures everything, etc. Then I include the script that
 creates the topology (given by a command line parameter) into this core
 script. The remaining part of the core script configures the
 applications and runs the simulation.
 
 Now, in order to investigate different topologies, I wrote a control
 script, that iterates over the list of available toplogies and calls the
 simulation script with the name of the topology script as a parameter.
 You should be able to do something similar.
 
 Daniel.