|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
weka.gui.beans.AbstractDataSink
weka.gui.beans.Saver
public class Saver
Saves data sets using weka.core.converter classes
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
Saver()
Contsructor |
|
| Method Summary | |
|---|---|
void |
acceptDataSet(DataSetEvent e)
Method reacts to a dataset event and starts the writing process in batch mode |
void |
acceptDataSet(ThresholdDataEvent e)
Method reacts to a threshold data event ans starts the writing process in batch mode. |
void |
acceptInstance(InstanceEvent e)
Methods reacts to instance events and saves instances incrementally. |
void |
acceptTestSet(TestSetEvent e)
Method reacts to a test set event and starts the writing process in batch mode |
void |
acceptTrainingSet(TrainingSetEvent e)
Method reacts to a training set event and starts the writing process in batch mode |
String |
getCustomName()
Get the custom (descriptive) name for this bean (if one has been set) |
boolean |
getRelationNameForFilename()
Get whether the relation name is the primary part of the filename. |
Saver |
getSaverTemplate()
Get the saver |
Object |
getWrappedAlgorithm()
Get the saver |
String |
globalInfo()
Global info (if it exists) for the wrapped loader |
boolean |
isBusy()
Returns true if. |
static void |
main(String[] args)
The main method for testing |
void |
saveBatch()
Saves instances in batch mode |
void |
setCustomName(String name)
Set a custom (descriptive) name for this bean |
void |
setEnvironment(Environment env)
Set environment variables to use. |
void |
setRelationNameForFilename(boolean r)
Set whether to use the relation name as the primary part of the filename. |
void |
setSaverTemplate(Saver saver)
Set the loader to use |
void |
setWrappedAlgorithm(Object algorithm)
Set the saver |
void |
stop()
Stops the bean |
| Methods inherited from class weka.gui.beans.AbstractDataSink |
|---|
connectionAllowed, connectionAllowed, connectionNotification, disconnectionNotification, getVisual, setLog, setVisual, useDefaultVisual |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Saver()
| Method Detail |
|---|
public boolean isBusy()
isBusy in interface BeanCommonpublic String globalInfo()
public void setCustomName(String name)
setCustomName in interface BeanCommonname - the name to usepublic String getCustomName()
getCustomName in interface BeanCommonpublic void setEnvironment(Environment env)
setEnvironment in interface EnvironmentHandlerenv - the environment variables to
usepublic void setSaverTemplate(Saver saver)
saver - a Saverpublic void acceptDataSet(DataSetEvent e)
acceptDataSet in interface DataSourceListeneracceptDataSet in class AbstractDataSinke - a dataset eventpublic void acceptDataSet(ThresholdDataEvent e)
acceptDataSet in interface ThresholdDataListeneracceptDataSet in class AbstractDataSinke - threshold data event.public void acceptTestSet(TestSetEvent e)
acceptTestSet in interface TestSetListeneracceptTestSet in class AbstractDataSinke - test set eventpublic void acceptTrainingSet(TrainingSetEvent e)
acceptTrainingSet in interface TrainingSetListeneracceptTrainingSet in class AbstractDataSinke - a training set eventpublic void saveBatch()
public void acceptInstance(InstanceEvent e)
acceptInstance in interface InstanceListeneracceptInstance in class AbstractDataSinke - instance eventpublic Saver getSaverTemplate()
weka.core.converters.Saver valuepublic void setWrappedAlgorithm(Object algorithm)
setWrappedAlgorithm in interface WekaWrapperalgorithm - a Saverpublic Object getWrappedAlgorithm()
getWrappedAlgorithm in interface WekaWrapperpublic void setRelationNameForFilename(boolean r)
r - true if the relation name is to be part of the filename.public boolean getRelationNameForFilename()
public void stop()
stop in interface BeanCommonstop in class AbstractDataSinkpublic static void main(String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||