MOA 12.03
Real Time Analytics for Data Streams
moa.tasks.MainTask Class Reference

Abstract Main Task. More...

Inheritance diagram for moa.tasks.MainTask:
Collaboration diagram for moa.tasks.MainTask:

List of all members.

Public Attributes

FileOption outputFileOption
 File option to save the final result of the task to.

Protected Member Functions

Object doTaskImpl (TaskMonitor monitor, ObjectRepository repository)
 This method performs this task.
abstract Object doMainTask (TaskMonitor monitor, ObjectRepository repository)
 This method performs this task.

Static Protected Attributes

static final int INSTANCES_BETWEEN_MONITOR_UPDATES = 10
 The number of instances between monitor updates.

Detailed Description

Abstract Main Task.

All tasks that want to write their result to a file must extend this class.

Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)
Version:
Revision:
7

Definition at line 37 of file MainTask.java.


Member Function Documentation

abstract Object moa.tasks.MainTask.doMainTask ( TaskMonitor  monitor,
ObjectRepository  repository 
) [protected, pure virtual]

This method performs this task.

AbstractTask implements doTask, that uses doTaskImpl. MainTask implements doTaskImpl using doMainTask so its extensions only need to implement doMainTask.

Parameters:
monitorthe TaskMonitor to use
repositorythe ObjectRepository to use
Returns:
an object with the result of this task

Implemented in moa.tasks.EvaluateClustering, moa.tasks.EvaluateInterleavedChunks, moa.tasks.EvaluateInterleavedTestThenTrain, moa.tasks.EvaluateModel, moa.tasks.EvaluatePeriodicHeldOutTest, moa.tasks.EvaluatePrequential, moa.tasks.LearnModel, moa.tasks.MeasureStreamSpeed, moa.tasks.Plot, moa.tasks.RunTasks, and moa.tasks.WriteStreamToARFFFile.

Referenced by moa.tasks.MainTask.doTaskImpl().

Here is the caller graph for this function:

Object moa.tasks.MainTask.doTaskImpl ( TaskMonitor  monitor,
ObjectRepository  repository 
) [protected, virtual]

This method performs this task.

AbstractTask implements doTask so all its extensions only need to implement doTaskImpl.

Parameters:
monitorthe TaskMonitor to use
repositorythe ObjectRepository to use
Returns:
an object with the result of this task

Implements moa.tasks.AbstractTask.

Definition at line 49 of file MainTask.java.

Here is the call graph for this function:


Member Data Documentation

Initial value:
 new FileOption("taskResultFile", 'O',
            "File to save the final result of the task to.", null, "moa", true)

File option to save the final result of the task to.

Definition at line 45 of file MainTask.java.

Referenced by moa.tasks.MainTask.doTaskImpl().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations