Class DefaultWekaExperimentIO

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.SizeOfHandler, Serializable

    public class DefaultWekaExperimentIO
    extends AbstractWekaExperimentIO<weka.experiment.Experiment>
    Default IO handler for experiments.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultWekaExperimentIO

        public DefaultWekaExperimentIO()
    • 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
      • create

        public weka.experiment.Experiment create()
        Creates a new experiment.
        Specified by:
        create in class AbstractExperimentIO<weka.experiment.Experiment>
        Returns:
        the generated experiment, null if failed
      • load

        public weka.experiment.Experiment load​(File file)
        Loads an experiment.
        Specified by:
        load in class AbstractExperimentIO<weka.experiment.Experiment>
        Parameters:
        file - the file to load
        Returns:
        the experiment, null if failed to load
      • save

        public boolean save​(weka.experiment.Experiment exp,
                            File file)
        Saves an experiment.
        Specified by:
        save in class AbstractExperimentIO<weka.experiment.Experiment>
        Parameters:
        exp - the experiment to save
        file - the file to save to
        Returns:
        false if failed to save