Package adams.flow.container
Class WekaFilterContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.WekaFilterContainer
-
- All Implemented Interfaces:
adams.core.CloneHandler<adams.flow.container.Container>
,adams.core.GlobalInfoSupporter
,adams.data.spreadsheet.SpreadSheetSupporter
,adams.flow.container.Container
,Serializable
public class WekaFilterContainer extends adams.flow.container.AbstractContainer
A container for filters and the filtered data.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
VALUE_DATA
the identifier for the Data.static String
VALUE_FILTER
the identifier for the Filter.static String
VALUE_INPUT
the identifier for the Input Data.
-
Constructor Summary
Constructors Constructor Description WekaFilterContainer()
Initializes the container.WekaFilterContainer(weka.filters.Filter filter, Instance data)
Initializes the container with the filter and the associated data.WekaFilterContainer(weka.filters.Filter filter, weka.core.Instance data)
Initializes the container with the filter and the associated data.WekaFilterContainer(weka.filters.Filter filter, weka.core.Instances data)
Initializes the container with the filter and the associated data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initHelp()
Initializes the help strings.boolean
isValid()
Checks whether the setup of the container is valid.Iterator<String>
names()
Returns all value names that can be used (theoretically).
-
-
-
Field Detail
-
VALUE_FILTER
public static final String VALUE_FILTER
the identifier for the Filter.- See Also:
- Constant Field Values
-
VALUE_DATA
public static final String VALUE_DATA
the identifier for the Data.- See Also:
- Constant Field Values
-
VALUE_INPUT
public static final String VALUE_INPUT
the identifier for the Input Data.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WekaFilterContainer
public WekaFilterContainer()
Initializes the container.
Only used for generating help information.
-
WekaFilterContainer
public WekaFilterContainer(weka.filters.Filter filter, weka.core.Instances data)
Initializes the container with the filter and the associated data.- Parameters:
filter
- the filterdata
- the dataset, can be null
-
WekaFilterContainer
public WekaFilterContainer(weka.filters.Filter filter, weka.core.Instance data)
Initializes the container with the filter and the associated data.- Parameters:
filter
- the filterdata
- the instance, can be null
-
WekaFilterContainer
public WekaFilterContainer(weka.filters.Filter filter, Instance data)
Initializes the container with the filter and the associated data.- Parameters:
filter
- the filterdata
- the instance, can be null
-
-
Method Detail
-
initHelp
protected void initHelp()
Initializes the help strings.- Overrides:
initHelp
in classadams.flow.container.AbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
names
in interfaceadams.flow.container.Container
- Specified by:
names
in classadams.flow.container.AbstractContainer
- Returns:
- enumeration over all possible value names
-
isValid
public boolean isValid()
Checks whether the setup of the container is valid.- Specified by:
isValid
in interfaceadams.flow.container.Container
- Specified by:
isValid
in classadams.flow.container.AbstractContainer
- Returns:
- true if all the necessary values are available
-
-