Interface DataContainer
-
- All Superinterfaces:
adams.core.CleanUpHandler
,Comparable<DataContainer>
,adams.gui.core.UndoHandler
,adams.gui.core.UndoHandlerWithQuickAccess
- All Known Subinterfaces:
MonitoringDataContainer
- All Known Implementing Classes:
AbstractDataContainer
,DatabaseContainer
,DataGeneratorContainer
,FileContainer
,MemoryContainer
,SpreadSheetContainer
,TextDirectoryLoaderContainer
public interface DataContainer extends Comparable<DataContainer>, adams.gui.core.UndoHandlerWithQuickAccess, adams.core.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 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 java.lang.Comparable
compareTo
-
-
-
-
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
-
-