[javasim-general] howto use wait_until?

Peter Backx peter.backx@intec.rug.ac.be
Thu, 6 Feb 2003 15:25:36 +0100


Hi all,

I would like to simulate a certain experiment for various parameters.
However when I try to automate this I am unable to wait until the runtime is
stopped.

What I do is something along the lines of:
for {set i 0} {$i<100} {incr i} {
  # set parameters
  run experiment
  rt experiment stopAt 120000
  # wait for runtime to stop
  # log results
  reboot experiment
}

In order to wait for the suspension of the runtime I think I need to use
wait_until, however this doesn't seem to work. What I try is:
wait_until [rt experiment isStopped]

(and various very similar statements) But this blocks endlessly.

Am I doing something wrong? If yes, what? If no, is this a bug? Are there
work-arounds?


Thanks in advance,
Peter