Class UpdateStackingNumFolds.StackingObserver

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

    public static class UpdateStackingNumFolds.StackingObserver
    extends Object
    implements adams.core.discovery.PropertyTraversal.Observer
    Sets the noUpdate flag of LWLSynchro classifiers.
    • Field Detail

      • m_Updates

        protected int m_Updates
        the number of updates.
      • m_NumFolds

        protected int m_NumFolds
        the number of folds.
    • Constructor Detail

      • StackingObserver

        public StackingObserver​(int numFolds)
        Initializes the observer.
        Parameters:
        numFolds - the number of folds to use
    • 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
      • getUpdates

        public int getUpdates()
        Returns the number of updates that occurred.
        Returns:
        the number of updates