Package moa.tasks
Class MainTask
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.tasks.AbstractTask
-
- moa.tasks.MainTask
-
- All Implemented Interfaces:
Configurable
,Serializable
,MOAObject
,OptionHandler
,Task
- Direct Known Subclasses:
AuxiliarMainTask
,ClassificationMainTask
,ConceptDriftMainTask
,MetaMainTask
,MultiLabelMainTask
,MultiTargetMainTask
,Plot
,RegressionMainTask
public abstract class MainTask extends AbstractTask
Abstract Main Task. All tasks that want to write their result to a file must extend this class.- Version:
- $Revision: 7 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 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.-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description MainTask()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class moa.tasks.AbstractTask
doTask, doTask, getDescription, getTaskName, prepareForUseImpl
-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.MOAObject
measureByteSize
-
Methods inherited from interface moa.tasks.Task
getTaskResultType
-
-
-
-
Field Detail
-
INSTANCES_BETWEEN_MONITOR_UPDATES
protected static final int INSTANCES_BETWEEN_MONITOR_UPDATES
The number of instances between monitor updates.- See Also:
- Constant Field Values
-
outputFileOption
public FileOption outputFileOption
File option to save the final result of the task to.
-
-
Method Detail
-
doTaskImpl
protected Object doTaskImpl(TaskMonitor monitor, ObjectRepository repository)
Description copied from class:AbstractTask
This method performs this task.AbstractTask
implementsdoTask
so all its extensions only need to implementdoTaskImpl
.- Specified by:
doTaskImpl
in classAbstractTask
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use- Returns:
- an object with the result of this task
-
doMainTask
protected abstract Object doMainTask(TaskMonitor monitor, ObjectRepository repository)
This method performs this task.AbstractTask
implementsdoTask
, that usesdoTaskImpl
.MainTask
implementsdoTaskImpl
usingdoMainTask
so its extensions only need to implementdoMainTask
.- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use- Returns:
- an object with the result of this task
-
-