Class AbstractTrainableRowFinder

    • Field Detail

      • m_Trained

        protected boolean m_Trained
        whether the row finder was trained already.
    • Constructor Detail

      • AbstractTrainableRowFinder

        public AbstractTrainableRowFinder()
    • Method Detail

      • reset

        protected void reset()
        Resets the object, including the trained state.
        Overrides:
        reset in class AbstractOptionHandler
      • doTrainRowFinder

        protected abstract boolean doTrainRowFinder​(SpreadSheet data)
        Performs the actual training of the row finder with the specified spreadsheet.
        Parameters:
        data - the training data
        Returns:
        true if successfully trained
      • trainRowFinder

        public boolean trainRowFinder​(SpreadSheet data)
        Trains the row finder with the specified spreadsheet.
        Specified by:
        trainRowFinder in interface TrainableRowFinder
        Parameters:
        data - the training data
        Returns:
        true if successfully trained
      • isRowFinderTrained

        public boolean isRowFinderTrained()
        Checks whether the row finder has been trained.
        Specified by:
        isRowFinderTrained in interface TrainableRowFinder
        Returns:
        true if the row finder has been trained already
      • check

        protected void check​(SpreadSheet data)
        Checks the data.

        Trains the row finder with the given data if not yet trained.
        Overrides:
        check in class AbstractRowFinder
        Parameters:
        data - the data to check