weka.core
Interface OptionHandler

All Known Implementing Classes:
AbstractFileSaver, AbstractTimeSeries, AdaBoostM1, Add, AddCluster, AddExpression, AdditiveRegression, AddNoise, ADTree, AODE, Apriori, ArffSaver, AttributeSelectedClassifier, AttributeSelection, AveragingResultProducer, Bagging, BayesNet, BayesNetEstimator, BayesNetGenerator, BestFirst, BIFReader, BIRCHCluster, BMAEstimator, BVDecompose, BVDecomposeSegCVSub, C45Saver, CfsSubsetEval, ChangeDateFormat, CheckClassifier, ChiSquaredAttributeEval, CISearchAlgorithm, ClassificationViaRegression, Classifier, ClassifierSplitEvaluator, ClassifierSubsetEval, ClassOrder, ClusterMembership, Cobweb, ComplementNaiveBayes, ConjunctiveRule, Copy, CostSensitiveClassifier, CostSensitiveClassifierSplitEvaluator, CrossValidationResultProducer, CSVResultListener, CSVSaver, CVParameterSelection, DatabaseLoader, DatabaseResultProducer, DatabaseSaver, DecisionStump, DecisionTable, Decorate, Discretize, Discretize, EM, ExhaustiveSearch, Experiment, FarthestFirst, FilteredClassifier, FirstOrder, FromFile, GainRatioAttributeEval, GeneticSearch, GeneticSearch, GeneticSearch, GlobalScoreSearchAlgorithm, Grading, GreedyStepwise, HillClimber, HillClimber, HyperPipes, IB1, IBk, ICSSearchAlgorithm, Id3, InfoGainAttributeEval, InstanceQuery, InstancesResultListener, IteratedSingleClassifierEnhancer, J48, JRip, K2, K2, KStar, LBR, LearningRateResultProducer, LeastMedSq, LinearRegression, LMT, LMTNode, LocalScoreSearchAlgorithm, Logistic, LogisticBase, LogitBoost, LWL, M5Base, M5P, M5Rules, MakeDensityBasedClusterer, MakeIndicator, MergeTwoValues, MetaCost, MultiBoostAB, MultiClassClassifier, MultilayerPerceptron, MultiNomialBMAEstimator, MultipleClassifiersCombiner, MultiScheme, NaiveBayes, NaiveBayes, NaiveBayesMultinomial, NaiveBayesSimple, NaiveBayesUpdateable, NBTree, NNge, NominalToBinary, NominalToBinary, Normalize, NumericTransform, OneR, OneRAttributeEval, OrdinalClassClassifier, PaceRegression, PairedCorrectedTTester, PairedTTester, PART, PKIDiscretize, PreConstructedLinearModel, PredictiveApriori, PrincipalComponents, Prism, RacedIncrementalLogitBoost, RaceSearch, RandomCommittee, RandomForest, RandomizableClassifier, RandomizableIteratedSingleClassifierEnhancer, RandomizableMultipleClassifiersCombiner, RandomizableSingleClassifierEnhancer, Randomize, RandomProjection, RandomSearch, RandomSplitResultProducer, RandomTree, Ranker, RankSearch, RBFNetwork, RDG1, RegressionByDiscretization, RegressionSplitEvaluator, ReliefFAttributeEval, RemoteExperiment, Remove, RemoveFolds, RemoveMisclassified, RemovePercentage, RemoveRange, RemoveType, RemoveUseless, RemoveWithValues, RepeatedHillClimber, RepeatedHillClimber, REPTree, Resample, Resample, Ridor, RuleNode, SearchAlgorithm, SerializedInstancesSaver, SimpleEstimator, SimpleKMeans, SimpleLinearRegression, SimpleLogistic, SimulatedAnnealing, SimulatedAnnealing, SingleClassifierEnhancer, SMO, SMOreg, SpreadSubsample, Stacking, StackingC, StratifiedRemoveFolds, StringToNominal, StringToWordVector, SVMAttributeEval, SwapValues, SymmetricalUncertAttributeEval, TabuSearch, TabuSearch, TAN, TAN, Tertius, ThresholdSelector, TimeSeriesDelta, TimeSeriesTranslate, UserClassifier, VFI, Vote, VotedPerceptron, Winnow, WrapperSubsetEval, ZeroR

public interface OptionHandler

Interface to something that understands options.

Version:
$Revision: 1.7 $
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

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

Returns:
an enumeration of all available options.

setOptions

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

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

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