Class ReactionSearch


  • public class ReactionSearch
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setMatchLimit​(int maxSSSMatches, int maxNonSSSMatches)
      If the search shall be aborted once it exceed a given number of matches, then define the maximum number of matches with this method before starting the search.
      int[] start()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReactionSearch

        public ReactionSearch​(ReactionSearchSpecification specification,
                              ReactionSearchDataSource dataSource,
                              StructureSearchController searchController,
                              ProgressController progressController)
        This contructs a new structure search, which upon calling start() runs a multithreaded structure search on the structure rows provided by dataSource. If a searchController is given, this is asked for every row, whether the row meets all preconditions and qualifies for the search.
        Parameters:
        specification -
        dataSource -
        searchController - may be null, if all rows need to be searched
        progressController - may be null
    • Method Detail

      • setMatchLimit

        public void setMatchLimit​(int maxSSSMatches,
                                  int maxNonSSSMatches)
        If the search shall be aborted once it exceed a given number of matches, then define the maximum number of matches with this method before starting the search. Calling start with then return the first maximum count valid matches.
        Parameters:
        maxSSSMatches - maximum number of allowed sub-reaction/retron search matches (0: no limit)
        maxNonSSSMatches - maximum number of allowed matches for other search types (0: no limit)
      • start

        public int[] start()