Class MultiRunGenerator
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.indexedsplitsrunsgenerator.AbstractIndexedSplitsRunsGenerator
-
- adams.flow.transformer.indexedsplitsrunsgenerator.MultiRunGenerator
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,FlowContextHandler
,IndexedSplitsRunsGenerator
,Serializable
public class MultiRunGenerator extends AbstractIndexedSplitsRunsGenerator
Generates the specified number of runs using the configured base generator.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected IndexedSplitsRunsGenerator
m_Generator
the base generator.protected int
m_NumRuns
the number of runs to generate.-
Fields inherited from class adams.flow.transformer.indexedsplitsrunsgenerator.AbstractIndexedSplitsRunsGenerator
m_FlowContext, m_MetaData
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description MultiRunGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]
accepts()
Returns the type of classes that are accepted as input.void
defineOptions()
Adds options to the internal list of options.protected IndexedSplitsRuns
doGenerate(Object data, MessageCollection errors)
Generates the indexed splits.String
generatorTipText()
Returns the tip text for this property.IndexedSplitsRunsGenerator
getGenerator()
Returns the generator to use for the runs.int
getNumRuns()
Returns the number of runs to generate.String
globalInfo()
Returns a string describing the object.String
runRunsTipText()
Returns the tip text for this property.void
setGenerator(IndexedSplitsRunsGenerator value)
Sets the generator to use for the runs.void
setNumRuns(int value)
Sets the number of runs to generate.-
Methods inherited from class adams.flow.transformer.indexedsplitsrunsgenerator.AbstractIndexedSplitsRunsGenerator
check, generate, getFlowContext, getMetaData, getQuickInfo, metaDataTipText, postGenerate, setFlowContext, setMetaData
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_NumRuns
protected int m_NumRuns
the number of runs to generate.
-
m_Generator
protected IndexedSplitsRunsGenerator m_Generator
the base generator.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- 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 interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractIndexedSplitsRunsGenerator
-
setNumRuns
public void setNumRuns(int value)
Sets the number of runs to generate.- Parameters:
value
- the runs
-
getNumRuns
public int getNumRuns()
Returns the number of runs to generate.- Returns:
- the runs
-
runRunsTipText
public String runRunsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setGenerator
public void setGenerator(IndexedSplitsRunsGenerator value)
Sets the generator to use for the runs.- Parameters:
value
- the generator
-
getGenerator
public IndexedSplitsRunsGenerator getGenerator()
Returns the generator to use for the runs.- Returns:
- the generator
-
generatorTipText
public String generatorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
accepts
public Class[] accepts()
Returns the type of classes that are accepted as input.- Specified by:
accepts
in interfaceIndexedSplitsRunsGenerator
- Specified by:
accepts
in classAbstractIndexedSplitsRunsGenerator
- Returns:
- the classes
-
doGenerate
protected IndexedSplitsRuns doGenerate(Object data, MessageCollection errors)
Generates the indexed splits.- Specified by:
doGenerate
in classAbstractIndexedSplitsRunsGenerator
- Parameters:
data
- the data to use for generating the splitserrors
- for storing any errors occurring during processing- Returns:
- the splits or null in case of error
-
-