Class AbstractEvaluation<T extends AbstractInvestigatorTab,​R extends AbstractResultItem>

    • Constructor Detail

      • AbstractEvaluation

        protected AbstractEvaluation()
        Constructor.
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
      • initGUI

        protected void initGUI()
        Initializes the panel.
      • setOwner

        public void setOwner​(T value)
        Sets the owner.
        Parameters:
        value - the owning tab
      • getOwner

        public T getOwner()
        Returns the owner.
        Returns:
        the owning tab, null if none set
      • getName

        public abstract String getName()
        Returns the name of the evaluation (displayed in combobox).
        Returns:
        the name
      • getPanel

        public JPanel getPanel()
        Returns a panel with options to display.
        Returns:
        the panel
      • getTestingUpdateInterval

        protected int getTestingUpdateInterval()
        Returns the interval to use for outputting progress info during testing.
        Returns:
        the interval
      • addToHistory

        public R addToHistory​(adams.gui.core.AbstractNamedHistoryPanel<R> history,
                              R item)
        Adds the item to the history and selects it.
        Parameters:
        item - the item to add
        Returns:
        the item
      • toString

        public String toString()
        Returns just the name of the evaluation.
        Overrides:
        toString in class Object
        Returns:
        the evaluation
      • update

        public abstract void update()
        Updates the settings panel.
      • activate

        public abstract void activate​(int index)
        Activates the specified dataset.
        Parameters:
        index - the index of the dataset
      • showStatus

        public void showStatus​(String msg)
        Displays a message.
        Specified by:
        showStatus in interface adams.core.StatusMessageHandler
        Parameters:
        msg - the message to display
      • isValidDataIndex

        protected boolean isValidDataIndex​(adams.gui.core.BaseComboBox combobox)
        Checks whether the combobox selection index is a valid dataset index.
        Parameters:
        combobox - the combobox to check
        Returns:
        true if valid index
      • addObjectSize

        public void addObjectSize​(adams.data.spreadsheet.MetaData meta,
                                  String key,
                                  Object obj)
        Adds the object size to the meta-data.
        Parameters:
        meta - the meta-data to add the information to
        key - the key for the meta-data to use
        obj - the object to determine the size for
      • listOrArray

        protected String[] listOrArray​(Object obj)
        If the object should be a list of strings instead of an array of strings, then it gets converted accordingly.
        Parameters:
        obj - the list/array
        Returns:
        the generated array
      • deserialize

        public void deserialize​(Map<String,​Object> data,
                                adams.core.MessageCollection errors)
        Restores the objects.
        Parameters:
        data - the data to restore
        errors - for storing errors
      • getProperties

        public static adams.core.Properties getProperties()
        Returns the properties that define the editor.
        Returns:
        the properties