From: Dalibor K. <xk...@fi...> - 2014-01-23 14:36:07
|
Hi, > Hi everyone, > > During experiments with Gridsim I experienced difficulties with > running several simulations in a row. > For example, I have a JUnit test case that executes simulations > several times. First simulations is successfully executed, while all > next test cases finish immediately after GridSim.startGridSimulation() > call. > > Is it expected behavior and it's impossible to run several simulations > in a row? Is there a way to "clear" state of the GridSim so it's > possible to run simulation again? > > -- Regards, Volodymyr I solved the same problem and ended up with extended simjava.jar library. I had to add new method that resets simjava's internal variable "incomplete". Otherwise it did not work. In the code, you just put this line at the end of an experiment: // reset internal SimJava variables to start new experiment with different job/gridlet setup Sim_system.setInComplete(true); If you are interested in my solution, take a look at http://www.fi.muni.cz/~xklusac/alea/ It is a webpage of Alea simulator (which can run several simulations in a row). Also the modified simjava.jar is there: http://www.fi.muni.cz/~xklusac/alea/download/simjava.jar Regards, Dalibor -- --------------------------------- RNDr. Dalibor Klusáček, Ph.D. Faculty of Informatics, MU, Brno. e-mail: xk...@fi... --------------------------------- |