程序包 weka.gui.beans

接口 BeanCommon

所有已知实现类:
AbstractDataSink, AbstractEvaluator, AbstractTestSetProducer, AbstractTrainAndTestSetProducer, AbstractTrainingSetProducer, Associator, ClassAssigner, Classifier, ClassifierPerformanceEvaluator, ClassValuePicker, Clusterer, ClustererPerformanceEvaluator, CostBenefitAnalysis, CrossValidationFoldMaker, Filter, IncrementalClassifierEvaluator, InstanceStreamToBatchMaker, Loader, MetaBean, PredictionAppender, Saver, SerializedModelSaver, StripChart, TestSetMaker, TextViewer, TrainingSetMaker, TrainTestSplitMaker

public interface BeanCommon
Interface specifying routines that all weka beans should implement in order to allow the bean environment to exercise some control over the bean and also to allow the bean to exercise some control over connections. Beans may want to impose constraints in terms of the number of connections they will allow via a particular listener interface. Some beans may only want to be registered as a listener for a particular event type with only one source, or perhaps a limited number of sources.
从以下版本开始:
1.0
版本:
$Revision: 4806 $
作者:
Mark Hall
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    Returns true if, at this time, the object will accept a connection via the supplied EventSetDescriptor
    boolean
    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 recieving events described by the named event This object is responsible for recording this fact.
    void
    Notify this object that it has been deregistered as a listener with a source for named event.
    Get the custom (descriptive) name for this bean (if one has been set)
    boolean
    Returns true if.
    void
    Set a custom (descriptive) name for this bean
    void
    setLog(Logger logger)
    Set a logger
    void
    Stop any processing that the bean might be doing.
  • 方法详细资料

    • setCustomName

      void setCustomName(String name)
      Set a custom (descriptive) name for this bean
      参数:
      name - the name to use
    • getCustomName

      String getCustomName()
      Get the custom (descriptive) name for this bean (if one has been set)
      返回:
      the custom name (or the default name)
    • stop

      void stop()
      Stop any processing that the bean might be doing.
    • isBusy

      boolean isBusy()
      Returns true if. at this time, the bean is busy with some (i.e. perhaps a worker thread is performing some calculation).
      返回:
      true if the bean is busy.
    • setLog

      void setLog(Logger logger)
      Set a logger
      参数:
      logger - a weka.gui.Logger value
    • connectionAllowed

      boolean connectionAllowed(EventSetDescriptor esd)
      Returns true if, at this time, the object will accept a connection via the supplied EventSetDescriptor
      参数:
      esd - the EventSetDescriptor
      返回:
      true if the object will accept a connection
    • connectionAllowed

      boolean connectionAllowed(String eventName)
      Returns true if, at this time, the object will accept a connection via the named event
      参数:
      eventName - the name of the event
      返回:
      true if the object will accept a connection
    • connectionNotification

      void connectionNotification(String eventName, Object source)
      Notify this object that it has been registered as a listener with a source for recieving events described by the named event This object is responsible for recording this fact.
      参数:
      eventName - the event
      source - the source with which this object has been registered as a listener
    • disconnectionNotification

      void disconnectionNotification(String eventName, Object source)
      Notify this object that it has been deregistered as a listener with a source for named event. This object is responsible for recording this fact.
      参数:
      eventName - the event
      source - the source with which this object has been registered as a listener