|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.core.CheckOptionHandler
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
Constructor Summary | |
CheckOptionHandler()
|
Method Summary | |
static void |
checkOptionHandler(OptionHandler oh,
java.lang.String[] options)
Runs some diagnostic tests on an optionhandler object. |
static void |
compareOptions(java.lang.String[] options1,
java.lang.String[] options2)
Compares the two given sets of options. |
static void |
main(java.lang.String[] args)
Main method for using the CheckOptionHandler. |
static java.lang.String |
printOptions(java.lang.String[] options)
Prints the given options to a string. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CheckOptionHandler()
Method Detail |
public static java.lang.String printOptions(java.lang.String[] options)
options
- the options to be joinedpublic static void compareOptions(java.lang.String[] options1, java.lang.String[] options2) throws java.lang.Exception
options1
- the first set of optionsoptions2
- the second set of options
java.lang.Exception
- if the two sets of options differpublic static void checkOptionHandler(OptionHandler oh, java.lang.String[] options) throws java.lang.Exception
oh
- the OptionHandler of interestoptions
- an array of strings containing some test command
line options
java.lang.Exception
- if the option handler fails any of the tests.public static void main(java.lang.String[] args)
Valid options are:
-W classname
The name of the class implementing an OptionHandler.
Options after -- are used as user options in testing the OptionHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London