Package weka.knowledgeflow.steps
Class DataGenerator
java.lang.Object
weka.knowledgeflow.steps.BaseStep
weka.knowledgeflow.steps.WekaAlgorithmWrapper
weka.knowledgeflow.steps.DataGenerator
- All Implemented Interfaces:
Serializable,BaseStepExtender,Step
@KFStep(name="DataGenerator",
category="DataGenerators",
toolTipText="Weka data generator wrapper",
iconPath="")
public class DataGenerator
extends WekaAlgorithmWrapper
Step that wraps a Weka DataGenerator.
- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget the data generatorGet acceptable incoming connection types.Get a list of outgoing connection typesGet the class of the wrapped algorithmoutputStructureForConnectionType(String connectionName) If possible, get the output structure for the named connection type as a header-only set of instances.voidsetDataGenerator(DataGenerator dataGenerator) Set the data generatorvoidsetWrappedAlgorithm(Object algo) Set the algorithm to wrapvoidstart()Start the data generation process.voidstepInit()Initialize the step.Methods inherited from class weka.knowledgeflow.steps.WekaAlgorithmWrapper
getDefaultIconPath, getDefaultPackageLevelIconPath, getIconPath, getWrappedAlgorithm, globalInfoMethods inherited from class weka.knowledgeflow.steps.BaseStep
environmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, isResourceIntensive, isStopRequested, outputStructureForConnectionType, processIncoming, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, stepMustRunSingleThreaded, stop
-
Constructor Details
-
DataGenerator
public DataGenerator()
-
-
Method Details
-
getWrappedAlgorithmClass
Get the class of the wrapped algorithm- Specified by:
getWrappedAlgorithmClassin classWekaAlgorithmWrapper- Returns:
- the class of the wrapped algorithm
-
setWrappedAlgorithm
Set the algorithm to wrap- Overrides:
setWrappedAlgorithmin classWekaAlgorithmWrapper- Parameters:
algo- the algorithm to wrao
-
getDataGenerator
get the data generator- Returns:
- the data generator
-
setDataGenerator
Set the data generator- Parameters:
dataGenerator-
-
stepInit
public void stepInit()Initialize the step. Nothing to do in this case. -
start
Start the data generation process.- Specified by:
startin interfaceBaseStepExtender- Specified by:
startin interfaceStep- Overrides:
startin classBaseStep- Throws:
WekaException- if a problem occurs
-
outputStructureForConnectionType
If possible, get the output structure for the named connection type as a header-only set of instances. Can return null if the specified connection type is not representable as Instances or cannot be determined at present.- Specified by:
outputStructureForConnectionTypein interfaceStep- Overrides:
outputStructureForConnectionTypein classBaseStep- Parameters:
connectionName- the name of the connection type to get the output structure for- Returns:
- the output structure as a header-only Instances object
- Throws:
WekaException- if a problem occurs
-
getIncomingConnectionTypes
Get acceptable incoming connection types. None in this case since this step is a start point- Returns:
- null (no acceptable incoming connections)
-
getOutgoingConnectionTypes
Get a list of outgoing connection types- Returns:
- a list of outgoing connection types
-