public abstract class MainTask extends AbstractTask
Modifier and Type | Field and Description |
---|---|
protected static int |
INSTANCES_BETWEEN_MONITOR_UPDATES
The number of instances between monitor updates.
|
FileOption |
outputFileOption
File option to save the final result of the task to.
|
classOptionNamesToPreparedObjects, options
Constructor and Description |
---|
MainTask() |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
doMainTask(TaskMonitor monitor,
ObjectRepository repository)
This method performs this task.
|
protected Object |
doTaskImpl(TaskMonitor monitor,
ObjectRepository repository)
This method performs this task.
|
doTask, doTask, getDescription, getTaskName, prepareForUseImpl
copy, discoverOptionsViaReflection, getCLICreationString, getOptions, getPreparedClassOption, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTaskResultType
copy, measureByteSize
protected static final int INSTANCES_BETWEEN_MONITOR_UPDATES
public FileOption outputFileOption
protected Object doTaskImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractTask
AbstractTask
implements doTask
so all
its extensions only need to implement doTaskImpl
.doTaskImpl
in class AbstractTask
monitor
- the TaskMonitor to userepository
- the ObjectRepository to useprotected abstract Object doMainTask(TaskMonitor monitor, ObjectRepository repository)
AbstractTask
implements doTask
,
that uses doTaskImpl
.
MainTask
implements doTaskImpl
using
doMainTask
so its extensions only need to implement
doMainTask
.monitor
- the TaskMonitor to userepository
- the ObjectRepository to useCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.