public class CreateCopiesTask extends AbstractProcessingTask
n copies of the currently displayed item. If
random generators are opened, n individual samples are created.SwingWorker.StateValue| Modifier and Type | Field and Description |
|---|---|
private Class<?> |
caller |
private static org.apache.log4j.Logger |
logger |
private int |
numCopies |
childTask, duration, headless, operator, operatorGUI, parentTask, startTime, virtual, workPackage| Constructor and Description |
|---|
CreateCopiesTask(IWorkPackage wp,
int numCopies,
boolean virtual)
This is the default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<IqmDataBox> |
doInBackground()
This method must be implemented by all subclasses.
|
protected void |
done()
This method is called after the
doInBackground() method and
must be implemented by all subclasses. |
getChildTask, getOperator, getOperatorGUI, getParentTask, getWorkPackage, isHeadless, isVirtual, process, setChildTask, setHeadless, setOperator, setOperatorGUI, setParentTask, setVirtual, setWorkPackageaddPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgressprivate Class<?> caller
private static final org.apache.log4j.Logger logger
private int numCopies
public CreateCopiesTask(IWorkPackage wp, int numCopies, boolean virtual)
This task always runs headless=true.
wp - the work package, may contain a null object of
ParameterBlockIQM and IOperatornumCopies - number of copies to makevirtual - whether or not the items should be processed virtuallyprotected List<IqmDataBox> doInBackground() throws Exception
AbstractProcessingTaskdoInBackground in class AbstractProcessingTaskget().Exceptionprotected void done()
AbstractProcessingTaskdoInBackground() method and
must be implemented by all subclasses. It is called too, when the
SwingWorker is cancelled.done in class AbstractProcessingTaskCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.