程序包 weka.core

类 CheckGOE

java.lang.Object
weka.core.Check
weka.core.CheckGOE
所有已实现的接口:
OptionHandler, RevisionHandler

public class CheckGOE extends Check
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)
版本:
$Revision: 1.4 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
  • 构造器详细资料

    • CheckGOE

      public CheckGOE()
      default constructor
  • 方法详细资料

    • listOptions

      public Enumeration listOptions()
      Returns an enumeration describing the available options.
      指定者:
      listOptions 在接口中 OptionHandler
      覆盖:
      listOptions 在类中 Check
      返回:
      an enumeration of all the available options.
    • setOptions

      public void setOptions(String[] options) throws Exception
      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)
      指定者:
      setOptions 在接口中 OptionHandler
      覆盖:
      setOptions 在类中 Check
      参数:
      options - the list of options as an array of strings
      抛出:
      Exception - if an option is not supported
    • getOptions

      public String[] getOptions()
      Gets the current settings of the object.
      指定者:
      getOptions 在接口中 OptionHandler
      覆盖:
      getOptions 在类中 Check
      返回:
      an array of strings suitable for passing to setOptions
    • setObject

      public void setObject(Object value)
      Set the object to work on..
      参数:
      value - the object to use.
    • getObject

      public Object getObject()
      Get the object used in the tests.
      返回:
      the object used in the tests.
    • setIgnoredProperties

      public void setIgnoredProperties(String value)
      Sets the properties to ignore in checkToolTips(). Comma-separated list.
      参数:
      value - the list of properties
      另请参阅:
    • getIgnoredProperties

      public String getIgnoredProperties()
      Get the ignored properties used in checkToolTips() as comma-separated list (sorted).
      返回:
      the ignored properties
      另请参阅:
    • getSuccess

      public boolean getSuccess()
      returns the success of the tests
      返回:
      true if the tests were successful
    • checkGlobalInfo

      public boolean checkGlobalInfo()
      checks whether the object declares a globalInfo method.
      返回:
      true if the test was passed
    • checkToolTips

      public boolean checkToolTips()
      checks whether the object declares tip text method for all its properties.
      返回:
      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).
      指定者:
      doTests 在类中 Check
    • getRevision

      public String getRevision()
      Returns the revision string.
      返回:
      the revision
    • main

      public static void main(String[] args)
      Main method for using the CheckGOE.
      参数:
      args - the options to the CheckGOE