All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.core.CheckOptionHandler
java.lang.Object
|
+----weka.core.CheckOptionHandler
- public class CheckOptionHandler
- extends Object
Simple command line checking of classes that implement OptionHandler.
Usage:
CheckOptionHandler -W optionHandlerClassName -- test options
Valid options are:
-W classname
The name of a class implementing an OptionHandler.
Options after -- are used as user options in testing the
OptionHandler
- Version:
- $Revision: 1.5 $
- Author:
- Len Trigg (trigg@cs.waikato.ac.nz)
-
CheckOptionHandler()
-
-
checkOptionHandler(OptionHandler, String[])
- Runs some diagnostic tests on an optionhandler object.
-
compareOptions(String[], String[])
- Compares the two given sets of options.
-
main(String[])
-
Main method for using the CheckOptionHandler.
Valid options are:
-W classname
The name of the class implementing an OptionHandler.
-
printOptions(String[])
- Prints the given options to a string.
CheckOptionHandler
public CheckOptionHandler()
printOptions
public static String printOptions(String options[])
- Prints the given options to a string.
- Parameters:
- options - the options to be joined
compareOptions
public static void compareOptions(String options1[],
String options2[]) throws Exception
- Compares the two given sets of options.
- Parameters:
- options1 - the first set of options
- options2 - the second set of options
- Throws: Exception
- if the two sets of options differ
checkOptionHandler
public static void checkOptionHandler(OptionHandler oh,
String options[]) throws Exception
- Runs some diagnostic tests on an optionhandler object. Output is
printed to System.out.
- Parameters:
- oh - the OptionHandler of interest
- options - an array of strings containing some test command
line options
- Throws: Exception
- if the option handler fails any of the tests.
main
public static void main(String args[])
- Main method for using the CheckOptionHandler.
Valid options are:
-W classname
The name of the class implementing an OptionHandler.
Options after -- are used as user options in testing the
OptionHandler
- Parameters:
- the - options to the CheckOptionHandler
All Packages Class Hierarchy This Package Previous Next Index WEKA's home