|
|||||||||
| 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()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Makes an identical copy of this SearchObject. |
void |
clonecopy(SearchOptions other)
Copies parameters to other. |
void |
deepCopy(SearchOptions other)
Deprecated. since 5.0.2 Please use clonecopy(SearchOptions) instead |
int |
getHitIndexType()
Returns the representation on which the the hit indexes are given in case of markush search. |
int |
getMarkushArom()
|
java.lang.String |
getOption(java.lang.String name)
Returns search option value in string format. |
protected java.lang.String[] |
getOptionNames()
|
boolean |
isDistinctFirstAtomMatching()
|
boolean |
isHitIncludesRNodes()
Specifies the result format for R-group queries. |
boolean |
isMarkushEnabled()
|
boolean |
isMarkushHitSupergraph()
Deprecated. since 5.0 |
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 |
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)
Specifies the result format for R-group queries. |
void |
setHitIndexType(int value)
|
void |
setMarkushArom(int value)
Default is MARKUSH_AROM_FINAL_CHECK (consider Markush aromatization during Markush search and check the hit afterwards). |
void |
setMarkushEnabled(boolean value)
|
void |
setMarkushHitSupergraph(boolean value)
Deprecated. use setHitIndexType(int) |
void |
setOption(int option,
int value)
Deprecated. Since 5.0 Use setters instead. setHitIndexType(int), setMarkushEnabled(boolean), setMarkushArom(int) |
void |
setOption(java.lang.String name,
java.lang.String value)
Sets 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 |
setTargetAbsoluteStereo(boolean value)
Sets whether the chiral flag should be ignored or not for the target molecule. |
java.util.ArrayList |
toList()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MolSearchOptions()
| 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.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.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.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.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.R_NODE_PLACEHOLDER, thus
maintaining root indexes in the result.
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
SearchConstants.R_NODE_PLACEHOLDER, thus maintaining root indexes in
the result.public boolean isSubgraphSearch()
isSubgraphSearch in class SearchOptionspublic void setSubgraphSearch(boolean value)
setSubgraphSearch in class SearchOptionsvalue - true for substructure and full fragment search,
false for full structure search and duplicate search.public boolean isMarkushHitSupergraph()
public int getHitIndexType()
setHitIndexType(int),
SearchConstants.MARKUSH_HIT_ORIGINAL,
SearchConstants.MARKUSH_HIT_INNERpublic void setMarkushHitSupergraph(boolean value)
setHitIndexType(int)
value - true, if search should return hit indices
of the inner, compiled representation of a Markush target
if false the search will return hit indexes of the original
Markush target.
(instead of the original Markush target).public void setHitIndexType(int value)
value - specifies the representation on which the hit indexes are given
in case of markush search.
Possible values: SearchConstants.MARKUSH_HIT_ORIGINAL (default)
SearchConstants.MARKUSH_HIT_INNERpublic boolean isMarkushEnabled()
public void setMarkushEnabled(boolean value)
value - true, if a target containing Markush features
should be treated as Markush librarypublic int getMarkushArom()
SearchConstants.MARKUSH_AROM_FINAL_CHECK,
SearchConstants.MARKUSH_AROM_NO_FINAL_CHECK,
SearchConstants.MARKUSH_AROM_OFFpublic void setMarkushArom(int value)
value - the desired Markush aromatic search optionSearchConstants.MARKUSH_AROM_FINAL_CHECK,
SearchConstants.MARKUSH_AROM_NO_FINAL_CHECK,
SearchConstants.MARKUSH_AROM_OFFpublic 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.public boolean isDistinctFirstAtomMatching()
setDistinctFirstAtomMatching(boolean)
public void setOption(int option,
int value)
setOption in class SearchOptionsoption - Option identifier to be set.value - Value of option to be set.SearchConstants.OPTION_MARKUSH_HIT,
SearchConstants.OPTION_MARKUSH_ENABLED,
SearchConstants.OPTION_MARKUSH_AROM
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 SearchOptionspublic void deepCopy(SearchOptions other)
clonecopy(SearchOptions) instead
deepCopy in class SearchOptionspublic java.util.ArrayList 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 | ||||||||