Class ReactionSearch
- java.lang.Object
-
- com.actelion.research.chem.reaction.ReactionSearch
-
public class ReactionSearch extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description 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.
-
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()
-
-
-
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 searchedprogressController
- 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()
-
-