|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.util.concurrent.marvin.CompositeWorkUnit
public class CompositeWorkUnit
Work unit composed of an array of work units, to be called in a linear fashion in a single thread, one after the other in the specified order. The provided output is an array of outputs provided by these work units.
| Field Summary | |
|---|---|
protected WorkUnit[] |
workUnits
The array of work units. |
| Constructor Summary | |
|---|---|
CompositeWorkUnit()
Constructor. |
|
CompositeWorkUnit(WorkUnit[] workUnits)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
call()
Performs the work unit tasks in a linear fashion, one after the other. |
void |
setInput(java.lang.Object obj)
Sets the input in each work unit. |
void |
setWorkUnits(WorkUnit[] workUnits)
Sets the work units. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected WorkUnit[] workUnits
| Constructor Detail |
|---|
public CompositeWorkUnit()
setWorkUnits(chemaxon.util.concurrent.WorkUnit[]).
public CompositeWorkUnit(WorkUnit[] workUnits)
workUnits - the work units| Method Detail |
|---|
public void setWorkUnits(WorkUnit[] workUnits)
workUnits - the work units
public void setInput(java.lang.Object obj)
throws edu.emory.mathcs.backport.java.util.concurrent.ExecutionException
setInput in interface WorkUnitobj - the input object
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException
public java.lang.Object call()
throws java.lang.Exception
call in interface edu.emory.mathcs.backport.java.util.concurrent.Callablejava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||