weka.core
Interface OptionHandler

All Known Implementing Classes:
AbstractTimeSeries, Add, AddCluster, AddExpression, AdditiveRegression, AddNoise, ADTree, AODE, Apriori, AttributeSelectedClassifier, AttributeSelection, AveragingResultProducer, BayesNet, BestFirst, BIRCHCluster, BVDecompose, BVDecomposeSegCVSub, CfsSubsetEval, CheckClassifier, ChiSquaredAttributeEval, Classifier, ClassifierSplitEvaluator, ClassifierSubsetEval, ClassOrder, ClusterMembership, Cobweb, ComplementNaiveBayes, ConjunctiveRule, Copy, CostSensitiveClassifier, CrossValidationResultProducer, CSVResultListener, DatabaseResultProducer, DecisionTable, Decorate, Discretize, Discretize, EM, ExhaustiveSearch, Experiment, FarthestFirst, FirstOrder, ForwardSelection, GainRatioAttributeEval, GeneticSearch, HND, IBk, InfoGainAttributeEval, InstanceQuery, J48, JRip, LearningRateResultProducer, LeastMedSq, LinearRegression, LMT, Logistic, M5Base, MakeDensityBasedClusterer, MakeIndicator, MergeTwoValues, MultiClassClassifier, MultilayerPerceptron, NaiveBayes, ND, NNge, NominalToBinary, NominalToBinary, NumericTransform, OneR, OneRAttributeEval, OrdinalClassClassifier, PaceRegression, PairedTTester, PART, PrincipalComponents, RacedIncrementalLogitBoost, RaceSearch, RandomForest, Randomize, RandomProjection, RandomSearch, RandomSplitResultProducer, RandomTree, Ranker, RankSearch, RBFNetwork, RDG1, RegressionSplitEvaluator, ReliefFAttributeEval, Remove, RemoveFolds, RemoveMisclassified, RemovePercentage, RemoveRange, RemoveType, RemoveUseless, RemoveWithValues, REPTree, Resample, Resample, Ridor, SimpleKMeans, SimpleLogistic, SMOreg, SpreadSubsample, StackingC, StratifiedRemoveFolds, StringToNominal, StringToWordVector, SVMAttributeEval, SwapValues, SymmetricalUncertAttributeEval, Tertius, ThresholdSelector, TreeBasedMultiClassClassifier, VFI, VotedPerceptron, WrapperSubsetEval

public interface OptionHandler

Interface to something that understands options.

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

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

Method Detail

listOptions

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

Returns:
an enumeration of all available options.

setOptions

public void setOptions(java.lang.String[] options)
                throws java.lang.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:
java.lang.Exception - if an option is not supported

getOptions

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

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