Class DefaultAdamsExperimentIO
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.tools.wekamultiexperimenter.io.AbstractExperimentIO<T>
-
- adams.gui.tools.wekamultiexperimenter.io.AbstractAdamsExperimentIO<AbstractExperiment>
-
- adams.gui.tools.wekamultiexperimenter.io.DefaultAdamsExperimentIO
-
- 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 DefaultAdamsExperimentIO extends AbstractAdamsExperimentIO<AbstractExperiment>
Default IO handler for experiments.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.tools.wekamultiexperimenter.io.AbstractExperimentIO
m_FileChooser
-
-
Constructor Summary
Constructors Constructor Description DefaultAdamsExperimentIO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractExperiment
create()
Creates a new experiment.AbstractExperimentRunner
createRunner(ExperimenterPanel owner)
Creates an experiment runner thread object.String
globalInfo()
Returns a string describing the object.AbstractExperiment
load(File file)
Loads an experiment.boolean
save(AbstractExperiment exp, File file)
Saves an experiment.-
Methods inherited from class adams.gui.tools.wekamultiexperimenter.io.AbstractAdamsExperimentIO
createFileChooser, getExperimentClass, getSupportedFileExtensions
-
Methods inherited from class adams.gui.tools.wekamultiexperimenter.io.AbstractExperimentIO
getFileChooser
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
create
public AbstractExperiment create()
Creates a new experiment.- Specified by:
create
in classAbstractExperimentIO<AbstractExperiment>
- Returns:
- the generated experiment, null if failed
-
load
public AbstractExperiment load(File file)
Loads an experiment.- Specified by:
load
in classAbstractExperimentIO<AbstractExperiment>
- Parameters:
file
- the file to load- Returns:
- the experiment, null if failed to load
-
save
public boolean save(AbstractExperiment exp, File file)
Saves an experiment.- Specified by:
save
in classAbstractExperimentIO<AbstractExperiment>
- Parameters:
exp
- the experiment to savefile
- the file to save to- Returns:
- false if failed to save
-
createRunner
public AbstractExperimentRunner createRunner(ExperimenterPanel owner) throws Exception
Creates an experiment runner thread object.- Specified by:
createRunner
in classAbstractExperimentIO<AbstractExperiment>
- Parameters:
owner
- the owning experimenter- Returns:
- the runner
- Throws:
Exception
- if failed to instantiate runner
-
-