Package weka.core
Class Option
java.lang.Object
weka.core.Option
- All Implemented Interfaces:
RevisionHandler
Class to store information about an option.
Typical usage:
Option myOption = new Option("Uses extended mode.", "E", 0, "-E"));
- Version:
- $Revision: 1.7 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
-
Constructor Details
-
Option
Creates new option with the given parameters.- Parameters:
description
- the option's descriptionname
- the option's namenumArguments
- the number of arguments
-
-
Method Details
-
description
Returns the option's description.- Returns:
- the option's description
-
name
Returns the option's name.- Returns:
- the option's name
-
numArguments
public int numArguments()Returns the option's number of arguments.- Returns:
- the option's number of arguments
-
synopsis
Returns the option's synopsis.- Returns:
- the option's synopsis
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-