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 java.lang.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.7 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)

Constructor Index

 o CheckOptionHandler()
 

Method Index

 o checkOptionHandler(OptionHandler, String[])
Runs some diagnostic tests on an optionhandler object.
 o compareOptions(String[], String[])
Compares the two given sets of options.
 o main(String[])
Main method for using the CheckOptionHandler.

Valid options are:

-W classname
The name of the class implementing an OptionHandler.

 o printOptions(String[])
Prints the given options to a string.

Constructor Detail

 o CheckOptionHandler
public CheckOptionHandler()

Method Detail

 o printOptions
public static java.lang.String printOptions(java.lang.String options[])
          Prints the given options to a string.
Parameters:
options - the options to be joined
 o compareOptions
public static void compareOptions(java.lang.String options1[],
                                  java.lang.String options2[]) throws java.lang.Exception
          Compares the two given sets of options.
Parameters:
options1 - the first set of options
options2 - the second set of options
Throws:
java.lang.Exception - if the two sets of options differ
 o checkOptionHandler
public static void checkOptionHandler(OptionHandler oh,
                                      java.lang.String options[]) throws java.lang.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:
java.lang.Exception - if the option handler fails any of the tests.
 o main
public static void main(java.lang.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