From: Jonathan M. <jon...@bs...> - 2009-03-17 15:34:12
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It fails because some singletons are used and AFAIK there is no clean way to reset the variables. I also use an external script to execute the whole thing several times (as some people has advised you). But for instance Alea (a package based on GridSim for testing scheduling algorithms) uses a modified simjava package that implements a method that resets these inner variables. Furthermore, if you are using another GIS (such as DataGIS), you will also need to reset it, and the method setGIS is not enough, you need to "unsetGIS" first. But this method is not implemented, so I coded it in GridSim class: public static boolean unsetGIS() { gis_ = null; return true; } That's all guanzhou lu escribió: > 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 - -- - ----------------------------------------------------------------------- Jonathan Martí Fraiz Storage Systems Research Group - Computer Sciences Department Barcelona Supercomputing Center - Centro Nacional de Supercomputación www : http://www.bsc.es/StorageSystems email : jonathan(dot)marti(at)bsc(dot)es phone : (0034) 934054281 - ----------------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkm/wwQACgkQ4cH1a6R2mCtGpgCgulS95oyahX4AEeU2UIagwZay hjsAniIj1mmaRmTz8O46E66DPVutg2DN =7zLo -----END PGP SIGNATURE----- |