Package com.chemaxon.search
Class SimpleSearcherFactory
java.lang.Object
com.chemaxon.search.SimpleSearcherFactory
Factory for creating
SimpleSearcher
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleSearcher
Creates a searcher that considers aromatization differences of the input molecule.static SimpleSearcher
createAromatizedSearcher
(AromatizationMethod method, MolSearchOptions searchOptions) Creates a searcher which considers aromatization according to the specified rules and initializes it with the specified search options.static SimpleSearcher
createSearcher
(Transformer transformer, MolSearchOptions searchOptions) Constructs a searcher with the specified parameters.static SimpleSearcher
Creates a searcher that does not handle aromatization.static SimpleSearcher
createSearcherWithoutAromatization
(MolSearchOptions searchOptions) Creates a searcher that doesn't consider aromatization.static SimpleSearcher
createSearcherWithoutAromatization
(SimpleSearcher otherSearcher, MolSearchOptions searchOptions) Creates a searcher with the specified search options, other parameters (query, target, etc.) are copied from the specified searcher if possible (in case ofBaseMolSearch
).
-
Constructor Details
-
SimpleSearcherFactory
public SimpleSearcherFactory()
-
-
Method Details
-
createSearcher
public static SimpleSearcher createSearcher(Transformer transformer, MolSearchOptions searchOptions) Constructs a searcher with the specified parameters.- Parameters:
transformer
- the user supplied transformation which will be applied to both target and query.searchOptions
- the search options- Returns:
- the searcher
-
createSearcherWithoutAromatization
Creates a searcher that does not handle aromatization.- Returns:
- the created searcher object
-
createAromatizedSearcher
Creates a searcher that considers aromatization differences of the input molecule.- Parameters:
method
-AromatizationMethod
to be used- Returns:
- the created searcher object
-
createSearcherWithoutAromatization
Creates a searcher that doesn't consider aromatization. The searcher is initialized with the specified options.- Parameters:
searchOptions
-MolSearchOptions
to be used- Returns:
- the created searcher object
-
createAromatizedSearcher
public static SimpleSearcher createAromatizedSearcher(AromatizationMethod method, MolSearchOptions searchOptions) Creates a searcher which considers aromatization according to the specified rules and initializes it with the specified search options.- Parameters:
method
-AromatizationMethod
to be usedsearchOptions
-MolSearchOptions
to be used- Returns:
- the created searcher object
-
createSearcherWithoutAromatization
public static SimpleSearcher createSearcherWithoutAromatization(SimpleSearcher otherSearcher, MolSearchOptions searchOptions) Creates a searcher with the specified search options, other parameters (query, target, etc.) are copied from the specified searcher if possible (in case ofBaseMolSearch
).- Parameters:
otherSearcher
- other searcher from which parameters are copiedsearchOptions
-MolSearchOptions
to be used- Returns:
- the created searcher object
-