Interface DataContainer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canReload()
      Whether it is possible to reload this item.
      weka.core.Instances getData()
      Returns the actual underlying data.
      int getID()
      Returns the container ID.
      String getSource()
      Returns the source of the data item.
      boolean isModified()
      Checks whether the data has been modified.
      Date lastUpdated()
      Returns the timestamp the data was last updated.
      String reload()
      Reloads the data.
      void setData​(weka.core.Instances value)
      Sets the data.
      void setModified​(boolean value)
      Sets whether the data has been modified.
      • Methods inherited from interface adams.core.CleanUpHandler

        cleanUp
      • Methods inherited from interface adams.gui.core.UndoHandler

        getUndo, isUndoSupported, setUndo
      • Methods inherited from interface adams.gui.core.UndoHandlerWithQuickAccess

        addUndoPoint, redo, undo
    • Method Detail

      • getID

        int getID()
        Returns the container ID.
        Returns:
        the ID
      • getSource

        String getSource()
        Returns the source of the data item.
        Returns:
        the source
      • canReload

        boolean canReload()
        Whether it is possible to reload this item.
        Returns:
        true if reloadable
      • reload

        String reload()
        Reloads the data.
        Returns:
        null if successfully reloaded, otherwise error message
      • isModified

        boolean isModified()
        Checks whether the data has been modified.
        Returns:
        true if modified
      • setModified

        void setModified​(boolean value)
        Sets whether the data has been modified.
        Parameters:
        value - true if modified
      • setData

        void setData​(weka.core.Instances value)
        Sets the data.
        Parameters:
        value - the data to use
      • getData

        weka.core.Instances getData()
        Returns the actual underlying data.
        Returns:
        the data
      • lastUpdated

        Date lastUpdated()
        Returns the timestamp the data was last updated.
        Returns:
        the timestamp