|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.sss.search.SearchOptions
public class SearchOptions
Class to encapsulate common search parameters.
| Field Summary | |
|---|---|
protected boolean |
dirty
This flag is set to true whenever any of the options change. |
protected int[] |
options
Field to store various options of the search. |
boolean |
verbose
For debugging purposes. |
| Constructor Summary | |
|---|---|
SearchOptions()
|
|
| Method Summary | |
|---|---|
void |
addUserComparator(MolComparator mc)
Adds the given user-defined comparator to the search. |
boolean |
areMonomersTransformed()
|
void |
clearChangesInUserComparators()
Used in initializing searches. |
java.lang.Object |
clone()
Makes an identical copy of this SearchObject. |
void |
clonecopy(SearchOptions other)
Copies all parameters to the other object. |
protected void |
deepCopy(SearchOptions toOther)
Deprecated. since 5.0.2 Please use clonecopy(SearchOptions) instead |
void |
deleteAllUserComparators()
|
void |
deleteUserComparator(MolComparator mc)
|
java.lang.String |
getAllOptionsAsString()
Returns a string that - describes the state of the options - can be the input of setOptions(String) - contains all options, including those which have their default value (except dissimilarity threshold in case of similarity search) |
java.lang.String |
getAllOptionsAsString(java.lang.String sep)
Returns a string that - describes the state of the options - can be the input of setOptions(String) - contains all options, including those which have their default value (except dissimilarity threshold in case of similarity search) |
int |
getAttachedDataMatch()
Returns whether attached data (in data sgroups) should be used when comparing structures. |
java.lang.String |
getAttachedDataPrefixes()
Returns the prefixes of the names of those data sgroups that will be used during structure comparison or null
if all data sgroups should be checked. |
protected static boolean |
getBoolean(java.lang.String value)
Returns value as a boolean flag. |
int |
getChargeMatching()
|
boolean |
getCheckSpHyb()
Returns true if sp-hybridization state of the atoms should be considered, false otherwise |
java.lang.String |
getChemTermsFilter()
Gets the Chemical Terms filtering expression |
java.lang.String |
getChemTermsFilterConfig()
Gets the configuration string for Chemical Terms filter. |
boolean |
getCompleteHG()
Retrieves the information if only complete structures are matching on target homology groups. |
int |
getDoubleBondStereoMatchingMode()
|
java.lang.String |
getExactSpecialAtomMatching()
Returns the identifiers of those special atoms that should match exactly during structure comparison. |
int |
getExhaustiveModeLimit()
Upon reaching this number of steps, the search switches to exhaustive mode from fast mode. |
int |
getHCountMatching()
|
int |
getImplicitHMatching()
|
int |
getIsotopeMatching()
|
int |
getOption(int option)
Deprecated. Since 5.0 Please use getters instead. |
java.lang.String |
getOption(java.lang.String name)
Returns option value in string format. |
protected java.lang.String[] |
getOptionNames()
|
int[] |
getOptions()
Deprecated. since 5.0 |
int |
getRadicalMatching()
|
boolean |
getRLigandEqualityCheck()
Returns true if undefined R-atoms with the same R-group ID
should match the same structure. |
int |
getSearchType()
Returns the currently set global search operation mode. |
int |
getStereoModel()
|
int |
getStereoSearchType()
|
int |
getTimeoutLimit()
The search timeouts reaching this number of steps. |
int |
getUndefinedRAtom()
Returns undefined R atom matching behaviour mode. |
MolComparator[] |
getUserComparators()
Because of efficiency reasons one should check hasUserComparators() before calling this method! |
int |
getVagueBondLevel()
Getter for vague bond level. |
boolean |
hasChangesInUserComparators()
Used in initializing searches. |
boolean |
hasUserComparators()
|
boolean |
isBridgingRAllowed()
Returns true if different undefined R-atoms can match the same group of atoms. |
boolean |
isCopolymerMatching()
|
boolean |
isDiastereomerMatching()
Deprecated. Please use getStereoSearchType() instead. |
boolean |
isDirty()
Returns the dirty flag. |
boolean |
isEndgroupMatching()
|
boolean |
isExactBondMatching()
Indicates whether bond types should match exactly - looking for query bonds target. |
boolean |
isExactFragment()
|
boolean |
isExactQueryAtomMatching()
Returns whether exact matching of query atom information is set. |
boolean |
isExactStereoMatching()
Deprecated. Please use getStereoSearchType() instead. |
boolean |
isFullFragment()
|
boolean |
isIgnoreCTExceptions()
|
boolean |
isKeepQueryOrder()
|
boolean |
isMixSgroupMatching()
|
boolean |
isOrderSensitiveSearch()
Indicates whether the search is order sensitive |
boolean |
isPerfectSearchType()
|
boolean |
isPhaseShiftedMatching()
|
boolean |
isPolymerMatching()
|
boolean |
isQHomologyHandling()
|
boolean |
isReactionUnpairedMapMatching()
|
boolean |
isStereoSearch()
Deprecated. Please use getStereoSearchType() instead. |
protected boolean |
isSubgraphSearch()
Returns the subgraph matching option. |
boolean |
isSuperstructureSearch()
True if the current search type is superstructure search. |
boolean |
isTautomerDuplicateFiltering()
|
boolean |
isTautomerSearch()
Indicates if tautomers of the query should be enumerated for search. |
boolean |
isUndefinedRAtomMatchingGroup()
Returns whether undefined R atom matches group of atoms. |
boolean |
isValenceMatching()
|
boolean |
isVerbose()
For debugging purposes only. |
protected java.lang.String |
returnOptionString(boolean value)
|
void |
setAttachedDataMatch(int value)
Sets whether attached data (in data sgroups) should be used when comparing structures. |
void |
setAttachedDataPrefixes(java.lang.String value)
Sets the prefixes of the names of those data sgroups that will be used during structure comparison. |
void |
setBridgingRAllowed(boolean value)
Sets whether different undefined R-atoms can match the same group of atoms. |
void |
setChargeMatching(int value)
|
void |
setCheckSpHyb(boolean checkSp)
Sets whether the sp-hybridization state of the atoms should be considered. |
void |
setChemTermsFilter(java.lang.String value)
Sets the Chemical Terms filtering expression. |
void |
setChemTermsFilterConfig(java.lang.String value)
Sets the configuration string for Chemical Terms filter. |
void |
setCompleteHG(boolean completeStr)
Sets if only complete structures should match on homology groups. |
void |
setCopolymerMatching(boolean value)
Adjusts copolymer matching mode. |
void |
setDiastereomerMatching(boolean value)
Deprecated. Please use setStereoSearchType(STEREO_DIASTEREOMER) and setStereoSearchType(STEREO_SPECIFIC) instead. |
void |
setDirty(boolean v)
Sets or clears the dirty flag. |
void |
setDoubleBondStereoMatchingMode(int value)
Sets how double bond cis/trans stereo information should match during the search. |
void |
setEndgroupMatching(boolean value)
Adjusts polymer end group matching. |
void |
setExactBondMatching(boolean value)
Specifies whether bond types should match exacly - looking for query bonds target. |
void |
setExactFragment(boolean value)
|
void |
setExactQueryAtomMatching(boolean isExact)
Sets whether exact query atom matching should be used or not. |
void |
setExactSpecialAtomMatching(java.lang.String value)
Sets the identifiers of those special atoms that should match exactly during structure comparison. |
void |
setExactStereoMatching(boolean value)
Deprecated. Please use setStereoSearchType(STEREO_EXACT) and setStereoSearchType(STEREO_SPECIFIC) instead. |
void |
setExhaustiveModeLimit(int value)
Upon reaching this number of steps, the search switches to exhaustive mode from fast mode. |
void |
setFullFragment(boolean value)
|
void |
setHCountMatching(int value)
Sets the H count matching mode. |
void |
setIgnoreCTExceptions(boolean value)
If set true, only syntactical exceptions will be thrown. |
void |
setImplicitHMatching(int value)
|
void |
setIsotopeMatching(int value)
|
void |
setKeepQueryOrder(boolean value)
|
void |
setMixSgroupMatching(boolean value)
|
void |
setMonomerTransform(boolean value)
Adjusts if monomers should be transformed to structural repeating units if the monomer is homolopolimerizable. |
void |
setOption(int option,
int value)
Deprecated. Since 5.0 Please use setters instead. |
void |
setOption(java.lang.String name,
java.lang.String value)
Sets search options. |
void |
setOptions(int[] newOptions)
Deprecated. since 5.0 |
void |
setOptions(java.lang.String optionString)
Sets search options. |
void |
setOrderSensitiveSearch(boolean value)
Specifies whether the same set of target atoms found in a different order should be considered as a different hit. |
void |
setPhaseShiftedMatching(boolean value)
Adjusts if the phase shifted polymer should match on the original. |
void |
setPolymerMatching(boolean value)
Adjust polymer matching. |
void |
setQHomologyHandling(boolean value)
Adjusts query side homology matching mode. |
void |
setRadicalMatching(int value)
|
void |
setReactionUnpairedMapMatching(boolean value)
|
void |
setRLigandEqualityCheck(boolean value)
Sets whether undefined R-atoms with the same R-group ID should match the same structure. |
void |
setSearchType(int searchType)
Sets different search options according to a predefined search type. |
void |
setStereoModel(int value)
|
void |
setStereoSearch(boolean value)
Deprecated. Please use setStereoSearchType(STEREO_SPECIFIC) and setStereoSearchType(STEREO_IGNORE) instead. |
void |
setStereoSearchType(int value)
Specifies the way stereo information is considered during searching. |
protected void |
setSubgraphSearch(boolean value)
Specifies the matching mode for topology search |
void |
setSuperstructureSearch(boolean value)
Sets if the current search type is superstructure search. |
void |
setTautomerDuplicateFiltering(boolean value)
|
void |
setTautomerSearch(boolean value)
Sets if tautomers of the query should be enumerated for search. |
void |
setTimeoutLimit(int value)
The search timeouts reaching this number of steps. |
void |
setUndefinedRAtom(int value)
Sets the matching behaviour of an undefined R atom in the query. |
void |
setVagueBondLevel(int value)
Option for less strict evaluation of query bonds (e.g. ambiguious aromaticity). |
void |
setValenceMatching(boolean value)
|
void |
setVerbose(boolean verboseP)
For debugging purposes only. |
java.util.ArrayList |
toList()
|
java.lang.String |
toString()
Returns a string that - describes the state of the options - can be the input of setOptions(String) - doesn't contain options that have their default value (except dissimilarity threshold in case of similarity search) |
java.lang.String |
toString(java.lang.String sep)
Returns a string that - describes the state of the options - can be the input of setOptions(String) - doesn't contain options that have their default value (except dissimilarity threshold in case of similarity search) |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean dirty
public boolean verbose
protected int[] options
| Constructor Detail |
|---|
public SearchOptions()
| Method Detail |
|---|
public final boolean isExactQueryAtomMatching()
public void setExactQueryAtomMatching(boolean isExact)
Search.isExactQueryAtomMatching.
public void setDoubleBondStereoMatchingMode(int value)
value - The following options can be used:
chemaxon.struc.StereoConstants.DBS_NONE:
No double bond cis/trans is considered.
chemaxon.struc.StereoConstants.DBS_MARKED:
(Default) Double bond cis/trans stereo is checked for double bonds designated by the
stereo search flag only.
chemaxon.struc.StereoConstants.DBS_ALL: All
double bonds are checked for cis/trans stereo matching.
public int getDoubleBondStereoMatchingMode()
setDoubleBondStereoMatchingMode(int)public void setSearchType(int searchType)
SearchConstants.NO_SCREEN,
SearchConstants.NO_ABAS,
SearchConstants.SUBSTRUCTURE
(default),
SearchConstants.SUPERSTRUCTURE
(no query features allowed),
SearchConstants.SIMILARITY, and
SearchConstants.FULL.
SearchConstants.DUPLICATE.
SearchConstants.FULL_FRAGMENT.
WARNING: This method may affect other search settings, therefore if other search options are adjusted, this method should be called first! For affected search options, see links below.
searchType - the predefined search typesetExactBondMatching(boolean),
setExactQueryAtomMatching(boolean),
setExactStereoMatching(boolean),
setStereoSearch(boolean),
setSubgraphSearch(boolean),
setOption(int, int),
SearchConstants.OPTION_CHARGE_MATCHING,
SearchConstants.OPTION_ISOTOPE_MATCHING,
SearchConstants.OPTION_RADICAL_MATCHING,
SearchConstants.OPTION_VALENCE_MATCHINGpublic int getSearchType()
setSearchType(int)public boolean isPerfectSearchType()
protected boolean isSubgraphSearch()
protected void setSubgraphSearch(boolean value)
value - true for substructure search, false for full structure search
matchingpublic int getHCountMatching()
setHCountMatching(int),
SearchConstants.HCOUNT_MATCHING_AUTO,
SearchConstants.HCOUNT_MATCHING_EQUAL,
SearchConstants.HCOUNT_MATCHING_GREATER_OR_EQUALpublic void setHCountMatching(int value)
value - possible values:SearchConstants.HCOUNT_MATCHING_AUTO,
SearchConstants.HCOUNT_MATCHING_EQUAL,
SearchConstants.HCOUNT_MATCHING_GREATER_OR_EQUALpublic boolean isVerbose()
public void setVerbose(boolean verboseP)
public void setOption(int option,
int value)
option - Option identifier to be set.value - Value of option to be set.SearchConstants.OPTION_KEEP_QUERY_ORDER,
SearchConstants.OPTION_EXACT_FRAGMENT,
SearchConstants.OPTION_TAUTOMER_SEARCH,
SearchConstants.OPTION_ISOTOPE_MATCHING,
SearchConstants.OPTION_CHARGE_MATCHING,
SearchConstants.OPTION_VALENCE_MATCHING,
SearchConstants.OPTION_RADICAL_MATCHING,
SearchConstants.OPTION_VAGUE_BOND,
SearchConstants.OPTION_MIX_SGROUP_MATCHING,
SearchConstants.OPTION_STEREO_MODELpublic final int getOption(int option)
option - Option identifier to be asked for.
SearchConstants.OPTION_KEEP_QUERY_ORDER,
SearchConstants.OPTION_EXACT_FRAGMENT,
SearchConstants.OPTION_TAUTOMER_SEARCH,
SearchConstants.OPTION_ISOTOPE_MATCHING,
SearchConstants.OPTION_CHARGE_MATCHING,
SearchConstants.OPTION_VALENCE_MATCHING,
SearchConstants.OPTION_RADICAL_MATCHING,
SearchConstants.OPTION_VAGUE_BOND,
SearchConstants.OPTION_MIX_SGROUP_MATCHING,
SearchConstants.OPTION_STEREO_MODELpublic void setOptions(int[] newOptions)
newOptions - Option array to copy.public int[] getOptions()
public void setOptions(java.lang.String optionString)
optionString - Can set multiple options. Option names and
values (all case insensitive) are defined in JChem Query Guide: summary of search options.
Name and value of an option should be separated by ":", and
different pairs of names/values by spaces. Instead of spaces an alternative
option separator string (even more than 1 character) can be specified
at the beginning of optionString by the syntax
"sep='separator string' ...". After 'separator string' there must be
at least 1 space character!)
setOption(String,String)public boolean isSuperstructureSearch()
setSearchType(int),
SearchConstants.SUPERSTRUCTURE,
setSuperstructureSearch(boolean)public void setSuperstructureSearch(boolean value)
setSearchType(int),
SearchConstants.SUPERSTRUCTUREpublic final boolean isExactStereoMatching()
getStereoSearchType() instead.
By default, this is false for all search types except for DUPLICATE search, where it is true.
isStereoSearch()public void setExactStereoMatching(boolean value)
By default, this setting is false for all search types except for DUPLICATE search, where it is true.
value - the exact-stereo settingsetStereoSearch(boolean),
setStereoSearchType(int)public boolean isDiastereomerMatching()
getStereoSearchType() instead.
isExactStereoMatching() then this option has no effect.
By default this setting is false for all search types.
public void setDiastereomerMatching(boolean value)
value - isDiastereomerMatching(),
setStereoSearchType(int)public void setOrderSensitiveSearch(boolean value)
orderSensitiveSearch is true, both cases
are returned, otherwise only one of them (the one found first).
value - set this to true to get
results in every possible orderpublic boolean isOrderSensitiveSearch()
setOrderSensitiveSearch(boolean)public boolean isStereoSearch()
getStereoSearchType() instead.
true, then chirality information is
considered during searching, otherwise all stereo information is
ignored. (Default: true)
public void setStereoSearch(boolean value)
true, then chirality information is
considered during searching, otherwise all stereo information is
ignored. (Default: true)
setStereoSearchType(int)public final boolean isExactBondMatching()
falsepublic void setExactBondMatching(boolean value)
value - if set to true, bond types must match
exactly. For example "single or double" matches only
"single or double", but matches neither "single" or
"double".
Default value is falsepublic void setVagueBondLevel(int value)
value - the desired vague bond levelgetVagueBondLevel(),
SearchConstants.VAGUE_BOND_LEVEL_HALF,
SearchConstants.VAGUE_BOND_LEVEL1,
SearchConstants.VAGUE_BOND_LEVEL2,
SearchConstants.VAGUE_BOND_LEVEL3,
SearchConstants.VAGUE_BOND_LEVEL4public int getVagueBondLevel()
setVagueBondLevel(int),
SearchConstants.VAGUE_BOND_LEVEL_HALF,
SearchConstants.VAGUE_BOND_LEVEL1,
SearchConstants.VAGUE_BOND_LEVEL2,
SearchConstants.VAGUE_BOND_LEVEL3,
SearchConstants.VAGUE_BOND_LEVEL4public void setCompleteHG(boolean completeStr)
completeStr - if true only complete structures are accepted,
if false all substructures.getCompleteHG()public boolean getCompleteHG()
setCompleteHG(boolean)public boolean hasChangesInUserComparators()
true,
if there is any changes in user-defined comparators. After initializing
the search, the change flag is cleared.
public void clearChangesInUserComparators()
public final boolean hasUserComparators()
public void addUserComparator(MolComparator mc)
mc - user-defined MolComparatorpublic void deleteUserComparator(MolComparator mc)
public void deleteAllUserComparators()
public MolComparator[] getUserComparators()
public boolean isDirty()
setDirty(boolean)public void setDirty(boolean v)
isDirty()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void clonecopy(SearchOptions other)
protected void deepCopy(SearchOptions toOther)
clonecopy(SearchOptions) instead
public void setTautomerSearch(boolean value)
value - set to true to enable enumeration of the
tautomers of the query for search. The default is
false.SearchConstants.OPTION_TAUTOMER_SEARCHpublic boolean isTautomerSearch()
setTautomerSearch(boolean),
SearchConstants.OPTION_TAUTOMER_SEARCH
public void setOption(java.lang.String name,
java.lang.String value)
name - Name (case insensitive) of search option (e.g. stereoSearch).value - String form (case insensitive)
of search parameter value (y, M, ef, ...).
Useable search parameters:
getOption(String)public java.lang.String getOption(java.lang.String name)
name - Name (case insensitive) of search option (e.g. stereoSearch).
Useable search parameters:
setOption(String, String)protected static boolean getBoolean(java.lang.String value)
value - String representation of boolean flag.
java.lang.IllegalArgumentException - otherwise.protected java.lang.String returnOptionString(boolean value)
public boolean isKeepQueryOrder()
public void setKeepQueryOrder(boolean value)
value - false, if search should rearrange query atoms for better
search performancepublic boolean isExactFragment()
public void setExactFragment(boolean value)
value - true, if the query should only match
to full fragments of the target.
(No heavy atoms outside the match and each query fragment
corresponds to a target fragment.) Same as setFullFragment(boolean).public final boolean isFullFragment()
public void setFullFragment(boolean value)
value - true, if the query should only match
to full fragments of the target.
(No heavy atoms outside the match and each query fragment
corresponds to a target fragment.) Same as setExactFragment(boolean)public final int getIsotopeMatching()
SearchConstants.ISOTOPE_MATCHING_DEFAULT,
SearchConstants.ISOTOPE_MATCHING_EXACT,
SearchConstants.ISOTOPE_MATCHING_IGNOREpublic void setIsotopeMatching(int value)
value - Specifies the isotope searching behaviour.
Default is ISOTOPE_MATCHING_DEFAULT (isotope query
matches only isotope target, nonisotope query matches all)SearchConstants.ISOTOPE_MATCHING_DEFAULT,
SearchConstants.ISOTOPE_MATCHING_EXACT,
SearchConstants.ISOTOPE_MATCHING_IGNOREpublic final int getChargeMatching()
SearchConstants.CHARGE_MATCHING_DEFAULT,
SearchConstants.CHARGE_MATCHING_EXACT,
SearchConstants.CHARGE_MATCHING_IGNOREpublic void setChargeMatching(int value)
value - Specifies the charge searching behaviour.
Default is CHARGE_MATCHING_DEFAULT (charged query
matches only charged target, noncharged query matches all)SearchConstants.CHARGE_MATCHING_DEFAULT,
SearchConstants.CHARGE_MATCHING_EXACT,
SearchConstants.CHARGE_MATCHING_IGNOREpublic boolean isValenceMatching()
public void setValenceMatching(boolean value)
value - true, if valence should be checked during search.
Default value is true.public final int getRadicalMatching()
SearchConstants.RADICAL_MATCHING_DEFAULT,
SearchConstants.RADICAL_MATCHING_EXACT,
SearchConstants.RADICAL_MATCHING_IGNOREpublic void setRadicalMatching(int value)
value - Specifies the radical searching behaviour.
Default is RADICAL_MATCHING_DEFAULT (radical query
matches only radical target, nonradical query matches all)SearchConstants.RADICAL_MATCHING_DEFAULT,
SearchConstants.RADICAL_MATCHING_EXACT,
SearchConstants.RADICAL_MATCHING_IGNOREpublic boolean isMixSgroupMatching()
public void setMixSgroupMatching(boolean value)
value - true, if COM, MIX and FOR sgroups should be
considered during search. Default value is true).public boolean isPolymerMatching()
setPolymerMatching(boolean)public void setPolymerMatching(boolean value)
value - true, if polymer sgroups should be
considered during search. (Default value is true).isPolymerMatching()public boolean isEndgroupMatching()
public void setEndgroupMatching(boolean value)
value - true, if polymer endgroups should be
matched during search. In this case the star atom
can't match on a specified engroup.
(Default value is true).public boolean areMonomersTransformed()
setMonomerTransform(boolean)public void setMonomerTransform(boolean value)
value - true if monomers should be transformed, false otherwiseareMonomersTransformed()public boolean isPhaseShiftedMatching()
setPhaseShiftedMatching(boolean)public void setPhaseShiftedMatching(boolean value)
value - true if the phase shifted should be matching
false otherwise. (default true)isPhaseShiftedMatching()public boolean isCopolymerMatching()
setCopolymerMatching(boolean)public void setCopolymerMatching(boolean value)
value - true if copolymer matching mode should be set,
false otherwise. (default false)isCopolymerMatching()public boolean isQHomologyHandling()
setQHomologyHandling(boolean)public void setQHomologyHandling(boolean value)
value - true if homology handling should be set,
false otherwise. (default true)isQHomologyHandling()public int getStereoModel()
SearchConstants.STEREO_MODEL_LOCAL,
SearchConstants.STEREO_MODEL_COMPREHENSIVE,
SearchConstants.STEREO_MODEL_GLOBAL,
SearchConstants.STEREO_MODEL_DEFAULTpublic void setStereoModel(int value)
value - Specifies the used stereo model.
Default is STEREO_MODEL_LOCAL (it may change in the future!)SearchConstants.STEREO_MODEL_LOCAL,
SearchConstants.STEREO_MODEL_COMPREHENSIVE,
SearchConstants.STEREO_MODEL_GLOBAL,
SearchConstants.STEREO_MODEL_DEFAULTpublic void setStereoSearchType(int value)
setStereoModel(int) specifies the model for calculating the
stereo information.)
value - Specifies the stereo mode.
Accepted values:
SearchConstants.STEREO_SPECIFIC
SearchConstants.STEREO_IGNORE
SearchConstants.STEREO_EXACT
SearchConstants.STEREO_DIASTEREOMERpublic final int getStereoSearchType()
SearchConstants.STEREO_SPECIFIC,
SearchConstants.STEREO_IGNORE,
SearchConstants.STEREO_EXACT,
SearchConstants.STEREO_DIASTEREOMER,
setStereoSearchType(int)public final boolean getCheckSpHyb()
setCheckSpHyb(boolean),
MoleculeGraph.calcHybridization()public void setCheckSpHyb(boolean checkSp)
checkSp - If true the sp-hybridization state is checked.getCheckSpHyb(),
MoleculeGraph.calcHybridization()public int getImplicitHMatching()
SearchConstants.IMPLICIT_H_MATCHING_DEFAULT,
SearchConstants.IMPLICIT_H_MATCHING_DISABLED,
SearchConstants.IMPLICIT_H_MATCHING_ENABLEDpublic void setImplicitHMatching(int value)
value - Specifies matching bahaviour between
explicit and implicit hydrogens.
Default is IMPLICIT_H_MATCHING_DEFAULT (matching depends on
the circumstances of search)SearchConstants.IMPLICIT_H_MATCHING_DEFAULT,
SearchConstants.IMPLICIT_H_MATCHING_DISABLED,
SearchConstants.IMPLICIT_H_MATCHING_ENABLEDpublic boolean isReactionUnpairedMapMatching()
public void setReactionUnpairedMapMatching(boolean value)
value - true, if in reaction search unpaired (orphan and widow)
atom maps can match any atom map.
Default value is true.public void setChemTermsFilter(java.lang.String value)
getChemTermsFilter()public java.lang.String getChemTermsFilter()
setChemTermsFilter(String)public void setChemTermsFilterConfig(java.lang.String value)
value - the configuration string. Set to
null for default configuration.getChemTermsFilterConfig()public java.lang.String getChemTermsFilterConfig()
setChemTermsFilterConfig(String)public void setUndefinedRAtom(int value)
SearchConstants.UNDEF_R_MATCHING_GROUP.
value - Matching mode value.SearchConstants.UNDEF_R_MATCHING_ALL,
SearchConstants.UNDEF_R_MATCHING_UNDEF_R,
SearchConstants.UNDEF_R_MATCHING_GROUP,
SearchConstants.UNDEF_R_MATCHING_GROUP_H,
SearchConstants.UNDEF_R_MATCHING_GROUP_H_EMPTY,
getUndefinedRAtom()public int getUndefinedRAtom()
SearchConstants.UNDEF_R_MATCHING_ALL,
SearchConstants.UNDEF_R_MATCHING_UNDEF_R,
SearchConstants.UNDEF_R_MATCHING_GROUP,
SearchConstants.UNDEF_R_MATCHING_GROUP_H,
SearchConstants.UNDEF_R_MATCHING_GROUP_H_EMPTY,
setUndefinedRAtom(int)public boolean isUndefinedRAtomMatchingGroup()
getUndefinedRAtom() returns
SearchConstants.UNDEF_R_MATCHING_GROUP,
SearchConstants.UNDEF_R_MATCHING_GROUP_H or
SearchConstants.UNDEF_R_MATCHING_GROUP_H_EMPTY.
true if undefined R atom matches grouppublic void setBridgingRAllowed(boolean value)
setUndefinedRAtom(int)) is set to group matching:
SearchConstants.UNDEF_R_MATCHING_GROUP or
SearchConstants.UNDEF_R_MATCHING_GROUP_H or
SearchConstants.UNDEF_R_MATCHING_GROUP_H_EMPTY.
Default: false.
value - true if different undefined R-atoms can match
the same group of atomssetUndefinedRAtom(int)public boolean isBridgingRAllowed()
true if different undefined R-atoms can match the same group of atoms.
This parameter is only used if R atom matching behaviour
(setUndefinedRAtom(int)) is set to group matching:
SearchConstants.UNDEF_R_MATCHING_GROUP or
SearchConstants.UNDEF_R_MATCHING_GROUP_H or
SearchConstants.UNDEF_R_MATCHING_GROUP_H_EMPTY.
true if different undefined R-atoms can match the same group of atomssetBridgingRAllowed(boolean)public void setRLigandEqualityCheck(boolean value)
setUndefinedRAtom(int)) is set to group matching:
SearchConstants.UNDEF_R_MATCHING_GROUP or
SearchConstants.UNDEF_R_MATCHING_GROUP_H or
SearchConstants.UNDEF_R_MATCHING_GROUP_H_EMPTY.
Default: false.
value - true if undefined R-atoms with the same R-group ID should match
the same structuresetUndefinedRAtom(int)public boolean getRLigandEqualityCheck()
true if undefined R-atoms with the same R-group ID
should match the same structure.
This parameter is only used if R atom matching behaviour
(setUndefinedRAtom(int)) is set to group matching:
SearchConstants.UNDEF_R_MATCHING_GROUP or
SearchConstants.UNDEF_R_MATCHING_GROUP_H or
SearchConstants.UNDEF_R_MATCHING_GROUP_H_EMPTY.
true if undefined R-atoms with the same R-group ID
should match the same structuresetRLigandEqualityCheck(boolean)public void setAttachedDataMatch(int value)
SearchConstants.ATTACHED_DATA_MATCH_IGNORE
(no attached data used)
value - getAttachedDataMatch(),
SearchConstants.ATTACHED_DATA_MATCH_IGNORE,
SearchConstants.ATTACHED_DATA_MATCH_GENERAL,
SearchConstants.ATTACHED_DATA_MATCH_EXACTpublic int getAttachedDataMatch()
setAttachedDataMatch(int),
SearchConstants.ATTACHED_DATA_MATCH_IGNORE,
SearchConstants.ATTACHED_DATA_MATCH_GENERAL,
SearchConstants.ATTACHED_DATA_MATCH_EXACTpublic void setAttachedDataPrefixes(java.lang.String value)
null (all data sgroups will be checked).
The value is used only when attached data is not ignored
(see setAttachedDataMatch(int)).
value - comma separated list of name prefixes,
e.g. "weight,atomcount"public java.lang.String getAttachedDataPrefixes()
null
if all data sgroups should be checked.
nullpublic void setExactSpecialAtomMatching(java.lang.String value)
"" (all data sgroups will be checked).
value - comma separated list of identifiers
e.g. "A,G18,*,Resin"public java.lang.String getExactSpecialAtomMatching()
public boolean isIgnoreCTExceptions()
true if Chemical Terms exceptions should be
ignored during evalutionpublic void setIgnoreCTExceptions(boolean value)
true, only syntactical exceptions will be thrown.
Those molecules that return exception during evaluation
will be left out from hit list.
Default value is false.
value - true if Chemical Terms exceptions should be
ignored during evalutionpublic int getExhaustiveModeLimit()
setExhaustiveModeLimit(int)public void setExhaustiveModeLimit(int value)
value - Set it to -1 if you do not want to
switch to exhaustive mode. Set it to 0 if you want to use
exhaustive mode only.public int getTimeoutLimit()
setTimeoutLimit(int)public void setTimeoutLimit(int value)
value - The step limit to set.public void setTautomerDuplicateFiltering(boolean value)
value - true if generic tautomers of query and target
should be used during search.
(Effective only in case of duplicate search.)
Default is false.public boolean isTautomerDuplicateFiltering()
true if generic tautomers of query and target
should be used during search.
(Effective only in case of duplicate search.)public java.lang.String toString()
toString in class java.lang.ObjectsetOptions(String),
toList()public java.lang.String toString(java.lang.String sep)
sep - the separator string between options
setOptions(String),
toList()public java.lang.String getAllOptionsAsString()
getAllOptionsAsString(String),
setOptions(String),
toString()public java.lang.String getAllOptionsAsString(java.lang.String sep)
sep - is the separator
getAllOptionsAsString(),
setOptions(String),
toString()public java.util.ArrayList toList()
setOptions(String),
toString()protected java.lang.String[] getOptionNames()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||