Interface BeanCommon

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean connectionAllowed​(java.beans.EventSetDescriptor esd)
      Returns true if, at this time, the object will accept a connection via the supplied EventSetDescriptor
      boolean connectionAllowed​(java.lang.String eventName)
      Returns true if, at this time, the object will accept a connection via the named event
      void connectionNotification​(java.lang.String eventName, java.lang.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 disconnectionNotification​(java.lang.String eventName, java.lang.Object source)
      Notify this object that it has been deregistered as a listener with a source for named event.
      java.lang.String getCustomName()
      Get the custom (descriptive) name for this bean (if one has been set)
      boolean isBusy()
      Returns true if.
      void setCustomName​(java.lang.String name)
      Set a custom (descriptive) name for this bean
      void setLog​(Logger logger)
      Set a logger
      void stop()
      Stop any processing that the bean might be doing.
    • Method Detail

      • setCustomName

        void setCustomName​(java.lang.String name)
        Set a custom (descriptive) name for this bean
        Parameters:
        name - the name to use
      • getCustomName

        java.lang.String getCustomName()
        Get the custom (descriptive) name for this bean (if one has been set)
        Returns:
        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).
        Returns:
        true if the bean is busy.
      • setLog

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

        boolean connectionAllowed​(java.beans.EventSetDescriptor esd)
        Returns true if, at this time, the object will accept a connection via the supplied EventSetDescriptor
        Parameters:
        esd - the EventSetDescriptor
        Returns:
        true if the object will accept a connection
      • connectionAllowed

        boolean connectionAllowed​(java.lang.String eventName)
        Returns true if, at this time, the object will accept a connection via the named event
        Parameters:
        eventName - the name of the event
        Returns:
        true if the object will accept a connection
      • connectionNotification

        void connectionNotification​(java.lang.String eventName,
                                    java.lang.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.
        Parameters:
        eventName - the event
        source - the source with which this object has been registered as a listener
      • disconnectionNotification

        void disconnectionNotification​(java.lang.String eventName,
                                       java.lang.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.
        Parameters:
        eventName - the event
        source - the source with which this object has been registered as a listener