MOA 12.03
Real Time Analytics for Data Streams
weka.core.MOAUtils Class Reference

A helper class for MOA related classes. More...

List of all members.

Static Public Member Functions

static MOAObject fromCommandLine (ClassOption option, String commandline)
 Turns a commandline into an object (classname + optional options).
static MOAObject fromCommandLine (Class requiredType, String commandline)
 Turns a commandline into an object (classname + optional options).
static MOAObject fromOption (ClassOption option)
 Creates a MOA object from the specified class option.
static String toCommandLine (MOAObject obj)
 Returs the commandline for the given object.

Detailed Description

A helper class for MOA related classes.

Author:
fracpete (fracpete at waikato dot ac dot nz)
Version:
$Revision$

Definition at line 34 of file MOAUtils.java.


Member Function Documentation

static MOAObject weka.core.MOAUtils.fromCommandLine ( ClassOption  option,
String  commandline 
) [static]

Turns a commandline into an object (classname + optional options).

Parameters:
optionthe corresponding class option
commandlinethe commandline to turn into an object
Returns:
the generated oblect

Definition at line 43 of file MOAUtils.java.

Referenced by weka.core.MOAUtils.fromOption(), weka.datagenerators.classifiers.classification.MOA.setOptions(), and weka.classifiers.meta.MOA.setOptions().

Here is the call graph for this function:

Here is the caller graph for this function:

static MOAObject weka.core.MOAUtils.fromCommandLine ( Class  requiredType,
String  commandline 
) [static]

Turns a commandline into an object (classname + optional options).

Parameters:
requiredTypethe required class
commandlinethe commandline to turn into an object
Returns:
the generated oblect

Definition at line 54 of file MOAUtils.java.

static MOAObject weka.core.MOAUtils.fromOption ( ClassOption  option) [static]

Creates a MOA object from the specified class option.

Parameters:
optionthe option to build the object from
Returns:
the created object

Definition at line 89 of file MOAUtils.java.

Referenced by weka.datagenerators.classifiers.classification.MOA.defineDataFormat(), weka.classifiers.meta.MOA.setClassifier(), and weka.datagenerators.classifiers.classification.MOA.setGenerator().

Here is the call graph for this function:

Here is the caller graph for this function:

static String weka.core.MOAUtils.toCommandLine ( MOAObject  obj) [static]

Returs the commandline for the given object.

If the object is not derived from AbstractOptionHandler, then only the classname. Otherwise the classname and the options are returned.

Parameters:
objthe object to generate the commandline for
Returns:
the commandline

Definition at line 101 of file MOAUtils.java.

Referenced by weka.datagenerators.classifiers.classification.MOA.getOptions(), weka.classifiers.meta.MOA.getOptions(), weka.datagenerators.classifiers.classification.MOA.listOptions(), and weka.classifiers.meta.MOA.listOptions().

Here is the caller graph for this function:


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