|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.sss.search.SearchOptions
chemaxon.sss.search.MolSearchOptions
public class MolSearchOptions
Class to encapsulate search parameters used by MolSearch.
| Field Summary |
|---|
| Fields inherited from class chemaxon.sss.search.SearchOptions |
|---|
dirty, options, verbose |
| Constructor Summary | |
|---|---|
MolSearchOptions()
Deprecated. As of release 5.5, replaced by MolSearchOptions(int) |
|
MolSearchOptions(int searchType)
Creates a MolSearchOptions object while setting different search options according to a predefined search type. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Makes an identical copy of this SearchObject. |
void |
clonecopy(SearchOptions other)
Copies parameters to other. |
void |
clonecopyOptions(SearchOptions other)
Copies all search options except search type to other. |
int |
getHitIndexType()
Returns the representation on which the hit indexes are given in case of Markush search. |
int |
getMarkushArom()
Gets the Markush aromatic search behavior. |
java.lang.String |
getOption(java.lang.String name)
Returns search option value in string format. |
protected java.lang.String[] |
getOptionNames()
Gets the names for all search options. |
boolean |
isDistinctFirstAtomMatching()
Get option ensuring that upon the findNext() call the first atom must be stepped as well. |
boolean |
isHitIncludesRNodes()
Specifies the result format for R-group queries. |
boolean |
isMarkushEnabled()
Specifies whether a target containing Markush features should be treated as a Markush library. |
boolean |
isQueryAbsoluteStereo()
Returns whether the chiral flag is ignored or not for the query molecule. |
boolean |
isSubgraphSearch()
Returns whether currently subgraph or complete graph matching is performed. |
boolean |
isSwitchOffAllProtectsForTDF()
Specifies whether all protects are switched off during generic tautomer creation. |
boolean |
isTargetAbsoluteStereo()
Returns whether the chiral flag is ignored or not for the target molecule. |
void |
setDistinctFirstAtomMatching(boolean b)
Option ensuring that upon the findNext() call the first atom must be stepped as well. |
void |
setHitIncludesRNodes(boolean value)
Set the result format for R-group queries. |
void |
setHitIndexType(int value)
Set the representation to use for hit indexes in case of Markush search. |
void |
setMarkushArom(int value)
Set handling of Markush aromatization information (ambiguous aromatic rings) during Markush search |
void |
setMarkushEnabled(boolean value)
Sets whether targets containing Markush features should be treated as Markush libraries |
void |
setOption(java.lang.String name,
java.lang.String value)
Sets a search options. |
void |
setQueryAbsoluteStereo(boolean value)
Sets whether the chiral flag should be ignored or not for the query molecule. |
void |
setSubgraphSearch(boolean value)
Specifies whether subgraph or complete graph matching should be performed. |
void |
setSwitchOffAllProtectsForTDF(boolean value)
Sets the switch off all protects for generic tautomer creation. |
void |
setTargetAbsoluteStereo(boolean value)
Sets whether the chiral flag should be ignored or not for the target molecule. |
java.util.ArrayList<java.lang.String> |
toList()
Get all search option names. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated public MolSearchOptions()
MolSearchOptions(int)
SearchConstants.DEFAULT_SEARCHTYPE
MolSearchOptions(int)public MolSearchOptions(int searchType)
SearchConstants.NO_SCREEN,
SearchConstants.NO_ABAS,
SearchConstants.SUBSTRUCTURE
(default),
SearchConstants.SUPERSTRUCTURE
(no query features allowed),
SearchConstants.SIMILARITY,
SearchConstants.FULL,
SearchConstants.DUPLICATE,
SearchConstants.FULL_FRAGMENT and
SearchConstants.MARKUSH_MCS.
searchType - the predefined search type| Method Detail |
|---|
public boolean isQueryAbsoluteStereo()
true, if chiral centers in the query molecule are
regarded as absolute stereo, ignoring the chiral flag. If the
molecule contains any enhanced stereo labels, this flag has no
effect.
true.setQueryAbsoluteStereo(boolean)public void setQueryAbsoluteStereo(boolean value)
value - if true, chiral centers in the query molecule
are regarded as absolute stereo, ignoring the chiral flag. If
the molecule contains any enhanced stereo labels, this flag
has no effect.
true.isQueryAbsoluteStereo()public boolean isTargetAbsoluteStereo()
true, if chiral centers in the target molecule
are regarded as absolute stereo, ignoring the chiral flag. If the
molecule contains any enhanced stereo labels, this flag has no
effect.
truesetTargetAbsoluteStereo(boolean)public void setTargetAbsoluteStereo(boolean value)
value - if true, chiral centers in the target molecule
are regarded as absolute stereo, ignoring the chiral flag. If
the molecule contains any enhanced stereo labels, this flag
has no effect.
true.isTargetAbsoluteStereo()public boolean isHitIncludesRNodes()
false,
the hits will contain only the matching atom indexes for non-R-group
atoms in the root structure, in order (default). In this case the hit
list contains less indexes, than the number of nodes in the root
structure. true, the hit list will contain placeholders
for the R-nodes with the value of SearchConstants.HIT_R, thus
maintaining root indexes in the result.
true if returned hit contains R-node indexes
true.setHitIncludesRNodes(boolean)public void setHitIncludesRNodes(boolean value)
value - if set to false, the hits will contain only
the matching atom indexes for non-R-group atoms in the root
structure, in order (default). In this case the hit list
contains less indexes, than the number of nodes in the root
structure. true, the hit list will contain
placeholders for the R-nodes with the value of
true.isHitIncludesRNodes()public boolean isSubgraphSearch()
isSubgraphSearch in class SearchOptionsDepends on search type.setSubgraphSearch(boolean),
MolSearchOptions(int),
SearchConstants.SUBSTRUCTUREpublic void setSubgraphSearch(boolean value)
setSubgraphSearch in class SearchOptionsvalue - true for substructure and full fragment search,
false for full structure search and duplicate search.
Depends on search type.isSubgraphSearch(),
MolSearchOptions(int)public int getHitIndexType()
SearchConstants.MARKUSH_HIT_ORIGINAL.setHitIndexType(int),
SearchConstants.MARKUSH_HIT_ORIGINAL,
SearchConstants.MARKUSH_HIT_INNERpublic void setHitIndexType(int value)
value - specifies the representation on which the hit indexes are given
in case of Markush search.
SearchConstants.MARKUSH_HIT_ORIGINAL.SearchConstants.MARKUSH_HIT_ORIGINAL,
SearchConstants.MARKUSH_HIT_INNER,
getHitIndexType()public boolean isMarkushEnabled()
false.setMarkushEnabled(boolean)public void setMarkushEnabled(boolean value)
value - true, if a target containing Markush features
should be treated as Markush library
false.isMarkushEnabled()public int getMarkushArom()
MARKUSH_AROM_FINAL_CHECK (consider Markush aromatization
during Markush search and check the hit afterwards).SearchConstants.MARKUSH_AROM_FINAL_CHECK,
SearchConstants.MARKUSH_AROM_NO_FINAL_CHECK,
SearchConstants.MARKUSH_AROM_OFF,
setMarkushArom(int)public void setMarkushArom(int value)
value - the desired Markush aromatic search option
MARKUSH_AROM_FINAL_CHECK (consider Markush aromatization
during Markush search and check the hit afterwards).SearchConstants.MARKUSH_AROM_FINAL_CHECK,
SearchConstants.MARKUSH_AROM_NO_FINAL_CHECK,
SearchConstants.MARKUSH_AROM_OFF,
getMarkushArom()public void setDistinctFirstAtomMatching(boolean b)
SearchOptions.setKeepQueryOrder(boolean) is set to true. This must
be set to true, or the first atom can be arbitrary atom.
b - if true the first atom of the query must match on different target atoms
in findAll and findNext searches.
false.isDistinctFirstAtomMatching()public boolean isDistinctFirstAtomMatching()
SearchOptions.setKeepQueryOrder(boolean) is set to true. This must
be set to true, or the first atom can be arbitrary atom.
true if first atom should be different
false.setDistinctFirstAtomMatching(boolean)public void setSwitchOffAllProtectsForTDF(boolean value)
value - true if all protects should be disabled
during generic tautomer creation.
Default is false.isSwitchOffAllProtectsForTDF()public final boolean isSwitchOffAllProtectsForTDF()
true if protect features should be disabled
during generic tautomer creation
false.setSwitchOffAllProtectsForTDF(boolean)
public void setOption(java.lang.String name,
java.lang.String value)
setOption in class SearchOptionsname - Option name to be set.
Useable options:
value - String value of option to be set.SearchOptions.setOption(String, String),
getOption(String)public java.lang.String getOption(java.lang.String name)
getOption in class SearchOptionsname - Option name to get.
Useable options:
SearchOptions.getOption(String),
setOption(String, String)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
SearchOptions
clone in class SearchOptionsjava.lang.CloneNotSupportedExceptionpublic void clonecopy(SearchOptions other)
other.
It copies
other is a MolSearchOptions object
clonecopy in class SearchOptionsother - search option to overwrite.public void clonecopyOptions(SearchOptions other)
SearchOptions
clonecopyOptions in class SearchOptionsother - search option object to overwritepublic java.util.ArrayList<java.lang.String> toList()
toList in class SearchOptionsSearchOptions.setOptions(String),
SearchOptions.toString()protected java.lang.String[] getOptionNames()
getOptionNames in class SearchOptions
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||