Package weka.associations
Class SingleAssociatorEnhancer
java.lang.Object
weka.associations.AbstractAssociator
weka.associations.SingleAssociatorEnhancer
- All Implemented Interfaces:
Serializable
,Cloneable
,Associator
,CapabilitiesHandler
,CapabilitiesIgnorer
,CommandlineRunnable
,OptionHandler
,RevisionHandler
- Direct Known Subclasses:
FilteredAssociator
Abstract utility class for handling settings common to meta associators that
use a single base associator.
- Version:
- $Revision: 15519 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz), FracPete (fracpete at waikato dot ac dot nz)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the tip text for this propertyGet the associator used as the base associator.Returns default capabilities of the base associator.String[]
Gets the current settings of the associator.Returns an enumeration describing the available options.void
setAssociator
(Associator value) Set the base associator.void
setOptions
(String[] options) Parses a given list of options.Methods inherited from class weka.associations.AbstractAssociator
doNotCheckCapabilitiesTipText, forName, getDoNotCheckCapabilities, getRevision, makeCopies, makeCopy, postExecution, preExecution, run, runAssociator, setDoNotCheckCapabilities
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface weka.associations.Associator
buildAssociations
-
Constructor Details
-
SingleAssociatorEnhancer
public SingleAssociatorEnhancer()
-
-
Method Details
-
listOptions
Returns an enumeration describing the available options.- Specified by:
listOptions
in interfaceOptionHandler
- Overrides:
listOptions
in classAbstractAssociator
- Returns:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options. Valid options are:-W classname
Specify the full class name of the base associator.Options after -- are passed to the designated associator.
- Specified by:
setOptions
in interfaceOptionHandler
- Overrides:
setOptions
in classAbstractAssociator
- 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 associator.- Specified by:
getOptions
in interfaceOptionHandler
- Overrides:
getOptions
in classAbstractAssociator
- Returns:
- an array of strings suitable for passing to setOptions
-
associatorTipText
Returns the tip text for this property- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setAssociator
Set the base associator.- Parameters:
value
- the associator to use.
-
getAssociator
Get the associator used as the base associator.- Returns:
- the currently used associator
-
getCapabilities
Returns default capabilities of the base associator.- Specified by:
getCapabilities
in interfaceAssociator
- Specified by:
getCapabilities
in interfaceCapabilitiesHandler
- Overrides:
getCapabilities
in classAbstractAssociator
- Returns:
- the capabilities of the base associator
- See Also:
-