Package weka.core
Class CheckGOE
java.lang.Object
weka.core.Check
weka.core.CheckGOE
- All Implemented Interfaces:
OptionHandler,RevisionHandler
Simple command line checking of classes that are editable in the GOE.
Usage:
CheckGOE -W classname -- test options
Valid options are:
-D Turn on debugging output.
-S Silent mode - prints nothing to stdout.
-ignored <comma-separated list of properties> Skipped properties. (default: capabilities,options)
-W Full name of the class analysed. eg: weka.classifiers.rules.ZeroR (default weka.classifiers.rules.ZeroR)
- Version:
- $Revision: 11726 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanchecks whether the object declares a globalInfo method.booleanchecks whether the object declares tip text method for all its properties.voiddoTests()Runs some diagnostic tests on the object.Get the ignored properties used in checkToolTips() as comma-separated list (sorted).Get the object used in the tests.String[]Gets the current settings of the object.Returns the revision string.booleanreturns the success of the testsReturns an enumeration describing the available options.static voidMain method for using the CheckGOE.voidsetIgnoredProperties(String value) Sets the properties to ignore in checkToolTips().voidSet the object to work on..voidsetOptions(String[] options) Parses a given list of options.
-
Constructor Details
-
CheckGOE
public CheckGOE()default constructor
-
-
Method Details
-
listOptions
Returns an enumeration describing the available options.- Specified by:
listOptionsin interfaceOptionHandler- Overrides:
listOptionsin classCheck- Returns:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options. Valid options are:-D Turn on debugging output.
-S Silent mode - prints nothing to stdout.
-ignored <comma-separated list of properties> Skipped properties. (default: capabilities,options)
-W Full name of the class analysed. eg: weka.classifiers.rules.ZeroR (default weka.classifiers.rules.ZeroR)
- Specified by:
setOptionsin interfaceOptionHandler- Overrides:
setOptionsin classCheck- Parameters:
options- the list of options as an array of strings- Throws:
Exception- if an option is not supported
-
getOptions
Gets the current settings of the object.- Specified by:
getOptionsin interfaceOptionHandler- Overrides:
getOptionsin classCheck- Returns:
- an array of strings suitable for passing to setOptions
-
setObject
Set the object to work on..- Parameters:
value- the object to use.
-
getObject
Get the object used in the tests.- Returns:
- the object used in the tests.
-
setIgnoredProperties
Sets the properties to ignore in checkToolTips(). Comma-separated list.- Parameters:
value- the list of properties- See Also:
-
getIgnoredProperties
Get the ignored properties used in checkToolTips() as comma-separated list (sorted).- Returns:
- the ignored properties
- See Also:
-
getSuccess
public boolean getSuccess()returns the success of the tests- Returns:
- true if the tests were successful
-
checkGlobalInfo
public boolean checkGlobalInfo()checks whether the object declares a globalInfo method.- Returns:
- true if the test was passed
-
checkToolTips
public boolean checkToolTips()checks whether the object declares tip text method for all its properties.- Returns:
- true if the test was passed
-
doTests
public void doTests()Runs some diagnostic tests on the object. Output is printed to System.out (if not silent). -
getRevision
Returns the revision string.- Returns:
- the revision
-
main
Main method for using the CheckGOE.- Parameters:
args- the options to the CheckGOE
-