Package org.jmol.script
Class ScriptParallelProcessor
- java.lang.Object
-
- org.jmol.script.ScriptFunction
-
- org.jmol.script.ScriptParallelProcessor
-
- All Implemented Interfaces:
JmolParallelProcessor,JmolScriptFunction
public class ScriptParallelProcessor extends ScriptFunction implements JmolParallelProcessor
-
-
Field Summary
Fields Modifier and Type Field Description intcounterjava.lang.Errorerror(package private) java.lang.Objectlockprivate javajs.util.Lst<ScriptProcess>processes(package private) Viewervwr-
Fields inherited from class org.jmol.script.ScriptFunction
aatoken, chpt0, cmdpt0, lineIndices, lineNumbers, name, names, nParameters, pt0, returnValue, script, tok, typeName, variables
-
-
Constructor Summary
Constructors Constructor Description ScriptParallelProcessor()parallel operations
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProcess(java.lang.String name, ScriptContext context)(package private) voidclearShapeManager(java.lang.Error er)(package private) voideval(ScriptContext context, ShapeManager shapeManager)java.lang.ObjectgetExecutor()private java.util.concurrent.ExecutorgetMyExecutor()(package private) voidmergeResults(javajs.util.Lst<ShapeManager> vShapeManagers)private voidmergeShapes(ShapeManager shapeManager)voidrunAllProcesses(Viewer vwr)private voidrunProcess(ScriptProcess process, ShapeManager shapeManager)-
Methods inherited from class org.jmol.script.ScriptFunction
addVariable, getName, geTokens, getSignature, getTok, isVariable, set, setFunction, setVariables, toString, unsetVariables
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jmol.api.JmolParallelProcessor
set
-
-
-
-
Field Detail
-
vwr
Viewer vwr
-
counter
public volatile int counter
-
error
public volatile java.lang.Error error
-
lock
java.lang.Object lock
-
processes
private javajs.util.Lst<ScriptProcess> processes
-
-
Method Detail
-
getExecutor
public java.lang.Object getExecutor()
- Specified by:
getExecutorin interfaceJmolParallelProcessor
-
runAllProcesses
public void runAllProcesses(Viewer vwr)
- Specified by:
runAllProcessesin interfaceJmolParallelProcessor
-
mergeResults
void mergeResults(javajs.util.Lst<ShapeManager> vShapeManagers)
-
mergeShapes
private void mergeShapes(ShapeManager shapeManager)
-
clearShapeManager
void clearShapeManager(java.lang.Error er)
-
addProcess
public void addProcess(java.lang.String name, ScriptContext context)- Specified by:
addProcessin interfaceJmolParallelProcessor
-
runProcess
private void runProcess(ScriptProcess process, ShapeManager shapeManager)
-
eval
void eval(ScriptContext context, ShapeManager shapeManager)
-
getMyExecutor
private java.util.concurrent.Executor getMyExecutor()
-
-