From: Agustín C. H. <ag...@ds...> - 2009-03-17 14:36:49
|
Hi, What I do is the following: 1- Once I've implemented my stuff, I create a .jar file. The tool u use to program (e.g. eclipse, jbuilder,...) will have details on this point. The .jar file can be executed by java -jar file.jar [parameters] 2- Then, create a linux script or a windows batch file containing your experiments. For instance, it could look like this: java -jar mycode.jar para1 para2 para3 java -jar mycode.jar para1 para2 para3 java -jar mycode.jar para1 para2 para3 java -jar mycode.jar para1 para2 para3 Pay attention that each experiment should write results in files with different names, otherwise u would overwrite the results of the previous experiments. 3- Once ur experiments are over, just implement a program that calculates averages, ... whatever statistical measures u need. Then, u can plot them using gnuplot. HTH Cheers, Agustin guanzhou lu wrote: > Dear All: > > I am currently using GridSim for a project, but I have encountered a > problem: > could GridSim simulation run several times in a single class or > function, because I want to take the average performance of the simulation? > > As I wanna my program be like: > class gridsim(){ > main(){ > 1st Simulation > 2nd Simulation > ... > } > > Is there any thread or something that I will need to destroy after > calling the simulation? As the 2nd simulation does not work. > > Does anyone has met the same problem or knows how to do? I would be > appreciate if you could help me on this. > > Best, > Guanzhou > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gridsim-users mailing list > Gri...@li... > https://lists.sourceforge.net/lists/listinfo/gridsim-users > -- =============================================== Agustin Caminero Research Assistant Computing Systems Department The University of Castilla La Mancha. Albacete. Spain. Phone: +34 967 599 200 Ext. 2693. Fax: +34 967 599 343 http://www.i3a.uclm.es/ =============================================== |