MOA 12.03
Real Time Analytics for Data Streams
|
Public Member Functions | |
String | getTaskName () |
Gets the name of this task. | |
Object | doTask () |
This method performs this task, when TaskMonitor and ObjectRepository are no needed. | |
Object | doTask (TaskMonitor monitor, ObjectRepository repository) |
This method performs this task. | |
void | getDescription (StringBuilder sb, int indent) |
Returns a string representation of this object. | |
Protected Member Functions | |
abstract Object | doTaskImpl (TaskMonitor monitor, ObjectRepository repository) |
This method performs this task. | |
void | prepareForUseImpl (TaskMonitor monitor, ObjectRepository repository) |
This method describes the implementation of how to prepare this object for use. |
Abstract Task.
All runnable tasks in MOA extend this class.
Definition at line 31 of file AbstractTask.java.
Object moa.tasks.AbstractTask.doTask | ( | ) |
This method performs this task, when TaskMonitor and ObjectRepository are no needed.
Implements moa.tasks.Task.
Definition at line 44 of file AbstractTask.java.
Object moa.tasks.AbstractTask.doTask | ( | TaskMonitor | monitor, |
ObjectRepository | repository | ||
) |
This method performs this task.
AbstractTask
implements this method so all its extensions only need to implement doTaskImpl
monitor | the TaskMonitor to use |
repository | the ObjectRepository to use |
Implements moa.tasks.Task.
Definition at line 49 of file AbstractTask.java.
abstract Object moa.tasks.AbstractTask.doTaskImpl | ( | TaskMonitor | monitor, |
ObjectRepository | repository | ||
) | [protected, pure virtual] |
This method performs this task.
AbstractTask
implements doTask
so all its extensions only need to implement doTaskImpl
.
monitor | the TaskMonitor to use |
repository | the ObjectRepository to use |
Implemented in moa.tasks.CacheShuffledStream, and moa.tasks.MainTask.
Referenced by moa.tasks.AbstractTask.doTask().
void moa.tasks.AbstractTask.getDescription | ( | StringBuilder | sb, |
int | indent | ||
) |
Returns a string representation of this object.
Used in AbstractMOAObject.toString
to give a string representation of the object.
sb | the stringbuilder to add the description |
indent | the number of characters to indent |
Implements moa.MOAObject.
Definition at line 82 of file AbstractTask.java.
String moa.tasks.AbstractTask.getTaskName | ( | ) |
Gets the name of this task.
Definition at line 39 of file AbstractTask.java.
Referenced by moa.tasks.AbstractTask.doTask(), and moa.tasks.MainTask.doTaskImpl().
void moa.tasks.AbstractTask.prepareForUseImpl | ( | TaskMonitor | monitor, |
ObjectRepository | repository | ||
) | [protected, virtual] |
This method describes the implementation of how to prepare this object for use.
All classes that extends this class have to implement prepareForUseImpl
and not prepareForUse
since prepareForUse
calls prepareForUseImpl
.
monitor | the TaskMonitor to use |
repository | the ObjectRepository to use |
Implements moa.options.AbstractOptionHandler.
Definition at line 76 of file AbstractTask.java.