|
||||||||||
| 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.AbstractWekaSetupGenerator<T>
T - the type of setups to generatepublic abstract class AbstractWekaSetupGenerator<T>
Abstract ancestor for setup generator sources. Derived classes must defined get/set/tiptext methods for the property "setup".
| Field Summary | |
|---|---|
protected SetupGenerator |
m_Generator
the underlying setup generator. |
protected boolean |
m_OutputArray
whether to output an array or a sequence of setups. |
protected Vector<T> |
m_Setups
all the setups. |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ, m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, 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 |
| Constructor Summary | |
|---|---|
AbstractWekaSetupGenerator()
|
|
| 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 String |
getDefaultPackage()
Returns the default package of the types of setups to generate. |
protected abstract AbstractParameter[] |
getDefaultParameters()
Returns the default parameters. |
protected abstract T |
getDefaultSetup()
Returns the default setup. |
protected abstract Class |
getDefaultSuperClass()
Returns the default super class, the same as the type "T" when defining the generics. |
boolean |
getOutputArray()
Returns whether to output an array or a sequence of classifier setups. |
AbstractParameter[] |
getParameters()
Returns the setup parameters. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
boolean |
hasPendingOutput()
Checks whether there is pending output to be collected after executing the flow item. |
protected void |
initialize()
Initializes the members. |
Token |
output()
Returns the generated token. |
String |
outputArrayTipText()
Returns the tip text for this property. |
String |
parametersTipText()
Returns the tip text for this property. |
void |
setOutputArray(boolean value)
Sets whether to output an array or a sequence of classifier setups. |
void |
setParameters(AbstractParameter[] value)
Sets the setup parameters. |
void |
wrapUp()
Cleans up after the execution has finished. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, globalInfo, 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 |
| Field Detail |
|---|
protected boolean m_OutputArray
protected SetupGenerator m_Generator
protected Vector<T> m_Setups
| Constructor Detail |
|---|
public AbstractWekaSetupGenerator()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorprotected abstract T getDefaultSetup()
defineOptions()protected abstract AbstractParameter[] getDefaultParameters()
defineOptions()protected String getDefaultPackage()
getQuickInfo(),
getDefaultSuperClass()protected abstract Class getDefaultSuperClass()
protected void initialize()
initialize in class AbstractActorpublic void setParameters(AbstractParameter[] value)
value - the parameterspublic AbstractParameter[] getParameters()
public String parametersTipText()
public void setOutputArray(boolean value)
value - if true then an array will be outputpublic boolean getOutputArray()
public String outputArrayTipText()
public String getQuickInfo()
getQuickInfo in interface QuickInfoSupportergetQuickInfo in class AbstractActorpublic Class[] generates()
protected String doExecute()
doExecute in class AbstractActorpublic Token output()
public boolean hasPendingOutput()
public void wrapUp()
wrapUp in class AbstractActor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||