java - Eclipse, running instances sequentially, one after another -


i have robot simulation run many times in order collect statistics. in particular, want run simulation 1,2,...,10 robots, , each of them must run 30 times, thought pass desired number of robots via main args.

since simulation memory-intensive, want run them sequentially, 1 after another(otherwise outofmemory exception likely). working in java/eclipse, , under run configurations 1 can specify arguments passed program if called shell, haven't found way automate process.

in short, following:

for i=1 10:   j=1 30:     run simulation_instance(i) 

each run of program has independent. have tried using launch group option, way less configurable.

are aware of other alternative?

there is* way in eclipse, using eclipse ease. new , still in incubation. allows describe.

the basic steps install eclipse ease , write javascript looks little like:

// load launch module loadmodule("/system/launch")  // logic loops/etc (i = 0; < 30; i++) {      l = launch("name of launch configuration")         while (!prepare.isterminated()) {         // wait java.lang.thread.sleep(1)     } } 

* of oct 2015, ease in incubation, , until next release access new launch module, need ease git.

for more details see:


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -