Andreas Prlic wrote:

>I guess all the Evals should go through a common queue ...
>
>Andreas
>  
>

In fact, provided we can now reliably wait for script execution, the 
script queue concept seems quite possible and maybe even a solution to a 
very very old problem.

I've written a ScriptManager to handle these, and my preliminary testing 
indicates that it works. I cannot break the applet (Windows PC) no 
matter how fast I send it scripts, and every script runs to completion, 
regardless of how many delays and animations and such are involved. 
(Previously, scripts interrupted other scripts.)
One of the interesting aspects of this is that you (or the user) can 
give as many commands as quickly as you wish, and they will be processed 
in due time. There is no absolute need for "scriptWait()".

Now, this could be a problem if LOOP commands are used, because there 
isn't any provision for otherwise stopping a running script. So I've 
enabled two essentially nonfunctional commands: QUIT and EXIT as follows:

  QUIT   alone or in the middle of a script stops a currently running 
script at that point
  QUIT   at the beginning of a script stops a currently running script 
and starts the next one

  EXIT    alone or in the middle of a script stops a currently running 
script at that point and flushes all unstarted scripts from the script 
queue.
  EXIT    at the beginning of a script stops the currently running 
script and flushes all unstarted scripts from the script queue.

Since this is a new behavior, I've set it up so that there is a flag:

set scriptQueue  ON/OFF

which is by default OFF -- more like current behavior, I think. (But I'm 
not sure)

So my questions to users are:

1) Does this action of QUIT/EXIT make sense?
2) Do you use LOOP ?
3) Will this cause any serious difficulty?
4) Should the default be "set scriptQueue ON" or "set scriptQueue OFF" ?


Bob
   

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to