Package adams.data.io.input
Class SerializedAdamsExperimentReader
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.io.input.AbstractAdamsExperimentReader
-
- adams.data.io.input.SerializedAdamsExperimentReader
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.io.FileFormatHandler
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,Serializable
public class SerializedAdamsExperimentReader extends AbstractAdamsExperimentReader
Reads serialized ADAMS Experiments.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerializedAdamsExperimentReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractExperiment
doRead(adams.core.io.PlaceholderFile file)
Performs the actual reading of the experiment file.AbstractAdamsExperimentWriter
getCorrespondingWriter()
Returns, if available, the corresponding writer.String
getFormatDescription()
Returns a string describing the format (used in the file chooser).String[]
getFormatExtensions()
Returns the extension(s) of the format.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.data.io.input.AbstractAdamsExperimentReader
check, getDefaultFormatExtension, getReaders, isAvailable, read
-
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
-
getFormatDescription
public String getFormatDescription()
Returns a string describing the format (used in the file chooser).- Specified by:
getFormatDescription
in interfaceadams.core.io.FileFormatHandler
- Specified by:
getFormatDescription
in classAbstractAdamsExperimentReader
- Returns:
- a description suitable for displaying in the file chooser
-
getFormatExtensions
public String[] getFormatExtensions()
Returns the extension(s) of the format.- Specified by:
getFormatExtensions
in interfaceadams.core.io.FileFormatHandler
- Specified by:
getFormatExtensions
in classAbstractAdamsExperimentReader
- Returns:
- the extension (without the dot!)
-
getCorrespondingWriter
public AbstractAdamsExperimentWriter getCorrespondingWriter()
Returns, if available, the corresponding writer.- Specified by:
getCorrespondingWriter
in classAbstractAdamsExperimentReader
- Returns:
- the writer, null if none available
-
doRead
protected AbstractExperiment doRead(adams.core.io.PlaceholderFile file)
Performs the actual reading of the experiment file.- Specified by:
doRead
in classAbstractAdamsExperimentReader
- Parameters:
file
- the file to read- Returns:
- the experiment, null if failed to read
-
-