Package com.chemaxon.search
Class SimpleSearcherFactory
- java.lang.Object
-
- com.chemaxon.search.SimpleSearcherFactory
-
@PublicAPI public class SimpleSearcherFactory extends Object
Factory for creatingSimpleSearcher
instances.
-
-
Constructor Summary
Constructors Constructor Description SimpleSearcherFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleSearcher
createAromatizedSearcher(com.chemaxon.search.AromatizationMethod method)
Creates a searcher that considers aromatization differences of the input molecule.static SimpleSearcher
createAromatizedSearcher(com.chemaxon.search.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
createSearcherWithoutAromatization()
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
).
-
-
-
Method Detail
-
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
public static SimpleSearcher createSearcherWithoutAromatization()
Creates a searcher that does not handle aromatization.- Returns:
- the created searcher object
-
createAromatizedSearcher
public static SimpleSearcher createAromatizedSearcher(com.chemaxon.search.AromatizationMethod method)
Creates a searcher that considers aromatization differences of the input molecule.- Parameters:
method
-AromatizationMethod
to be used- Returns:
- the created searcher object
-
createSearcherWithoutAromatization
public static SimpleSearcher createSearcherWithoutAromatization(MolSearchOptions searchOptions)
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(com.chemaxon.search.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
-
-