Class MemoryContainer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.tools.wekainvestigator.data.AbstractDataContainer
-
- adams.gui.tools.wekainvestigator.data.MemoryContainer
-
- All Implemented Interfaces:
adams.core.CleanUpHandler
,adams.core.logging.LoggingSupporter
,adams.core.SizeOfHandler
,adams.gui.core.UndoHandler
,adams.gui.core.UndoHandlerWithQuickAccess
,adams.gui.event.UndoListener
,DataContainer
,Serializable
,Comparable<DataContainer>
,EventListener
public class MemoryContainer extends AbstractDataContainer
Dataset exists only in memory.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.tools.wekainvestigator.data.AbstractDataContainer
m_Data, m_ID, m_IDCounter, m_LastUpdated, m_Modified, m_Undo
-
-
Constructor Summary
Constructors Constructor Description MemoryContainer(weka.core.Instances data)
Uses the specified data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canReload()
Whether it is possible to reload this item.protected String
doReload()
Reloads the data.String
getSource()
Returns the source of the data item.-
Methods inherited from class adams.gui.tools.wekainvestigator.data.AbstractDataContainer
addUndoPoint, applyUndoData, cleanUp, compareTo, equals, getData, getID, getUndo, getUndoData, handleException, isModified, isUndoSupported, lastUpdated, nextID, redo, reload, setData, setModified, setUndo, toString, undo, undoOccurred
-
-
-
-
Method Detail
-
getSource
public String getSource()
Returns the source of the data item.- Returns:
- the source
-
canReload
public boolean canReload()
Whether it is possible to reload this item.- Returns:
- true if reloadable
-
doReload
protected String doReload()
Reloads the data.- Specified by:
doReload
in classAbstractDataContainer
- Returns:
- null if successfully reloaded, otherwise error message
-
-