|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.core.Check
weka.core.CheckOptionHandler
public class CheckOptionHandler
Simple command line checking of classes that implement OptionHandler.
Usage:
CheckOptionHandler -W optionHandlerClassName -- test options
Valid options are:
-D Turn on debugging output.
-S Silent mode - prints nothing to stdout.
-W Full name of the OptionHandler analysed. eg: weka.classifiers.rules.ZeroR (default weka.classifiers.rules.ZeroR)
Options specific to option handler weka.classifiers.rules.ZeroR:
-D If set, classifier is run in debug mode and may output additional info to the consoleOptions after -- are used as user options in testing the OptionHandler
Constructor Summary | |
---|---|
CheckOptionHandler()
|
Method Summary | |
---|---|
boolean |
checkCanonicalUserOptions()
checks whether the user-supplied options stay the same after settting, getting and re-setting again |
boolean |
checkDefaultOptions()
checks whether the default options can be processed completely or some invalid options are returned by the getOptions() method. |
boolean |
checkListOptions()
checks whether the listOptions method works |
boolean |
checkRemainingOptions()
checks whether the user-supplied options can be processed completely or some "left-over" options remain |
boolean |
checkResettingOptions()
checks whether the optionhandler can be re-setted again to default options after the user-supplied options have been set. |
boolean |
checkSetOptions()
checks whether the user-supplied options can be processed at all |
void |
doTests()
Runs some diagnostic tests on an optionhandler object. |
OptionHandler |
getOptionHandler()
Get the OptionHandler used in the tests. |
java.lang.String[] |
getOptions()
Gets the current settings of the CheckClassifier. |
java.lang.String |
getRevision()
Returns the revision string. |
boolean |
getSuccess()
returns the success of the tests |
java.lang.String[] |
getUserOptions()
Gets the current user-supplied options (creates a copy) |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(java.lang.String[] args)
Main method for using the CheckOptionHandler. |
void |
setOptionHandler(OptionHandler value)
Set the OptionHandler to work on.. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
void |
setUserOptions(java.lang.String[] value)
Sets the user-supplied options (creates a copy) |
Methods inherited from class weka.core.Check |
---|
getDebug, getSilent, setDebug, setSilent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckOptionHandler()
Method Detail |
---|
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class Check
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-D Turn on debugging output.
-S Silent mode - prints nothing to stdout.
-W Full name of the OptionHandler analysed. eg: weka.classifiers.rules.ZeroR (default weka.classifiers.rules.ZeroR)
Options specific to option handler weka.classifiers.rules.ZeroR:
-D If set, classifier is run in debug mode and may output additional info to the console
setOptions
in interface OptionHandler
setOptions
in class Check
options
- the list of options as an array of strings
java.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Check
public void setOptionHandler(OptionHandler value)
value
- the OptionHandler to use.public OptionHandler getOptionHandler()
public void setUserOptions(java.lang.String[] value)
value
- the user-supplied options to usepublic java.lang.String[] getUserOptions()
public boolean getSuccess()
public boolean checkListOptions()
public boolean checkSetOptions()
public boolean checkDefaultOptions()
public boolean checkRemainingOptions()
public boolean checkCanonicalUserOptions()
public boolean checkResettingOptions()
public void doTests()
doTests
in class Check
public java.lang.String getRevision()
public static void main(java.lang.String[] args)
args
- the options to the CheckOptionHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |