MOA 12.03
Real Time Analytics for Data Streams
moa.options.AbstractOptionHandler Class Reference

Abstract Option Handler. More...

Inheritance diagram for moa.options.AbstractOptionHandler:
Collaboration diagram for moa.options.AbstractOptionHandler:

List of all members.

Public Member Functions

String getPurposeString ()
 Gets the purpose of this object.
Options getOptions ()
 Gets the options of this object.
void prepareForUse ()
 This method prepares this object for use.
void prepareForUse (TaskMonitor monitor, ObjectRepository repository)
 This method prepares this object for use.
String getCLICreationString (Class<?> expectedType)
 Gets the Command Line Interface text to create the object.
OptionHandler copy ()
 This method produces a copy of this object.

Protected Member Functions

abstract void prepareForUseImpl (TaskMonitor monitor, ObjectRepository repository)
 This method describes the implementation of how to prepare this object for use.
Option[] discoverOptionsViaReflection ()
 Gets the options of this class via reflection.
void prepareClassOptions (TaskMonitor monitor, ObjectRepository repository)
 Prepares the options of this class.
Object getPreparedClassOption (ClassOption opt)
 Gets a prepared option of this class.

Protected Attributes

Options options
 Options to handle.
Map< String, Object > classOptionNamesToPreparedObjects
 Dictionary with option texts and objects.

Detailed Description

Abstract Option Handler.

All classes that have options in MOA extend this class.

Author:
Richard Kirkby ([email protected])
Version:
Revision:
7

Definition at line 40 of file AbstractOptionHandler.java.


Member Function Documentation

OptionHandler moa.options.AbstractOptionHandler.copy ( )

This method produces a copy of this object.

Returns:
a copy of this object

Reimplemented from moa.AbstractMOAObject.

Reimplemented in moa.classifiers.AbstractClassifier, moa.classifiers.core.driftdetection.DDM, moa.classifiers.core.driftdetection.EDDM, and moa.clusterers.AbstractClusterer.

Definition at line 99 of file AbstractOptionHandler.java.

Referenced by moa.gui.TaskManagerPanel.TaskManagerPanel().

Here is the call graph for this function:

Here is the caller graph for this function:

Option [] moa.options.AbstractOptionHandler.discoverOptionsViaReflection ( ) [protected]

Gets the options of this class via reflection.

Returns:
an array of options

Definition at line 108 of file AbstractOptionHandler.java.

Referenced by moa.options.AbstractOptionHandler.getOptions().

Here is the caller graph for this function:

Options moa.options.AbstractOptionHandler.getOptions ( )

Gets the options of this object.

Returns:
the options of this object

Implements moa.options.OptionHandler.

Definition at line 57 of file AbstractOptionHandler.java.

Referenced by moa.options.AbstractOptionHandler.getCLICreationString(), and moa.options.AbstractOptionHandler.prepareClassOptions().

Here is the call graph for this function:

Here is the caller graph for this function:

Object moa.options.AbstractOptionHandler.getPreparedClassOption ( ClassOption  opt) [protected]

Gets a prepared option of this class.

Parameters:
optthe class option to get
Returns:
an option stored in the dictionary

Definition at line 177 of file AbstractOptionHandler.java.

