adams.flow.condition.bool
Class WekaCapabilities
java.lang.Object
adams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.condition.bool.AbstractBooleanCondition
adams.flow.condition.bool.AbstractAttributeCapabilities
adams.flow.condition.bool.WekaCapabilities
- All Implemented Interfaces:
- Debuggable, Destroyable, OptionHandler, ShallowCopySupporter<BooleanCondition>, SizeOfHandler, BooleanCondition, Serializable
public class WekaCapabilities
- extends AbstractAttributeCapabilities
Filters weka.core.Instance and weka.core.Instances objects based on defined capabilities. Only objects that match the capabilities will be passed on, all others get discarded.
The matching sense can be inverted as well.
Valid options are:
-D <int> (property: debugLevel)
The greater the number the more additional info the scheme may output to
the console (0 = off).
default: 0
minimum: 0
-capability <NOMINAL_ATTRIBUTES|BINARY_ATTRIBUTES|UNARY_ATTRIBUTES|EMPTY_NOMINAL_ATTRIBUTES|NUMERIC_ATTRIBUTES|DATE_ATTRIBUTES|STRING_ATTRIBUTES|RELATIONAL_ATTRIBUTES|MISSING_VALUES|NO_CLASS|NOMINAL_CLASS|BINARY_CLASS|UNARY_CLASS|EMPTY_NOMINAL_CLASS|NUMERIC_CLASS|DATE_CLASS|STRING_CLASS|RELATIONAL_CLASS|MISSING_CLASS_VALUES|ONLY_MULTIINSTANCE> [-capability ...] (property: capabilities)
The capabilities that the objects must match.
default:
-invert (property: invert)
If set to true, then objects that failed the capabilities test will pass
through and all others get discarded.
- Version:
- $Revision: 4853 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
| Methods inherited from class adams.core.option.AbstractOptionHandler |
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
WekaCapabilities
public WekaCapabilities()
globalInfo
public String globalInfo()
- Returns a string describing the object.
- Specified by:
globalInfo in class AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
accepts
public Class[] accepts()
- Returns the class that the consumer accepts.
- Specified by:
accepts in interface BooleanCondition- Specified by:
accepts in class AbstractAttributeCapabilities
- Returns:
- Unknown
doEvaluate
protected boolean doEvaluate(AbstractActor owner,
Token token)
- Evaluates whether to executed the "then" or "else" branch.
- Specified by:
doEvaluate in class AbstractAttributeCapabilities
- Parameters:
owner - the owning IfThenElse actortoken - the current token passing through the IfThenElse actor
- Returns:
- true if data matches capabilities
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.