Class ScriptedClassifierUtils.InitObserver

  • All Implemented Interfaces:
    adams.core.discovery.PropertyTraversal.Observer
    Enclosing class:
    ScriptedClassifierUtils

    public static class ScriptedClassifierUtils.InitObserver
    extends Object
    implements adams.core.discovery.PropertyTraversal.Observer
    Observer that initializes for prediction.
    • Field Detail

      • m_Context

        protected adams.flow.core.Actor m_Context
        the context to use.
      • m_Initializations

        protected int m_Initializations
        the number of initializations that took place.
    • Constructor Detail

      • InitObserver

        public InitObserver​(adams.flow.core.Actor context)
        Initializes the observer.
        Parameters:
        context - the context to set
    • Method Detail

      • observe

        public boolean observe​(adams.core.discovery.PropertyPath.Path path,
                               PropertyDescriptor desc,
                               Object parent,
                               Object child)
        Presents the current path, descriptor and object to the observer.
        Specified by:
        observe in interface adams.core.discovery.PropertyTraversal.Observer
        Parameters:
        path - the path
        desc - the property descriptor
        parent - the parent object
        child - the child object
        Returns:
        true if to continue observing
      • getInitializations

        public int getInitializations()
        Returns the number of updates.
        Returns:
        the updates