Class StructureSearch


  • public class StructureSearch
    extends java.lang.Object
    • Constructor Detail

      • StructureSearch

        public StructureSearch​(StructureSearchSpecification specification,
                               StructureSearchDataSource dataSource,
                               StructureSearchController searchController,
                               ProgressController progressController,
                               DescriptorHandlerFactory dhFactory)
        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
        dhFactory - if null then the default DescriptorHandlerStandard2DFactory is used
    • 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-structure search matches (0: no limit)
        maxNonSSSMatches - maximum number of allowed matches for other search types (0: no limit)
      • start

        public int[] start()