Class TensorFlowFileLists
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.generatefilebaseddataset.AbstractFileBasedDatasetGeneration<String[]>
-
- adams.flow.transformer.generatefilebaseddataset.TensorFlowFileLists
-
- 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
,Serializable
public class TensorFlowFileLists extends adams.flow.transformer.generatefilebaseddataset.AbstractFileBasedDatasetGeneration<String[]>
Generates simple file lists in the specified directory.- 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.PlaceholderDirectory
m_OutputDir
the output directory for the lists.protected adams.core.base.BaseString[]
m_Values
the values in the container to use.
-
Constructor Summary
Constructors Constructor Description TensorFlowFileLists()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
check(adams.flow.container.FileBasedDatasetContainer cont)
Performs checks on the container.void
defineOptions()
Adds options to the internal list of options.protected String[]
doGenerate(adams.flow.container.FileBasedDatasetContainer cont)
Generates the dataset.Class
generates()
Returns the class that gets generated.adams.core.io.PlaceholderDirectory
getOutputDir()
Returns the output directory.String
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI.adams.core.base.BaseString[]
getValues()
Returns the name(s) of the container value(s) to save.String
globalInfo()
Returns a string describing the object.String
outputDirTipText()
Returns the tip text for this property.protected String[]
requiredValues()
The keys of the values that need to be present in the container.void
setOutputDir(adams.core.io.PlaceholderDirectory value)
Sets the output directory.void
setValues(adams.core.base.BaseString[] value)
Sets the name(s) of the container value(s) to save.String
valueTipText()
Returns the tip text for this property.-
Methods inherited from class adams.flow.transformer.generatefilebaseddataset.AbstractFileBasedDatasetGeneration
generate
-
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
-
-
-
-
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
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classadams.core.option.AbstractOptionHandler
-
setValues
public void setValues(adams.core.base.BaseString[] value)
Sets the name(s) of the container value(s) to save.- Parameters:
value
- the value(s)
-
getValues
public adams.core.base.BaseString[] getValues()
Returns the name(s) of the container value(s) to save.- Returns:
- the value(s)
-
valueTipText
public String valueTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setOutputDir
public void setOutputDir(adams.core.io.PlaceholderDirectory value)
Sets the output directory.- Parameters:
value
- the dir
-
getOutputDir
public adams.core.io.PlaceholderDirectory getOutputDir()
Returns the output directory.- 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 GUI or for listing the options.
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI.- Specified by:
getQuickInfo
in interfaceadams.core.QuickInfoSupporter
- Overrides:
getQuickInfo
in classadams.flow.transformer.generatefilebaseddataset.AbstractFileBasedDatasetGeneration<String[]>
- Returns:
- null if no info available, otherwise short string
-
generates
public Class generates()
Returns the class that gets generated.- Specified by:
generates
in classadams.flow.transformer.generatefilebaseddataset.AbstractFileBasedDatasetGeneration<String[]>
- Returns:
- the generated class
-
requiredValues
protected String[] requiredValues()
The keys of the values that need to be present in the container.- Specified by:
requiredValues
in classadams.flow.transformer.generatefilebaseddataset.AbstractFileBasedDatasetGeneration<String[]>
- Returns:
- the keys
-
check
protected String check(adams.flow.container.FileBasedDatasetContainer cont)
Performs checks on the container.- Overrides:
check
in classadams.flow.transformer.generatefilebaseddataset.AbstractFileBasedDatasetGeneration<String[]>
- Parameters:
cont
- the container to check- Returns:
- null if successful, otherwise error message
-
doGenerate
protected String[] doGenerate(adams.flow.container.FileBasedDatasetContainer cont)
Generates the dataset.- Specified by:
doGenerate
in classadams.flow.transformer.generatefilebaseddataset.AbstractFileBasedDatasetGeneration<String[]>
- Parameters:
cont
- the container to use- Returns:
- the generated output
-
-