Class RemoteWekaExperimentIO

  • 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 RemoteWekaExperimentIO
    extends AbstractWekaExperimentIO<weka.experiment.RemoteExperiment>
    IO handler for remote experiments.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • RemoteWekaExperimentIO

        public RemoteWekaExperimentIO()
    • 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.RemoteExperiment create()
        Creates a new experiment.
        Specified by:
        create in class AbstractExperimentIO<weka.experiment.RemoteExperiment>
        Returns:
        the generated experiment, null if failed
      • load

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

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

        public Class getExperimentClass()
        Returns the experiment superclass/interface.
        Overrides:
        getExperimentClass in class AbstractWekaExperimentIO<weka.experiment.RemoteExperiment>
        Returns:
        the super class/interface