Class ResultItem
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.tools.wekainvestigator.output.AbstractResultItem
-
- adams.gui.tools.wekainvestigator.tab.associatetab.ResultItem
-
- All Implemented Interfaces:
CleanUpHandler,LoggingSupporter,SizeOfHandler,Serializable
public class ResultItem extends AbstractResultItem
Container for an evaluation, model, training set header. 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 weka.associations.AssociatorEvaluationm_Evaluationthe evaluation object.protected weka.associations.Associatorm_Modelthe model.protected MetaDatam_RunInformationthe run information.protected weka.associations.Associatorm_Templatethe template.-
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
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description ResultItem(weka.associations.Associator template, weka.core.Instances header)Initializes the item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcreateName()Creates the name from the members.weka.associations.AssociatorEvaluationgetEvaluation()Returns the stored Evaluation object.weka.associations.AssociatorgetModel()Returns the stored model object.MetaDatagetRunInformation()Returns the stored run information.weka.associations.AssociatorgetTemplate()Returns the stored template object.booleanhasEvaluation()Returns whether an Evaluation object is present.booleanhasModel()Returns whether an model object is present.booleanhasRunInformation()Returns whether run information is present.StringtoString()Returns a short description of the container.ResultItemupdate(MetaData runInfo)Updates the item.ResultItemupdate(weka.associations.Associator model)Updates the item.ResultItemupdate(weka.associations.AssociatorEvaluation evaluation)Updates the item.-
Methods inherited from class adams.gui.tools.wekainvestigator.output.AbstractResultItem
cleanUp, getHeader, getLogPanel, getName, getTabbedPane, hasHeader, invalidateName, logError, logMessage
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Evaluation
protected weka.associations.AssociatorEvaluation m_Evaluation
the evaluation object.
-
m_Template
protected weka.associations.Associator m_Template
the template.
-
m_Model
protected weka.associations.Associator m_Model
the model.
-
m_RunInformation
protected MetaData m_RunInformation
the run information.
-
-
Method Detail
-
createName
protected String createName()
Creates the name from the members.- Specified by:
createNamein classAbstractResultItem- Returns:
- the name
-
update
public ResultItem update(weka.associations.AssociatorEvaluation evaluation)
Updates the item.- Parameters:
evaluation- the evaluation- Returns:
- itself
-
update
public ResultItem update(weka.associations.Associator model)
Updates the item.- Parameters:
model- the model- Returns:
- itself
-
update
public ResultItem update(MetaData runInfo)
Updates the item.- Parameters:
runInfo- the run information, can be null- Returns:
- itself
-
hasEvaluation
public boolean hasEvaluation()
Returns whether an Evaluation object is present.- Returns:
- true if available
-
getEvaluation
public weka.associations.AssociatorEvaluation getEvaluation()
Returns the stored Evaluation object.- Returns:
- the evaluation, null if not present
-
getTemplate
public weka.associations.Associator getTemplate()
Returns the stored template object.- Returns:
- the template, null if not present
-
hasModel
public boolean hasModel()
Returns whether an model object is present.- Returns:
- true if available
-
getModel
public weka.associations.Associator getModel()
Returns the stored model object.- Returns:
- the model, null if not present
-
hasRunInformation
public boolean hasRunInformation()
Returns whether run information is present.- Returns:
- true if available
-
getRunInformation
public 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:
toStringin classAbstractResultItem- Returns:
- the description
-
-