Package adams.flow.container
Class PostProcessingContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.PostProcessingContainer
-
- All Implemented Interfaces:
adams.core.CloneHandler<adams.flow.container.Container>
,adams.core.GlobalInfoSupporter
,adams.data.spreadsheet.SpreadSheetSupporter
,adams.flow.container.Container
,adams.flow.container.ContainerWithReport
,Serializable
public class PostProcessingContainer extends adams.flow.container.AbstractContainer implements adams.flow.container.ContainerWithReport
Container used by post-processors.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
VALUE_INPUT_INSTANCE
the identifier for the input instance.static String
VALUE_INPUT_INSTANCES
the identifier for the input instances.static String
VALUE_OUTPUT_INSTANCE
the identifier for the output instance.static String
VALUE_OUTPUT_INSTANCES
the identifier for the output instances.static String
VALUE_POSTPROCESSOR
the identifier for the post-processor.
-
Constructor Summary
Constructors Constructor Description PostProcessingContainer()
Default constructor.PostProcessingContainer(weka.core.Instance instIn, weka.core.Instance instOut, AbstractPostProcessor post)
Initializes the container with the WEKA instance and the post-processor.PostProcessingContainer(weka.core.Instances dataIn, weka.core.Instances dataOut, AbstractPostProcessor post)
Initializes the container with the WEKA instances and the post-processor.
-
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).-
Methods inherited from class adams.flow.container.AbstractContainer
addAdditionalName, addHelp, addHelp, addHelp, checkDefaultConstructor, getClone, getHelp, getValue, getValue, globalInfo, hasHelp, hasValue, isValidName, removeAdditionalName, setValue, store, stored, toSpreadSheet, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
VALUE_OUTPUT_INSTANCE
public static final String VALUE_OUTPUT_INSTANCE
the identifier for the output instance.- See Also:
- Constant Field Values
-
VALUE_OUTPUT_INSTANCES
public static final String VALUE_OUTPUT_INSTANCES
the identifier for the output instances.- See Also:
- Constant Field Values
-
VALUE_INPUT_INSTANCE
public static final String VALUE_INPUT_INSTANCE
the identifier for the input instance.- See Also:
- Constant Field Values
-
VALUE_INPUT_INSTANCES
public static final String VALUE_INPUT_INSTANCES
the identifier for the input instances.- See Also:
- Constant Field Values
-
VALUE_POSTPROCESSOR
public static final String VALUE_POSTPROCESSOR
the identifier for the post-processor.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PostProcessingContainer
public PostProcessingContainer()
Default constructor.
-
PostProcessingContainer
public PostProcessingContainer(weka.core.Instance instIn, weka.core.Instance instOut, AbstractPostProcessor post)
Initializes the container with the WEKA instance and the post-processor.- Parameters:
instIn
- the input instanceinstOut
- the output instancepost
- the associated post-processor
-
PostProcessingContainer
public PostProcessingContainer(weka.core.Instances dataIn, weka.core.Instances dataOut, AbstractPostProcessor post)
Initializes the container with the WEKA instances and the post-processor.- Parameters:
dataOut
- the output instancesdataIn
- the input instancespost
- the post-processor
-
-
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
-
-