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

Task to output a stream to an ARFF file. More...

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

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
FileOption arffFileOption
IntOption maxInstancesOption
FlagOption suppressHeaderOption

Protected Member Functions

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

Detailed Description

Task to output a stream to an ARFF file.

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

Definition at line 40 of file WriteStreamToARFFFile.java.


Member Function Documentation

Object moa.tasks.WriteStreamToARFFFile.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 64 of file WriteStreamToARFFFile.java.

Here is the call graph for this function:

String moa.tasks.WriteStreamToARFFFile.getPurposeString ( )

Gets the purpose of this object.

Returns:
the string with the purpose of this object

Reimplemented from moa.options.AbstractOptionHandler.

Definition at line 43 of file WriteStreamToARFFFile.java.

Class<?> moa.tasks.WriteStreamToARFFFile.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 93 of file WriteStreamToARFFFile.java.


Member Data Documentation

Initial value:
 new FileOption("arffFile", 'f',
            "Destination ARFF file.", null, "arff", true)

Definition at line 53 of file WriteStreamToARFFFile.java.

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

Initial value:
 new IntOption("maxInstances", 'm',
            "Maximum number of instances to write to file.", 10000000, 0,
            Integer.MAX_VALUE)

Definition at line 56 of file WriteStreamToARFFFile.java.

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

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

Definition at line 49 of file WriteStreamToARFFFile.java.

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

Initial value:
 new FlagOption("suppressHeader",
            'h', "Suppress header from output.")

Definition at line 60 of file WriteStreamToARFFFile.java.

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


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