Class AbstractResultItem

    • Field Detail

      • MAX_RELATIONNAME_LENGTH

        public static final int MAX_RELATIONNAME_LENGTH
        the maximum length for the relationname when assembling the name.
        See Also:
        Constant Field Values
      • m_Timestamp

        protected Date m_Timestamp
        the timestamp.
      • m_Name

        protected String m_Name
        the name of the item.
      • m_Header

        protected weka.core.Instances m_Header
        the header.
      • m_TabbedPane

        protected transient OutputTabbedPane m_TabbedPane
        the tabbed pane with the generated output.
    • Constructor Detail

      • AbstractResultItem

        protected AbstractResultItem​(weka.core.Instances header)
        Initializes the item.
        Parameters:
        header - the header of the training set, can be null
    • Method Detail

      • createName

        protected abstract String createName()
        Creates the name from the members.
        Returns:
        the name
      • getName

        public String getName()
        Returns the name of the item.
        Returns:
        the name
      • invalidateName

        public void invalidateName()
        Invalidates the name.
      • hasHeader

        public boolean hasHeader()
        Returns whether an training set header is present.
        Returns:
        true if available
      • getHeader

        public weka.core.Instances getHeader()
        Returns the stored training set header.
        Returns:
        the header, null if not present
      • getTabbedPane

        public OutputTabbedPane getTabbedPane()
        The tabbed pane for the results.
        Returns:
        the tabbed pane
      • getLogPanel

        public SimpleLogPanel getLogPanel()
        Returns the log panel.
        Returns:
        the log panel
      • logMessage

        public void logMessage​(String msg)
        Logs the message.
        Parameters:
        msg - the log message
      • logError

        public void logError​(String msg,
                             Throwable t)
        Logs the exception.
        Parameters:
        msg - the log message
        t - the exception
      • toString

        public abstract String toString()
        Returns a short description of the container.
        Overrides:
        toString in class Object
        Returns:
        the description
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Specified by:
        cleanUp in interface CleanUpHandler