Class WekaFilterModelLoader

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.io.ModelFileHandler, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.SizeOfHandler, adams.flow.core.FlowContextHandler, adams.flow.core.ModelLoaderSupporter, Serializable

    public class WekaFilterModelLoader
    extends adams.flow.core.AbstractModelLoader<weka.filters.Filter>
    Model loader for Weka filters.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class adams.flow.core.AbstractModelLoader

        adams.flow.core.AbstractModelLoader.ModelLoadingType
    • Field Summary

      • Fields inherited from class adams.flow.core.AbstractModelLoader

        m_FlowContext, m_Helper, m_Model, m_ModelActor, m_ModelFile, m_ModelLoadingType, m_ModelStorage
      • Fields inherited from class adams.core.option.AbstractOptionHandler

        m_OptionManager
      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String automaticOrderInfo()
      Returns information how the model is loaded in case of AbstractModelLoader.ModelLoadingType.AUTO.
      protected weka.filters.Filter getModelFromContainer​(adams.flow.container.AbstractContainer cont, adams.core.MessageCollection errors)
      Retrieves the model from the container.
      String globalInfo()
      Returns a string describing the object.
      • Methods inherited from class adams.flow.core.AbstractModelLoader

        defineOptions, deserializeFile, getFlowContext, getModel, getModelActor, getModelFile, getModelLoadingType, getModelStorage, getQuickInfo, getQuickInfo, initialize, loadAutomatically, loadFromCallableActor, loadFromFile, loadFromStorage, modelActorTipText, modelFileTipText, modelLoadingTypeTipText, modelStorageTipText, reset, setFlowContext, setModelActor, setModelFile, setModelLoadingType, setModelStorage, unhandledContainer, unwrapModel
      • Methods inherited from class adams.core.option.AbstractOptionHandler

        cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, toCommandLine, toString
      • Methods inherited from class adams.core.logging.CustomLoggingLevelObject

        setLoggingLevel
      • Methods inherited from class adams.core.logging.LoggingObject

        configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
      • Methods inherited from interface adams.core.logging.LoggingLevelHandler

        getLoggingLevel
    • Constructor Detail

      • WekaFilterModelLoader

        public WekaFilterModelLoader()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • automaticOrderInfo

        public String automaticOrderInfo()
        Returns information how the model is loaded in case of AbstractModelLoader.ModelLoadingType.AUTO.
        Overrides:
        automaticOrderInfo in class adams.flow.core.AbstractModelLoader<weka.filters.Filter>
        Returns:
        the description
      • getModelFromContainer

        protected weka.filters.Filter getModelFromContainer​(adams.flow.container.AbstractContainer cont,
                                                            adams.core.MessageCollection errors)
        Retrieves the model from the container.
        Specified by:
        getModelFromContainer in class adams.flow.core.AbstractModelLoader<weka.filters.Filter>
        Parameters:
        cont - the container to get the model from
        errors - for collecting errors
        Returns:
        the model, null if not in container