Class DataGeneratorContainer

  • All Implemented Interfaces:
    adams.core.CleanUpHandler, adams.core.logging.LoggingSupporter, adams.core.SizeOfHandler, adams.gui.core.UndoHandler, adams.gui.core.UndoHandlerWithQuickAccess, adams.gui.event.UndoListener, DataContainer, Serializable, Comparable<DataContainer>, EventListener

    public class DataGeneratorContainer
    extends AbstractDataContainer
    Dataset generated by datagenerator.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Generator

        protected weka.datagenerators.DataGenerator m_Generator
        the generator used to load the data.
    • Constructor Detail

      • DataGeneratorContainer

        public DataGeneratorContainer​(weka.datagenerators.DataGenerator generator)
        Loads the data using the specified loader.
        Parameters:
        generator - the generator to use
    • Method Detail

      • getSource

        public String getSource()
        Returns the source of the data item.
        Returns:
        the source
      • canReload

        public boolean canReload()
        Whether it is possible to reload this item.
        Returns:
        true if reloadable
      • doReload

        protected String doReload()
        Reloads the data.
        Specified by:
        doReload in class AbstractDataContainer
        Returns:
        null if successfully reloaded, otherwise error message
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Specified by:
        cleanUp in interface adams.core.CleanUpHandler
        Overrides:
        cleanUp in class AbstractDataContainer