|
||||||||||
| 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.AbstractDataSource
weka.gui.beans.Loader
public class Loader
Loads data sets using weka.core.converter classes
AbstractDataSource,
UserRequestAcceptor,
Serialized Form| 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 | |
|---|---|
Loader()
|
|
| Method Summary | |
|---|---|
void |
addDataSourceListener(DataSourceListener dsl)
Add a listener |
void |
addInstanceListener(InstanceListener dsl)
Add an instance listener |
boolean |
connectionAllowed(EventSetDescriptor esd)
Returns true if, at this time, the object will accept a connection via the supplied EventSetDescriptor. |
boolean |
connectionAllowed(String eventName)
Returns true if, at this time, the object will accept a connection via the named event |
void |
connectionNotification(String eventName,
Object source)
Notify this object that it has been registered as a listener with a source for receiving events described by the named event This object is responsible for recording this fact. |
void |
disconnectionNotification(String eventName,
Object source)
Notify this object that it has been deregistered as a listener with a source for named event. |
boolean |
eventGeneratable(String eventName)
Returns true if the named event can be generated at this time |
String |
getCustomName()
Get the custom (descriptive) name for this bean (if one has been set) |
Loader |
getLoader()
Get the loader |
String |
getStartMessage()
Gets a string that describes the start action. |
Instances |
getStructure(String eventName)
Get the structure of the output encapsulated in the named event. |
Object |
getWrappedAlgorithm()
Get the loader |
String |
globalInfo()
Global info (if it exists) for the wrapped loader |
boolean |
isBusy()
Returns true if. |
static void |
main(String[] args)
|
void |
removeDataSourceListener(DataSourceListener dsl)
Remove a listener |
void |
removeInstanceListener(InstanceListener dsl)
Remove an instance listener |
void |
setBeanContext(BeanContext bc)
Set a bean context for this bean |
void |
setCustomName(String name)
Set a custom (descriptive) name for this bean |
void |
setDB(boolean flag)
|
void |
setEnvironment(Environment env)
Set environment variables to use. |
void |
setLoader(Loader loader)
Set the loader to use |
void |
setLog(Logger logger)
Set a logger |
void |
setWrappedAlgorithm(Object algorithm)
Set the loader |
void |
start()
Start loading |
void |
startLoading()
Start loading data |
void |
stop()
Stop any loading action. |
| Methods inherited from class weka.gui.beans.AbstractDataSource |
|---|
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, getVisual, removePropertyChangeListener, removeVetoableChangeListener, 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 Loader()
| Method Detail |
|---|
public String globalInfo()
public void setDB(boolean flag)
public void setBeanContext(BeanContext bc)
setBeanContext in interface BeanContextChildsetBeanContext in class AbstractDataSourcebc - a BeanContext valuepublic void setLoader(Loader loader)
loader - a weka.core.converters.Loader valuepublic Instances getStructure(String eventName)
getStructure in interface StructureProducereventName - the name of the output event that encapsulates
the requested output.
public Loader getLoader()
weka.core.converters.Loader valuepublic void setWrappedAlgorithm(Object algorithm)
setWrappedAlgorithm in interface WekaWrapperalgorithm - a Loader
IllegalArgumentException - if an error occurspublic Object getWrappedAlgorithm()
getWrappedAlgorithm in interface WekaWrapperpublic void startLoading()
public void start()
throws Exception
start in interface StartableException - if something goes wrongpublic String getStartMessage()
getStartMessage in interface Startablepublic boolean eventGeneratable(String eventName)
eventGeneratable in interface EventConstraintseventName - the event
boolean valuepublic void addDataSourceListener(DataSourceListener dsl)
addDataSourceListener in interface DataSourceaddDataSourceListener in class AbstractDataSourcedsl - a DataSourceListener valuepublic void removeDataSourceListener(DataSourceListener dsl)
removeDataSourceListener in interface DataSourceremoveDataSourceListener in class AbstractDataSourcedsl - a DataSourceListener valuepublic void addInstanceListener(InstanceListener dsl)
addInstanceListener in interface DataSourceaddInstanceListener in class AbstractDataSourcedsl - a InstanceListener valuepublic void removeInstanceListener(InstanceListener dsl)
removeInstanceListener in interface DataSourceremoveInstanceListener in class AbstractDataSourcedsl - a InstanceListener valuepublic static void main(String[] args)
public void setCustomName(String name)
setCustomName in interface BeanCommonname - the name to usepublic String getCustomName()
getCustomName in interface BeanCommonpublic void setLog(Logger logger)
setLog in interface BeanCommonlogger - a weka.gui.Logger valuepublic void setEnvironment(Environment env)
setEnvironment in interface EnvironmentHandlerenv - the environment variables to
usepublic boolean connectionAllowed(EventSetDescriptor esd)
connectionAllowed in interface BeanCommonesd - the EventSetDescriptor
public boolean connectionAllowed(String eventName)
connectionAllowed in interface BeanCommoneventName - the name of the event
public void connectionNotification(String eventName,
Object source)
connectionNotification in interface BeanCommoneventName - the eventsource - the source with which this object has been registered as
a listener
public void disconnectionNotification(String eventName,
Object source)
disconnectionNotification in interface BeanCommoneventName - the eventsource - the source with which this object has been registered as
a listenerpublic void stop()
stop in interface BeanCommonpublic boolean isBusy()
isBusy in interface BeanCommon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||