Class IncrementalClassifierEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class IncrementalClassifierEvent
    extends java.util.EventObject
    Class encapsulating an incrementally built classifier and current instance
    Since:
    1.0
    Version:
    $Revision: 1.9 $
    Author:
    Mark Hall
    See Also:
    EventObject, Serialized Form
    • Constructor Detail

      • IncrementalClassifierEvent

        public IncrementalClassifierEvent​(java.lang.Object source,
                                          Classifier scheme,
                                          Instance currentI,
                                          int status)
        Creates a new IncrementalClassifierEvent instance.
        Parameters:
        source - the source of the event
        scheme - the classifier
        currentI - the current instance
        status - the status
      • IncrementalClassifierEvent

        public IncrementalClassifierEvent​(java.lang.Object source,
                                          Classifier scheme,
                                          Instances structure)
        Creates a new incremental classifier event that encapsulates header information and classifier.
        Parameters:
        source - an Object value
        scheme - a Classifier value
        structure - an Instances value
      • IncrementalClassifierEvent

        public IncrementalClassifierEvent​(java.lang.Object source)
    • Method Detail

      • getClassifier

        public Classifier getClassifier()
        Get the classifier
        Returns:
        the classifier
      • setClassifier

        public void setClassifier​(Classifier c)
      • getCurrentInstance

        public Instance getCurrentInstance()
        Get the current instance
        Returns:
        the current instance
      • setCurrentInstance

        public void setCurrentInstance​(Instance i)
        Set the current instance for this event
        Parameters:
        i - an Instance value
      • getStatus

        public int getStatus()
        Get the status
        Returns:
        an int value
      • setStatus

        public void setStatus​(int s)
        Set the status
        Parameters:
        s - an int value
      • setStructure

        public void setStructure​(Instances structure)
        Set the instances structure
        Parameters:
        structure - an Instances value
      • getStructure

        public Instances getStructure()
        Get the instances structure (may be null if this is not a NEW_BATCH event)
        Returns:
        an Instances value