Class 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
    • 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 interface adams.flow.container.Container

        addAdditionalName, addHelp, addHelp, addHelp, getClone, getHelp, getValue, getValue, hasHelp, hasValue, removeAdditionalName, setValue, stored, toSpreadSheet, toString
      • Methods inherited from interface adams.core.GlobalInfoSupporter

        globalInfo
    • 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 instance
        instOut - the output instance
        post - 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 instances
        dataIn - the input instances
        post - the post-processor
    • Method Detail

      • initHelp

        protected void initHelp()
        Initializes the help strings.
        Overrides:
        initHelp in class adams.flow.container.AbstractContainer
      • names

        public Iterator<String> names()
        Returns all value names that can be used (theoretically).
        Specified by:
        names in interface adams.flow.container.Container
        Specified by:
        names in class adams.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 interface adams.flow.container.Container
        Specified by:
        isValid in class adams.flow.container.AbstractContainer
        Returns:
        true if all the necessary values are available