Referenced by moa.tasks.WriteStreamToARFFFile.doMainTask(), moa.tasks.RunTasks.doMainTask(), moa.tasks.MeasureStreamSpeed.doMainTask(), moa.tasks.LearnModel.doMainTask(), moa.tasks.EvaluatePrequential.doMainTask(), moa.tasks.EvaluatePeriodicHeldOutTest.doMainTask(), moa.tasks.EvaluateModel.doMainTask(), moa.tasks.EvaluateInterleavedTestThenTrain.doMainTask(), moa.tasks.EvaluateInterleavedChunks.doMainTask(), moa.tasks.EvaluateClustering.doMainTask(), moa.tasks.CacheShuffledStream.doTaskImpl(), moa.streams.FilteredStream.prepareForUseImpl(), moa.streams.ConceptDriftStream.prepareForUseImpl(), moa.streams.ConceptDriftRealStream.prepareForUseImpl(), moa.classifiers.meta.AccuracyWeightedEnsemble.prepareForUseImpl(), moa.classifiers.meta.AccuracyWeightedEnsemble.processChunk(), moa.classifiers.meta.AccuracyUpdatedEnsemble.processChunk(), moa.classifiers.drift.SingleClassifierDrift.resetLearningImpl(), moa.classifiers.meta.OzaBoostAdwin.resetLearningImpl(), moa.classifiers.meta.OzaBoost.resetLearningImpl(), moa.classifiers.meta.OzaBagASHT.resetLearningImpl(), moa.classifiers.meta.OzaBagAdwin.resetLearningImpl(), moa.classifiers.meta.OzaBag.resetLearningImpl(), moa.classifiers.meta.OCBoost.resetLearningImpl(), moa.classifiers.meta.LeveragingBag.resetLearningImpl(), moa.classifiers.active.ActiveClassifier.resetLearningImpl(), moa.classifiers.meta.AccuracyWeightedEnsemble.resetLearningImpl(), moa.streams.generators.multilabel.MetaMultilabelGenerator.restart(), moa.classifiers.drift.SingleClassifierDrift.trainOnInstanceImpl(), moa.classifiers.meta.LimAttClassifier.trainOnInstanceImpl(), and moa.classifiers.trees.DecisionStump.trainOnInstanceImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

String moa.options.AbstractOptionHandler.getPurposeString ( )

Gets the purpose of this object.

Returns:
the string with the purpose of this object

Implements moa.options.OptionHandler.

Reimplemented in moa.classifiers.AbstractClassifier, moa.classifiers.active.ActiveClassifier, moa.classifiers.bayes.NaiveBayes, moa.classifiers.bayes.NaiveBayesMultinomial, moa.classifiers.drift.SingleClassifierDrift, moa.classifiers.functions.MajorityClass, moa.classifiers.functions.Perceptron, moa.classifiers.functions.SGD, moa.classifiers.functions.SPegasos, moa.classifiers.meta.AccuracyUpdatedEnsemble, moa.classifiers.meta.AccuracyWeightedEnsemble, moa.classifiers.meta.LeveragingBag, moa.classifiers.meta.LimAttClassifier, moa.classifiers.meta.OCBoost, moa.classifiers.meta.OzaBag, moa.classifiers.meta.OzaBagAdwin, moa.classifiers.meta.OzaBagASHT, moa.classifiers.meta.OzaBoost, moa.classifiers.meta.OzaBoostAdwin, moa.classifiers.meta.WeightedMajorityAlgorithm, moa.classifiers.meta.WEKAClassifier, moa.classifiers.trees.AdaHoeffdingOptionTree, moa.classifiers.trees.ASHoeffdingTree, moa.classifiers.trees.DecisionStump, moa.classifiers.trees.HoeffdingAdaptiveTree, moa.classifiers.trees.HoeffdingOptionTree, moa.classifiers.trees.HoeffdingTree, moa.classifiers.trees.LimAttHoeffdingTree, moa.classifiers.trees.RandomHoeffdingTree, moa.clusterers.AbstractClusterer, moa.clusterers.WekaClusteringAlgorithm, moa.streams.ArffFileStream, moa.streams.clustering.FileStream, moa.streams.clustering.RandomRBFGeneratorEvents, moa.streams.ConceptDriftRealStream, moa.streams.ConceptDriftStream, moa.streams.FilteredStream, moa.streams.filters.AddNoiseFilter, moa.streams.generators.AgrawalGenerator, moa.streams.generators.HyperplaneGenerator, moa.streams.generators.LEDGenerator, moa.streams.generators.LEDGeneratorDrift, moa.streams.generators.multilabel.MetaMultilabelGenerator, moa.streams.generators.multilabel.MultilabelArffFileStream, moa.streams.generators.RandomRBFGenerator, moa.streams.generators.RandomRBFGeneratorDrift, moa.streams.generators.RandomTreeGenerator, moa.streams.generators.SEAGenerator, moa.streams.generators.STAGGERGenerator, moa.streams.generators.WaveformGenerator, moa.streams.generators.WaveformGeneratorDrift, moa.tasks.CacheShuffledStream, 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.

