|
||||||||||
| 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.Clusterer
public class Clusterer
Bean that wraps around weka.clusterers
JPanel,
BeanCommon,
Visible,
WekaWrapper,
Serializable,
UserRequestAcceptor,
TrainingSetListener,
TestSetListener,
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 | |
|---|---|
Clusterer()
Creates a new Clusterer instance. |
|
| Method Summary | |
|---|---|
void |
acceptTestSet(TestSetEvent e)
Accepts a test set for a batch trained clusterer |
void |
acceptTrainingSet(TrainingSetEvent e)
Accepts a training set and builds batch clusterer |
void |
addBatchClustererListener(BatchClustererListener cl)
Add a batch clusterer listener |
void |
addConfigurationListener(ConfigurationListener cl)
We don't have to keep track of configuration listeners (see the documentation for ConfigurationListener/ConfigurationEvent). |
void |
addGraphListener(GraphListener cl)
Add a graph listener |
void |
addTextListener(TextListener cl)
Add a text listener |
boolean |
connectionAllowed(EventSetDescriptor esd)
Returns true if, at this time, the object will accept a connection according to the supplied EventSetDescriptor |
boolean |
connectionAllowed(String eventName)
Returns true if, at this time, the object will accept a connection with respect to the named event |
void |
connectionNotification(String eventName,
Object source)
Notify this object that it has been registered as a listener with a source with respect to the named event |
void |
disconnectionNotification(String eventName,
Object source)
Notify this object that it has been deregistered as a listener with a source with respect to the supplied event name |
Enumeration |
enumerateRequests()
Return an enumeration of requests that can be made by the user |
boolean |
eventGeneratable(EventSetDescriptor esd)
Returns true, if at the current time, the event described by the supplied event descriptor could be generated. |
boolean |
eventGeneratable(String eventName)
Returns true, if at the current time, the named event could be generated. |
Clusterer |
getClusterer()
Get the clusterer currently set for this wrapper |
String |
getCustomName()
Get the custom (descriptive) name for this bean (if one has been set) |
BeanVisual |
getVisual()
Gets the visual appearance of this wrapper bean |
Object |
getWrappedAlgorithm()
Returns the wrapped clusterer |
String |
globalInfo()
Global info (if it exists) for the wrapped classifier |
boolean |
hasIncomingBatchInstances()
Returns true if this clusterer has an incoming connection that is a batch set of instances |
boolean |
isBusy()
Returns true if. |
void |
loadModel()
|
void |
performRequest(String request)
Perform a particular request |
void |
removeBatchClustererListener(BatchClustererListener cl)
Remove a batch clusterer listener |
void |
removeConfigurationListener(ConfigurationListener cl)
We don't have to keep track of configuration listeners (see the documentation for ConfigurationListener/ConfigurationEvent). |
void |
removeGraphListener(GraphListener cl)
Remove a graph listener |
void |
removeTextListener(TextListener cl)
Remove a text listener |
void |
saveModel()
|
void |
setClusterer(Clusterer c)
Set the clusterer for this wrapper |
void |
setCustomName(String name)
Set a custom (descriptive) name for this bean |
void |
setLog(Logger logger)
Set a logger |
void |
setVisual(BeanVisual newVisual)
Sets the visual appearance of this wrapper bean |
void |
setWrappedAlgorithm(Object algorithm)
Sets the algorithm (clusterer) for this bean |
void |
stop()
Stop any clusterer action |
void |
useDefaultVisual()
Use the default visual appearance for this bean |
| 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 Clusterer()
Clusterer instance.
| Method Detail |
|---|
public String globalInfo()
public void setCustomName(String name)
setCustomName in interface BeanCommonname - the name to usepublic String getCustomName()
getCustomName in interface BeanCommonpublic void setClusterer(Clusterer c)
c - a weka.clusterers.Clusterer valuepublic boolean hasIncomingBatchInstances()
boolean valuepublic Clusterer getClusterer()
weka.clusterers.Clusterer valuepublic void setWrappedAlgorithm(Object algorithm)
setWrappedAlgorithm in interface WekaWrapperalgorithm - an Object value
IllegalArgumentException - if an error occurspublic Object getWrappedAlgorithm()
getWrappedAlgorithm in interface WekaWrapperObject valuepublic void acceptTrainingSet(TrainingSetEvent e)
acceptTrainingSet in interface TrainingSetListenere - a TrainingSetEvent valuepublic void acceptTestSet(TestSetEvent e)
acceptTestSet in interface TestSetListenere - a TestSetEvent valuepublic void setVisual(BeanVisual newVisual)
setVisual in interface VisiblenewVisual - a BeanVisual valuepublic BeanVisual getVisual()
getVisual in interface VisibleBeanVisual valuepublic void useDefaultVisual()
useDefaultVisual in interface Visiblepublic void addBatchClustererListener(BatchClustererListener cl)
cl - a BatchClustererListener valuepublic void removeBatchClustererListener(BatchClustererListener cl)
cl - a BatchClustererListener valuepublic void addGraphListener(GraphListener cl)
cl - a GraphListener valuepublic void removeGraphListener(GraphListener cl)
cl - a GraphListener valuepublic void addTextListener(TextListener cl)
cl - a TextListener valuepublic void removeTextListener(TextListener cl)
cl - a TextListener valuepublic void addConfigurationListener(ConfigurationListener cl)
addConfigurationListener in interface ConfigurationProducercl - a ConfigurationListener.public void removeConfigurationListener(ConfigurationListener cl)
removeConfigurationListener in interface ConfigurationProducercl - a ConfigurationListener.public boolean connectionAllowed(String eventName)
connectionAllowed in interface BeanCommoneventName - the event
public boolean connectionAllowed(EventSetDescriptor esd)
connectionAllowed in interface BeanCommonesd - the EventSetDescriptor
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 boolean isBusy()
isBusy in interface BeanCommonpublic void stop()
stop in interface BeanCommonpublic void setLog(Logger logger)
setLog in interface BeanCommonlogger - a Logger valuepublic void saveModel()
public void loadModel()
public Enumeration enumerateRequests()
enumerateRequests in interface UserRequestAcceptorEnumeration valuepublic void performRequest(String request)
performRequest in interface UserRequestAcceptorrequest - the request to perform
IllegalArgumentException - if an error occurspublic boolean eventGeneratable(EventSetDescriptor esd)
esd - an EventSetDescriptor value
boolean valuepublic boolean eventGeneratable(String eventName)
eventGeneratable in interface EventConstraintseventName - the name of the event in question
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||