Interface DataContainer
-
- All Superinterfaces:
CleanUpHandler,Comparable<DataContainer>,UndoHandler,UndoHandlerWithQuickAccess
- All Known Subinterfaces:
MonitoringDataContainer
- All Known Implementing Classes:
AbstractDataContainer,DatabaseContainer,DataGeneratorContainer,FileContainer,MemoryContainer,SpreadSheetContainer,TextDirectoryLoaderContainer
public interface DataContainer extends Comparable<DataContainer>, UndoHandlerWithQuickAccess, CleanUpHandler
Interface for data containers.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanReload()Whether it is possible to reload this item.weka.core.InstancesgetData()Returns the actual underlying data.intgetID()Returns the container ID.StringgetSource()Returns the source of the data item.booleanisModified()Checks whether the data has been modified.DatelastUpdated()Returns the timestamp the data was last updated.Stringreload()Reloads the data.voidsetData(weka.core.Instances value)Sets the data.voidsetModified(boolean value)Sets whether the data has been modified.-
Methods inherited from interface adams.core.CleanUpHandler
cleanUp
-
Methods inherited from interface java.lang.Comparable
compareTo
-
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
-
-