Class MemoryContainer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.tools.wekainvestigator.data.AbstractDataContainer
-
- adams.gui.tools.wekainvestigator.data.MemoryContainer
-
- All Implemented Interfaces:
CleanUpHandler
,LoggingSupporter
,SizeOfHandler
,UndoHandler
,UndoHandlerWithQuickAccess
,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
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
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
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
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
-
-