Definition at line 52 of file AbstractOptionHandler.java.

void moa.options.AbstractOptionHandler.prepareClassOptions ( TaskMonitor  monitor,
ObjectRepository  repository 
) [protected]

Prepares the options of this class.

Parameters:
monitorthe TaskMonitor to use
repositorythe ObjectRepository to use

Definition at line 139 of file AbstractOptionHandler.java.

Referenced by moa.tasks.AbstractTask.doTask(), and moa.options.AbstractOptionHandler.prepareForUse().

Here is the call graph for this function:

Here is the caller graph for this function:

void moa.options.AbstractOptionHandler.prepareForUse ( TaskMonitor  monitor,
ObjectRepository  repository 
)

This method prepares this object for use.

Parameters:
monitorthe TaskMonitor to use
repositorythe ObjectRepository to use

Implements moa.options.OptionHandler.

Definition at line 74 of file AbstractOptionHandler.java.

Here is the call graph for this function:

void moa.options.AbstractOptionHandler.prepareForUse ( )

This method prepares this object for use.

Implements moa.options.OptionHandler.

Definition at line 69 of file AbstractOptionHandler.java.

Referenced by moa.gui.BatchCmd.BatchCmd(), moa.gui.visualization.RunVisualizer.RunVisualizer(), and moa.streams.filters.AbstractStreamFilter.setInputStream().

Here is the caller graph for this function:

abstract void moa.options.AbstractOptionHandler.prepareForUseImpl ( TaskMonitor  monitor,
ObjectRepository  repository 
) [protected, pure 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.

Parameters:
monitorthe TaskMonitor to use
repositorythe ObjectRepository to use

Implemented in moa.classifiers.AbstractClassifier, moa.classifiers.core.attributeclassobservers.BinaryTreeNumericAttributeClassObserver, moa.classifiers.core.attributeclassobservers.GaussianNumericAttributeClassObserver, moa.classifiers.core.attributeclassobservers.GreenwaldKhannaNumericAttributeClassObserver, moa.classifiers.core.attributeclassobservers.NominalAttributeClassObserver, moa.classifiers.core.attributeclassobservers.NullAttributeClassObserver, moa.classifiers.core.attributeclassobservers.VFMLNumericAttributeClassObserver, moa.classifiers.core.driftdetection.DDM, moa.classifiers.core.driftdetection.EDDM, moa.classifiers.core.splitcriteria.GiniSplitCriterion, moa.classifiers.core.splitcriteria.InfoGainSplitCriterion, moa.classifiers.meta.AccuracyUpdatedEnsemble, moa.classifiers.meta.AccuracyWeightedEnsemble, moa.classifiers.meta.WeightedMajorityAlgorithm, moa.clusterers.AbstractClusterer, moa.evaluation.EWMAClassificationPerformanceEvaluator, moa.evaluation.FadingFactorClassificationPerformanceEvaluator, moa.evaluation.WindowClassificationPerformanceEvaluator, moa.evaluation.WindowRegressionPerformanceEvaluator, moa.streams.ArffFileStream, moa.streams.clustering.FileStream, moa.streams.clustering.RandomRBFGeneratorEvents, moa.streams.ConceptDriftRealStream, moa.streams.ConceptDriftStream, moa.streams.FilteredStream, moa.streams.filters.AbstractStreamFilter, moa.streams.generators.AgrawalGenerator, moa.streams.generators.HyperplaneGenerator, moa.streams.generators.LEDGenerator, moa.streams.generators.LEDGeneratorDrift, moa.streams.generators.multilabel.MetaMultilabelGenerator, moa.streams.generators.RandomRBFGenerator, moa.streams.generators.RandomTreeGenerator, moa.streams.generators.SEAGenerator, moa.streams.generators.STAGGERGenerator, moa.streams.generators.WaveformGenerator, moa.streams.generators.WaveformGeneratorDrift, and moa.tasks.AbstractTask.

Referenced by moa.options.AbstractOptionHandler.prepareForUse().

Here is the caller graph for this function:


Member Data Documentation


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