weka.core
Interface OptionHandler

All Known Implementing Classes:
AbstractTimeSeriesFilter, AdaBoostM1, AddFilter, AdditiveRegression, ADTree, Apriori, AttributeExpressionFilter, AttributeFilter, AttributeSelectedClassifier, AttributeSelectionFilter, AttributeTypeFilter, AveragingResultProducer, Bagging, BestFirst, BVDecompose, CfsSubsetEval, CheckClassifier, ChiSquaredAttributeEval, ClassificationViaRegression, ClassifierSplitEvaluator, ClassifierSubsetEval, Cobweb, CopyAttributesFilter, CostSensitiveClassifier, CrossValidationResultProducer, CSVResultListener, CVParameterSelection, DatabaseResultProducer, DecisionTable, DiscretizeFilter, DistributionMetaClassifier, DistributionMetaClusterer, DynamicReductDiscretize, EM, ExhaustiveSearch, Experiment, FilteredClassifier, FirstOrderFilter, ForwardSelection, GainRatioAttributeEval, GeneticSearch, IBk, InfoGainAttributeEval, InstanceFilter, InstanceQuery, J48, KStar, LearningRateResultProducer, LEM2, LinearRegression, Logistic, LogitBoost, LWR, M5Prime, MakeIndicatorFilter, MergeTwoValuesFilter, MetaCost, MultiClassClassifier, MultiScheme, NaiveBayes, NeuralNetwork, NominalToBinaryFilter, NumericTransformFilter, OneR, PairedTTester, PART, PrincipalComponents, RaceSearch, RandomizeFilter, RandomSearch, RandomSplitResultProducer, Ranker, RankSearch, RegressionByDiscretization, RegressionSplitEvaluator, ReliefFAttributeEval, ResampleFilter, RSDiscretize, RSNumerizeNominal, RuleClassifier, SimpleKMeans, SMO, SplitDatasetFilter, SpreadSubsampleFilter, Stacking, StringToNominalFilter, SwapAttributeValuesFilter, SymmetricalUncertAttributeEval, ThresholdSelector, VFI, VotedPerceptron, Voter, WrapperSubsetEval

public interface OptionHandler

Interface to something that understands options.

Version:
$Revision: 1.4 $
Author:
Eibe Frank (eibe@cs.waikato.ac.nz)
, Len Trigg (trigg@cs.waikato.ac.nz)

Method Summary
 String[] getOptions()
          Gets the current option settings for the OptionHandler.
 Enumeration listOptions()
          Returns an enumeration of all the available options.
 void setOptions(String[] options)
          Sets the OptionHandler's options using the given list.
 

Method Detail

listOptions

public Enumeration listOptions()
Returns an enumeration of all the available options.

Returns:
an enumeration of all available options

setOptions

public void setOptions(String[] options)
                throws Exception
Sets the OptionHandler's options using the given list. All options will be set (or reset) during this call (i.e. incremental setting of options is not possible).

Parameters:
options - the list of options as an array of strings
Throws:
Exception - if an option is not supported

getOptions

public String[] getOptions()
Gets the current option settings for the OptionHandler.

Returns:
the list of current option settings as an array of strings