Class SourceCode
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.tools.wekainvestigator.output.AbstractOutputGenerator<ResultItem>
-
- adams.gui.tools.wekainvestigator.tab.classifytab.output.AbstractOutputGenerator
-
- adams.gui.tools.wekainvestigator.tab.classifytab.output.AbstractOutputGeneratorWithFoldModelsSupport
-
- adams.gui.tools.wekainvestigator.tab.classifytab.output.SourceCode
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,Serializable
public class SourceCode extends AbstractOutputGeneratorWithFoldModelsSupport
Outputs source code from the model (if classifier implementsSourcable
).- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_Classname
the classname to use.-
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 SourceCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canHandleModel(weka.classifiers.Classifier model)
Checks whether the model can be handled.String
classnameTipText()
Returns the tip text for this property.protected JComponent
createOutput(weka.classifiers.Classifier model, MessageCollection errors)
Generates the output for the model.void
defineOptions()
Adds options to the internal list of options.String
getClassname()
Returns the classanme to use.String
getTitle()
The title to use for the tab.String
globalInfo()
Returns a string describing the object.void
setClassname(String value)
Sets the classname to use.-
Methods inherited from class adams.gui.tools.wekainvestigator.tab.classifytab.output.AbstractOutputGeneratorWithFoldModelsSupport
canGenerateOutput, createOutput
-
Methods inherited from class adams.gui.tools.wekainvestigator.tab.classifytab.output.AbstractOutputGenerator
addPage, newMultiPagePane
-
Methods inherited from class adams.gui.tools.wekainvestigator.output.AbstractOutputGenerator
addTab, generateOutput
-
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.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Classname
protected String m_Classname
the classname to use.
-
-
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 classAbstractOptionHandler
-
setClassname
public void setClassname(String value)
Sets the classname to use.- Parameters:
value
- the classname
-
getClassname
public String getClassname()
Returns the classanme to use.- Returns:
- the classname
-
classnameTipText
public String classnameTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getTitle
public String getTitle()
The title to use for the tab.- Specified by:
getTitle
in classAbstractOutputGenerator
- Returns:
- the title
-
canHandleModel
protected boolean canHandleModel(weka.classifiers.Classifier model)
Checks whether the model can be handled.- Overrides:
canHandleModel
in classAbstractOutputGeneratorWithFoldModelsSupport
- Parameters:
model
- the model to check- Returns:
- true if handled
-
createOutput
protected JComponent createOutput(weka.classifiers.Classifier model, MessageCollection errors)
Generates the output for the model.- Specified by:
createOutput
in classAbstractOutputGeneratorWithFoldModelsSupport
- Parameters:
model
- the model to use as basiserrors
- for collecting errors- Returns:
- the generated table, null if failed to generate
-
-