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 IndexedSplitsRunsGeneratorm_Generatorthe base generator.protected intm_NumRunsthe 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.voiddefineOptions()Adds options to the internal list of options.protected IndexedSplitsRunsdoGenerate(Object data, MessageCollection errors)Generates the indexed splits.StringgeneratorTipText()Returns the tip text for this property.IndexedSplitsRunsGeneratorgetGenerator()Returns the generator to use for the runs.intgetNumRuns()Returns the number of runs to generate.StringglobalInfo()Returns a string describing the object.StringnumRunsTipText()Returns the tip text for this property.voidsetGenerator(IndexedSplitsRunsGenerator value)Sets the generator to use for the runs.voidsetNumRuns(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:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin 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
-
numRunsTipText
public String numRunsTipText()
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:
acceptsin interfaceIndexedSplitsRunsGenerator- Specified by:
acceptsin classAbstractIndexedSplitsRunsGenerator- Returns:
- the classes
-
doGenerate
protected IndexedSplitsRuns doGenerate(Object data, MessageCollection errors)
Generates the indexed splits.- Specified by:
doGeneratein 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
-
-