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

Task for measuring the speed of the stream. More...

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

List of all members.

Public Member Functions

String getPurposeString ()
 Gets the purpose of this object.
Class<?> getTaskResultType ()
 Gets the result type of this task.

Public Attributes

ClassOption streamOption
IntOption generateSizeOption

Protected Member Functions

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

Detailed Description

Task for measuring the speed of the stream.

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

Definition at line 36 of file MeasureStreamSpeed.java.


Member Function Documentation

Object moa.tasks.MeasureStreamSpeed.doMainTask ( TaskMonitor  monitor,
ObjectRepository  repository 
) [protected, 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

Implements moa.tasks.MainTask.

Definition at line 53 of file MeasureStreamSpeed.java.

Here is the call graph for this function:

String moa.tasks.MeasureStreamSpeed.getPurposeString ( )

Gets the purpose of this object.

Returns:
the string with the purpose of this object

Reimplemented from moa.options.AbstractOptionHandler.

Definition at line 39 of file MeasureStreamSpeed.java.

Class<?> moa.tasks.MeasureStreamSpeed.getTaskResultType ( )

Gets the result type of this task.

Tasks can return LearningCurve, LearningEvaluation, Classifier, String, Instances..

Returns:
a class object of the result of this task

Implements moa.tasks.Task.

Definition at line 74 of file MeasureStreamSpeed.java.


Member Data Documentation

Initial value:
 new IntOption("generateSize", 'g',
            "Number of examples.", 10000000, 0, Integer.MAX_VALUE)

Definition at line 49 of file MeasureStreamSpeed.java.

Referenced by moa.tasks.MeasureStreamSpeed.doMainTask().

Initial value:
 new ClassOption("stream", 's',
            "Stream to measure.", InstanceStream.class,
            "generators.RandomTreeGenerator")

Definition at line 45 of file MeasureStreamSpeed.java.

Referenced by moa.tasks.MeasureStreamSpeed.doMainTask().


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