public class CheckOptionHandler extends Check
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 and Description |
---|
CheckOptionHandler() |
Modifier and Type | Method and Description |
---|---|
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<Option> |
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)
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeCopy
public java.util.Enumeration<Option> 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 stringsjava.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()
public java.lang.String getRevision()
public static void main(java.lang.String[] args)
args
- the options to the CheckOptionHandler