Class ResultItem
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.tools.wekainvestigator.output.AbstractResultItem
-
- adams.gui.tools.wekainvestigator.output.AbstractNestableResultItem
-
- adams.gui.tools.wekainvestigator.tab.experimenttab.ResultItem
-
- All Implemented Interfaces:
adams.core.CleanUpHandler
,adams.core.logging.LoggingSupporter
,adams.core.SizeOfHandler
,Serializable
public class ResultItem extends AbstractNestableResultItem
Container for an experiment run. Used in the result history.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected WekaExperimentContainer
m_Experiment
the experiment container.protected adams.data.spreadsheet.MetaData
m_RunInformation
the run information.protected weka.classifiers.Classifier
m_Template
the template.-
Fields inherited from class adams.gui.tools.wekainvestigator.output.AbstractNestableResultItem
m_NameSuffix, m_NestedItems
-
Fields inherited from class adams.gui.tools.wekainvestigator.output.AbstractResultItem
m_Header, m_Log, m_LogPanel, m_Name, m_TabbedPane, m_Timestamp, MAX_RELATIONNAME_LENGTH
-
-
Constructor Summary
Constructors Constructor Description ResultItem(weka.classifiers.Classifier template, weka.core.Instances header)
Initializes the item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
createName()
Creates the name from the members.WekaExperimentContainer
getExperiment()
Returns the stored Evaluation object.adams.data.spreadsheet.MetaData
getRunInformation()
Returns the stored run information.weka.classifiers.Classifier
getTemplate()
Returns the stored template object.boolean
hasExperiment()
Returns whether an Evaluation object is present.boolean
hasRunInformation()
Returns whether run information is present.String
toString()
Returns a short description of the container.void
update(WekaExperimentContainer experiment)
Updates the item.void
update(WekaExperimentContainer experiment, adams.data.spreadsheet.MetaData runInfo)
Updates the item.-
Methods inherited from class adams.gui.tools.wekainvestigator.output.AbstractNestableResultItem
addNestedItem, cleanUp, getNameSuffix, getNestedItem, hasNestedItems, nestedItemNames, setNameSuffix
-
Methods inherited from class adams.gui.tools.wekainvestigator.output.AbstractResultItem
getHeader, getLogPanel, getName, getTabbedPane, hasHeader, invalidateName, logError, logMessage
-
-
-
-
Field Detail
-
m_Experiment
protected WekaExperimentContainer m_Experiment
the experiment container.
-
m_Template
protected weka.classifiers.Classifier m_Template
the template.
-
m_RunInformation
protected adams.data.spreadsheet.MetaData m_RunInformation
the run information.
-
-
Method Detail
-
createName
protected String createName()
Creates the name from the members.- Specified by:
createName
in classAbstractResultItem
- Returns:
- the name
-
update
public void update(WekaExperimentContainer experiment)
Updates the item.- Parameters:
experiment
- the experiment, can be null
-
update
public void update(WekaExperimentContainer experiment, adams.data.spreadsheet.MetaData runInfo)
Updates the item.- Parameters:
experiment
- the evaluation, can be nullrunInfo
- the meta-data for the run
-
hasExperiment
public boolean hasExperiment()
Returns whether an Evaluation object is present.- Returns:
- true if available
-
getExperiment
public WekaExperimentContainer getExperiment()
Returns the stored Evaluation object.- Returns:
- the evaluation, null if not present
-
getTemplate
public weka.classifiers.Classifier getTemplate()
Returns the stored template object.- Returns:
- the template
-
hasRunInformation
public boolean hasRunInformation()
Returns whether run information is present.- Returns:
- true if available
-
getRunInformation
public adams.data.spreadsheet.MetaData getRunInformation()
Returns the stored run information.- Returns:
- the information, null if not present
-
toString
public String toString()
Returns a short description of the container.- Specified by:
toString
in classAbstractResultItem
- Returns:
- the description
-
-