org.jmol.script
Class ParallelProcessor

java.lang.Object
  extended by org.jmol.script.ScriptFunction
      extended by org.jmol.script.ParallelProcessor

public class ParallelProcessor
extends ScriptFunction


Nested Class Summary
(package private) static class ParallelProcessor.Process
          the idea here is that the process { ...
(package private)  class ParallelProcessor.RunProcess
           
 
Field Summary
(package private)  int counter
           
(package private)  Error error
           
(package private)  Object lock
           
(package private)  List processes
           
(package private)  Viewer viewer
           
(package private)  List vShapeManagers
           
 
Fields inherited from class org.jmol.script.ScriptFunction
aatoken, chpt0, cmdpt0, lineIndices, lineNumbers, name, names, nParameters, pt0, returnValue, script, tok, typeName, variables
 
Constructor Summary
ParallelProcessor(String name, int tok)
           
 
Method Summary
(package private)  void addProcess(String name, ScriptContext context)
           
(package private)  void clearShapeManager(Error er)
           
static Object getExecutor()
           
(package private)  void mergeResults()
           
 void runAllProcesses(Viewer viewer, boolean inParallel)
           
private  void runProcess(ParallelProcessor.Process process, boolean allowParallel)
           
 
Methods inherited from class org.jmol.script.ScriptFunction
addVariable, getSignature, isVariable, setFunction, setVariables, toString, unsetVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

viewer

Viewer viewer

vShapeManagers

volatile List vShapeManagers

counter

volatile int counter

error

volatile Error error

lock

Object lock

processes

List processes
Constructor Detail

ParallelProcessor

ParallelProcessor(String name,
                  int tok)
Method Detail

getExecutor

public static Object getExecutor()

runAllProcesses

public void runAllProcesses(Viewer viewer,
                            boolean inParallel)

mergeResults

void mergeResults()

clearShapeManager

void clearShapeManager(Error er)

addProcess

void addProcess(String name,
                ScriptContext context)

runProcess

private void runProcess(ParallelProcessor.Process process,
                        boolean allowParallel)