Class FixedDir
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.djl.outputdirgenerator.AbstractOutputDirGenerator
-
- adams.data.djl.outputdirgenerator.FixedDir
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.QuickInfoSupporter,adams.core.SizeOfHandler,OutputDirGenerator,adams.flow.core.FlowContextHandler,Serializable
public class FixedDir extends AbstractOutputDirGenerator
Uses the user-supplied output dir.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.core.io.PlaceholderDirectorym_OutputDirthe output dir to use.-
Fields inherited from class adams.data.djl.outputdirgenerator.AbstractOutputDirGenerator
m_FlowContext
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.adams.core.io.PlaceholderDirectorygenerate()Generates the output directory.adams.core.io.PlaceholderDirectorygetOutputDir()Gets the output dir.StringglobalInfo()Returns a string describing the object.StringoutputDirTipText()Returns the tip text for this property.voidsetOutputDir(adams.core.io.PlaceholderDirectory value)Sets the output dir.-
Methods inherited from class adams.data.djl.outputdirgenerator.AbstractOutputDirGenerator
getFlowContext, getQuickInfo, requiresFlowContext, setFlowContext
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, 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
-
-
-
-
Constructor Detail
-
FixedDir
public FixedDir()
Default constructor.
-
FixedDir
public FixedDir(String dir)
Instantiates the generator and sets the dir to use.- Parameters:
dir- the dir to use
-
FixedDir
public FixedDir(adams.core.io.PlaceholderDirectory dir)
Instantiates the generator and sets the dir to use.- Parameters:
dir- the dir to use
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.core.option.AbstractOptionHandler
-
setOutputDir
public void setOutputDir(adams.core.io.PlaceholderDirectory value)
Sets the output dir.- Parameters:
value- the dir
-
getOutputDir
public adams.core.io.PlaceholderDirectory getOutputDir()
Gets the output dir.- Returns:
- the dir
-
outputDirTipText
public String outputDirTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
generate
public adams.core.io.PlaceholderDirectory generate()
Generates the output directory.- Returns:
- the directory
-
-