程序包 weka.gui.beans

类 ClassAssigner

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, BeanCommon, DataSource, DataSourceListener, EventConstraints, InstanceListener, StructureProducer, TestSetListener, TestSetProducer, TrainingSetListener, TrainingSetProducer, Visible

Bean that assigns a class attribute to a data set.
版本:
$Revision: 7439 $
作者:
Mark Hall
另请参阅:
  • 构造器详细资料

    • ClassAssigner

      public ClassAssigner()
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Global info for this bean
      返回:
      a String value
    • setCustomName

      public void setCustomName(String name)
      Set a custom (descriptive) name for this bean
      指定者:
      setCustomName 在接口中 BeanCommon
      参数:
      name - the name to use
    • getCustomName

      public String getCustomName()
      Get the custom (descriptive) name for this bean (if one has been set)
      指定者:
      getCustomName 在接口中 BeanCommon
      返回:
      the custom name (or the default name)
    • classColumnTipText

      public String classColumnTipText()
      Tool tip text for this property
      返回:
      a String value
    • getStructure

      public Instances getStructure(String eventName)
      Get the structure of the output encapsulated in the named event. If the structure can't be determined in advance of seeing input, or this StructureProducer does not generate the named event, null should be returned.
      指定者:
      getStructure 在接口中 StructureProducer
      参数:
      eventName - the name of the output event that encapsulates the requested output.
      返回:
      the structure of the output encapsulated in the named event or null if it can't be determined in advance of seeing input or the named event is not generated by this StructureProduce.
    • getConnectedFormat

      public Instances getConnectedFormat()
      Returns the structure of the incoming instances (if any)
      返回:
      an Instances value
    • setClassColumn

      public void setClassColumn(String col)
    • getClassColumn

      public String getClassColumn()
    • acceptDataSet

      public void acceptDataSet(DataSetEvent e)
      指定者:
      acceptDataSet 在接口中 DataSourceListener
    • acceptTrainingSet

      public void acceptTrainingSet(TrainingSetEvent e)
      从接口复制的说明: TrainingSetListener
      Accept and process a training set
      指定者:
      acceptTrainingSet 在接口中 TrainingSetListener
      参数:
      e - a TrainingSetEvent value
    • acceptTestSet

      public void acceptTestSet(TestSetEvent e)
      从接口复制的说明: TestSetListener
      Accept and process a test set event
      指定者:
      acceptTestSet 在接口中 TestSetListener
      参数:
      e - a TestSetEvent value
    • acceptInstance

      public void acceptInstance(InstanceEvent e)
      从接口复制的说明: InstanceListener
      Accept and process an instance event
      指定者:
      acceptInstance 在接口中 InstanceListener
      参数:
      e - an InstanceEvent value
    • addInstanceListener

      public void addInstanceListener(InstanceListener tsl)
      从接口复制的说明: DataSource
      Add an instance listener
      指定者:
      addInstanceListener 在接口中 DataSource
      参数:
      tsl - an InstanceListener value
    • removeInstanceListener

      public void removeInstanceListener(InstanceListener tsl)
      从接口复制的说明: DataSource
      Remove an instance listener
      指定者:
      removeInstanceListener 在接口中 DataSource
      参数:
      tsl - an InstanceListener value
    • addDataSourceListener

      public void addDataSourceListener(DataSourceListener tsl)
      从接口复制的说明: DataSource
      Add a data source listener
      指定者:
      addDataSourceListener 在接口中 DataSource
      参数:
      tsl - a DataSourceListener value
    • removeDataSourceListener

      public void removeDataSourceListener(DataSourceListener tsl)
      从接口复制的说明: DataSource
      Remove a data source listener
      指定者:
      removeDataSourceListener 在接口中 DataSource
      参数:
      tsl - a DataSourceListener value
    • addTrainingSetListener

      public void addTrainingSetListener(TrainingSetListener tsl)
      从接口复制的说明: TrainingSetProducer
      Add a training set listener
      指定者:
      addTrainingSetListener 在接口中 TrainingSetProducer
      参数:
      tsl - a TrainingSetListener value
    • removeTrainingSetListener

      public void removeTrainingSetListener(TrainingSetListener tsl)
      从接口复制的说明: TrainingSetProducer
      Remove a training set listener
      指定者:
      removeTrainingSetListener 在接口中 TrainingSetProducer
      参数:
      tsl - a TrainingSetListener value
    • addTestSetListener

      public void addTestSetListener(TestSetListener tsl)
      从接口复制的说明: TestSetProducer
      Add a listener for test set events
      指定者:
      addTestSetListener 在接口中 TestSetProducer
      参数:
      tsl - a TestSetListener value
    • removeTestSetListener

      public void removeTestSetListener(TestSetListener tsl)
      从接口复制的说明: TestSetProducer
      Remove a listener for test set events
      指定者:
      removeTestSetListener 在接口中 TestSetProducer
      参数:
      tsl - a TestSetListener value
    • addDataFormatListener

      public void addDataFormatListener(DataFormatListener dfl)
    • removeDataFormatListener

      public void removeDataFormatListener(DataFormatListener dfl)
    • setVisual

      public void setVisual(BeanVisual newVisual)
      从接口复制的说明: Visible
      Set a new visual representation
      指定者:
      setVisual 在接口中 Visible
      参数:
      newVisual - a BeanVisual value
    • getVisual

      public BeanVisual getVisual()
      从接口复制的说明: Visible
      Get the visual representation
      指定者:
      getVisual 在接口中 Visible
      返回:
      a BeanVisual value
    • useDefaultVisual

      public void useDefaultVisual()
      从接口复制的说明: Visible
      Use the default visual representation
      指定者:
      useDefaultVisual 在接口中 Visible
    • connectionAllowed

      public boolean connectionAllowed(String eventName)
      Returns true if, at this time, the object will accept a connection according to the supplied event name
      指定者:
      connectionAllowed 在接口中 BeanCommon
      参数:
      eventName - the event
      返回:
      true if the object will accept a connection
    • connectionAllowed

      public boolean connectionAllowed(EventSetDescriptor esd)
      Returns true if, at this time, the object will accept a connection according to the supplied EventSetDescriptor
      指定者:
      connectionAllowed 在接口中 BeanCommon
      参数:
      esd - the EventSetDescriptor
      返回:
      true if the object will accept a connection
    • connectionNotification

      public void connectionNotification(String eventName, Object source)
      Notify this object that it has been registered as a listener with a source with respect to the supplied event name
      指定者:
      connectionNotification 在接口中 BeanCommon
      参数:
      eventName - the event
      source - the source with which this object has been registered as a listener
    • disconnectionNotification

      public 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
      指定者:
      disconnectionNotification 在接口中 BeanCommon
      参数:
      eventName - the event
      source - the source with which this object has been registered as a listener
    • setLog

      public void setLog(Logger logger)
      从接口复制的说明: BeanCommon
      Set a logger
      指定者:
      setLog 在接口中 BeanCommon
      参数:
      logger - a weka.gui.Logger value
    • stop

      public void stop()
      从接口复制的说明: BeanCommon
      Stop any processing that the bean might be doing.
      指定者:
      stop 在接口中 BeanCommon
    • isBusy

      public boolean isBusy()
      Returns true if. at this time, the bean is busy with some (i.e. perhaps a worker thread is performing some calculation).
      指定者:
      isBusy 在接口中 BeanCommon
      返回:
      true if the bean is busy.
    • eventGeneratable

      public boolean eventGeneratable(String eventName)
      Returns true, if at the current time, the named event could be generated. Assumes that the supplied event name is an event that could be generated by this bean
      指定者:
      eventGeneratable 在接口中 EventConstraints
      参数:
      eventName - the name of the event in question
      返回:
      true if the named event could be generated at this point in time