|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.core.AbstractActor
adams.flow.source.AbstractSource
adams.flow.source.MOAStream
public class MOAStream
Generates artificial data using a MOA stream generator.
Input/output:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-name <java.lang.String> (property: name) The name of the actor. default: MOAStream
-annotation <adams.core.base.BaseText> (property: annotations) The annotations to attach to this actor. default:
-skip (property: skip) If set to true, transformation is skipped and the input token is just forwarded as it is.
-stop-flow-on-error (property: stopFlowOnError) If set to true, the flow gets stopped in case this actor encounters an error; useful for critical actors.
-stream <moa.options.ClassOption> (property: streamGenerator) The stream generator to use for generating the weka.core.Instance objects. default: moa.streams.generators.AgrawalGenerator
-num-examples <int> (property: numExamples) The number of examples to generate; -1 means infinite. default: 10000 minimum: -1
| Field Summary | |
|---|---|
protected moa.streams.InstanceStream |
m_ActualStreamGenerator
the actual stream generator to use. |
protected int |
m_CountExamples
the number of examples generated so far. |
protected int |
m_NumExamples
the maximum number of instance objects to generate. |
protected moa.options.ClassOption |
m_StreamGenerator
the stream generator object. |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_Executing, m_ExecutionListeningSupporter, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Fields inherited from interface adams.flow.core.Actor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ |
| Constructor Summary | |
|---|---|
MOAStream()
|
|
| Method Summary | |
|---|---|
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
doExecute()
Executes the flow item. |
Class[] |
generates()
Returns the class of objects that it generates. |
protected moa.streams.InstanceStream |
getCurrentStreamGenerator()
Returns the current stream generator, based on the class option. |
protected moa.streams.InstanceStream |
getDefaultGenerator()
Returns the default stream generator. |
protected moa.options.ClassOption |
getDefaultOption()
Returns the default class option. |
int |
getNumExamples()
Returns the number of examples to generate. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
moa.options.ClassOption |
getStreamGenerator()
Returns the data generator in use. |
String |
globalInfo()
Returns a string describing the object. |
boolean |
hasPendingOutput()
Checks whether there is pending output to be collected after executing the flow item. |
String |
numExamplesTipText()
Returns the tip text for this property. |
Token |
output()
Returns the generated token. |
protected void |
reset()
Initializes the members. |
void |
setNumExamples(int value)
Sets the maximum number of examples to generate. |
void |
setStreamGenerator(moa.options.ClassOption value)
Sets the stream generator to use. |
String |
streamGeneratorTipText()
Returns the tip text for this property. |
void |
updateProvenance(ProvenanceContainer cont)
Updates the provenance information in the provided container. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.flow.core.Actor |
|---|
cleanUp, compareTo, debug, destroy, equals, execute, findVariables, getAnnotations, getDefaultName, getDetectedVariables, getErrorHandler, getFlowExecutionListeningSupporter, getFullName, getName, getNextSibling, getParent, getPreviousSibling, getRoot, getSkip, getStopFlowOnError, getStopMessage, getStorageHandler, getVariables, handleError, hasErrorHandler, hasStopMessage, index, isExecuted, isFinished, isHeadless, isStopped, setAnnotations, setErrorHandler, setHeadless, setName, setParent, setSkip, setStopFlowOnError, setUp, setVariables, sizeOf, stopExecution, stopExecution, variableChanged, wrapUp |
| Methods inherited from interface adams.core.AdditionalInformationHandler |
|---|
getAdditionalInformation |
| Methods inherited from interface adams.core.option.OptionHandler |
|---|
cleanUpOptions, getOptionManager |
| Field Detail |
|---|
protected moa.streams.InstanceStream m_ActualStreamGenerator
protected moa.options.ClassOption m_StreamGenerator
protected int m_NumExamples
protected int m_CountExamples
| Constructor Detail |
|---|
public MOAStream()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorprotected void reset()
reset in class AbstractActorpublic String getQuickInfo()
getQuickInfo in interface QuickInfoSupportergetQuickInfo in interface ActorgetQuickInfo in class AbstractActorprotected moa.streams.InstanceStream getDefaultGenerator()
protected moa.options.ClassOption getDefaultOption()
public void setStreamGenerator(moa.options.ClassOption value)
value - the stream generatorpublic moa.options.ClassOption getStreamGenerator()
public String streamGeneratorTipText()
protected moa.streams.InstanceStream getCurrentStreamGenerator()
getStreamGenerator()public void setNumExamples(int value)
value - the maximum numberpublic int getNumExamples()
public String numExamplesTipText()
public Class[] generates()
generates in interface OutputProducerprotected String doExecute()
doExecute in class AbstractActorpublic Token output()
output in interface OutputProducerpublic boolean hasPendingOutput()
hasPendingOutput in interface OutputProducerpublic void updateProvenance(ProvenanceContainer cont)
updateProvenance in interface ProvenanceSupportercont - the provenance container to update
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||