Class AbstractWekaSetupGenerator<T>

    • Field Detail

      • m_OutputArray

        protected boolean m_OutputArray
        whether to output an array or a sequence of setups.
      • m_Generator

        protected weka.core.SetupGenerator m_Generator
        the underlying setup generator.
      • m_Setups

        protected List<T> m_Setups
        all the setups.
    • Constructor Detail

      • AbstractWekaSetupGenerator

        public AbstractWekaSetupGenerator()
    • Method Detail

      • getDefaultSetup

        protected abstract T getDefaultSetup()
        Returns the default setup. Used in the options as default value.
        Returns:
        the default setup
        See Also:
        defineOptions()
      • getDefaultParameters

        protected abstract weka.core.setupgenerator.AbstractParameter[] getDefaultParameters()
        Returns the default parameters. Used in the options as default value.
        Returns:
        the default parameters
        See Also:
        defineOptions()
      • getDefaultSuperClass

        protected abstract Class getDefaultSuperClass()
        Returns the default super class, the same as the type "T" when defining the generics.
        Returns:
        the default super class
      • setParameters

        public void setParameters​(weka.core.setupgenerator.AbstractParameter[] value)
        Sets the setup parameters.
        Parameters:
        value - the parameters
      • getParameters

        public weka.core.setupgenerator.AbstractParameter[] getParameters()
        Returns the setup parameters.
        Returns:
        the parameters
      • parametersTipText

        public String parametersTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setOutputArray

        public void setOutputArray​(boolean value)
        Sets whether to output an array or a sequence of classifier setups.
        Parameters:
        value - if true then an array will be output
      • getOutputArray

        public boolean getOutputArray()
        Returns whether to output an array or a sequence of classifier setups.
        Returns:
        true if an array is output
      • outputArrayTipText

        public String outputArrayTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • generates

        public Class[] generates()
        Returns the class of objects that it generates.
        Returns:
        weka.classifiers.Classifier.class
      • doExecute

        protected String doExecute()
        Executes the flow item.
        Specified by:
        doExecute in class AbstractActor
        Returns:
        null if everything is fine, otherwise error message
      • output

        public Token output()
        Returns the generated token.
        Returns:
        the generated token
      • hasPendingOutput

        public boolean hasPendingOutput()
        Checks whether there is pending output to be collected after executing the flow item.
        Returns:
        true if there is pending output
      • wrapUp

        public void wrapUp()
        Cleans up after the execution has finished. Graphical output is left untouched.
        Specified by:
        wrapUp in interface Actor
        Overrides:
        wrapUp in class AbstractActor