|
||||||||||
| 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.JChemSearchOptions
Class to encapsulate search parameters used by JChemSearch.
| Field Summary |
| Fields inherited from class chemaxon.sss.search.SearchOptions |
dirty, options, verbose |
| Constructor Summary | |
JChemSearchOptions()
|
|
| Method Summary | |
java.lang.Object |
clone()
Makes an identical copy of this SearchObject. |
void |
clonecopy(SearchOptions other)
Copies parameters to other.
|
int |
getAbsoluteStereo()
Returns the absolute stereo matching mode. |
java.lang.String |
getDescriptorConfig()
Getter for property descriptorConfig |
java.lang.String |
getDescriptorName()
Getter for property descriptorName |
java.lang.String |
getDissimilarityMetric()
Getter for property dissimilarityThreshold. |
float |
getDissimilarityThreshold()
Getter for property dissimilarityThreshold. |
java.lang.String |
getFilterQuery()
Getter for property filterQuery |
MatchCountOptions |
getMatchCountOptions()
Getter for MatchCountOptions |
int |
getMaxResultCount()
Getter for property maxResultCount. |
long |
getMaxTime()
Getter for property maxTime. |
java.lang.String |
getOption(java.lang.String name)
Returns search option value in string format. |
boolean |
isOptimizeQueries()
Returns whether query should be optimized. |
boolean |
isReturnsNonHits()
Indicates if an inverse hit list is to be returned. |
void |
setAbsoluteStereo(int absoluteStereo)
Sets the absolute stereo matching mode. |
void |
setDescriptorConfig(java.lang.String descriptorConfig)
Sets the configuration used for descriptor dissimilarity search |
void |
setDescriptorName(java.lang.String descriptorName)
Sets the name of descriptor used for descriptor similarity search |
void |
setDissimilarityMetric(java.lang.String dissimilarityMetric)
Sets the metric to be used during similarity search. |
void |
setDissimilarityThreshold(float dissimilarityThreshold)
Setter for property dissimilarityThreshold. |
void |
setFilterQuery(java.lang.String filterQuery)
Setter for property filterQuery. |
void |
setMatchCountOptions(int hitLimitLow,
boolean isLowerLimitIncluded,
int hitLimitHigh,
boolean isHigherLimitIncluded)
Deprecated. since JChem 5.1 use setMatchCountOptions(MatchCountOptions) instead. |
void |
setMatchCountOptions(MatchCountOptions matchCountOptions)
Setter for MatchCountOptions |
void |
setMatchCountOptions(java.lang.String relation,
int hitLimit)
Deprecated. since JChem 5.1 use setMatchCountOptions(MatchCountOptions) instead. |
void |
setMaxResultCount(int maxResultCount)
Setter for property maxResultCount. |
void |
setMaxTime(long maxTime)
Setter for property maxTime. |
void |
setOptimizeQueries(boolean value)
Sets whether the query molecule should be optimized. |
void |
setOption(java.lang.String name,
java.lang.String value)
Sets search options. |
void |
setReturnsNonHits(boolean returnsNonHits)
Determines if the inverse of the hit set should be returned. |
java.util.ArrayList |
toList()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JChemSearchOptions()
| Method Detail |
public void setAbsoluteStereo(int absoluteStereo)
absoluteStereo - the matching mode, one of the following constants:
SearchConstants.ABS_STEREO_TABLE_OPTION,
SearchConstants.ABS_STEREO_CHIRAL_FLAG,
SearchConstants.ABS_STEREO_ALWAYS_ON,public int getAbsoluteStereo()
setAbsoluteStereo(int)public java.lang.String getFilterQuery()
public void setFilterQuery(java.lang.String filterQuery)
searcOptions.setFilterQuery("select cd_id from mystructures where cd_id>1000");
If the SELECT contains an "ORDER BY" clause, the results will be ordered
accordingly, the setting for JChemSearch.setOrder(int) will be ignored,
except when an
inverse hit list is requested.
NOTE: The filtered cd_id values are cached. Invoke
setFilterQuery again before the next search, if the filter
needs to be refreshed.
filterQuery - New value of property filterQuery.public void setDissimilarityThreshold(float dissimilarityThreshold)
dissimilarityThreshold - New value of property dissimilarityThreshold.public float getDissimilarityThreshold()
public long getMaxTime()
public void setMaxTime(long maxTime)
maxTime is 0, then there is no limit.
(Default: 0)
maxTime - New value of property maxTime.public int getMaxResultCount()
public void setMaxResultCount(int maxResultCount)
maxResultCount".
This can save time when there would be too many results.
If maxResultCount is 0, then there is no limit. (Default: 0)
NOTE: The search will stop after the maximum result count is reached.
This is also true for SIMILARITY searches: after the search has found
the given number of compounds that falls below the specified similarity
threshold, it stops and returns them. To find the n most
similar structures in table, please set maxResultCount to 0 (unlimitied,
default), and use the first n results with
ordering set by JChemSearch.setOrder(int) to
JChemSearch.ORDERING_BY_ID_OR_SIMILARITY.
maxResultCount - New value of property maxResultCount.public void setReturnsNonHits(boolean returnsNonHits)
returnsNonHits - set to true to get non-hit structures. Default
is false.isReturnsNonHits()public boolean isReturnsNonHits()
setReturnsNonHits(boolean)public void setDissimilarityMetric(java.lang.String dissimilarityMetric)
dissimilarityMetric - the name of the metric to be used.
Specify null for the default metric.JChemSearch.getDissimilarityMetrics(chemaxon.util.ConnectionHandler, String),
setDissimilarityThreshold(float),
getDissimilarityThreshold()public java.lang.String getDissimilarityMetric()
setDissimilarityThreshold(float),
getDissimilarityThreshold()public void setDescriptorConfig(java.lang.String descriptorConfig)
descriptorConfig - the configuration used for dissimilarity search
calculation. Default value: null (means default configuration)getDescriptorConfig(),
setDescriptorName(String),
getDescriptorName()public java.lang.String getDescriptorConfig()
setDescriptorConfig(String),
setDescriptorName(String),
getDescriptorName()public void setDescriptorName(java.lang.String descriptorName)
descriptorName - the descriptor identifier used for similatiry
search. If not specified or null, structural fingerprint
similarity search performed by default.getDescriptorName(),
setDescriptorConfig(String),
getDescriptorConfig()public java.lang.String getDescriptorName()
setDescriptorName(String),
setDescriptorConfig(String),
getDescriptorConfig()public void setMatchCountOptions(MatchCountOptions matchCountOptions)
matchCountOptions - a predefined MatchCountOptions objectgetMatchCountOptions()
public void setMatchCountOptions(int hitLimitLow,
boolean isLowerLimitIncluded,
int hitLimitHigh,
boolean isHigherLimitIncluded)
setMatchCountOptions(MatchCountOptions) instead.
hitLimitLow - The lower limit for the number of hits.isLowerLimitIncluded - If true, equality is allowed with hitLimitLow.hitLimitHigh - The upper limit for the number of hits.isHigherLimitIncluded - isHigherLimitIncluded If true, equality is allowed with hitLimitHigh.MatchCountOptions,
setMatchCountOptions(String, int),
getMatchCountOptions()
public void setMatchCountOptions(java.lang.String relation,
int hitLimit)
setMatchCountOptions(MatchCountOptions) instead.
relation - The relational operation of the question. This
operation will be used to compare the number of hits to
hitLimit. Available values:
hitLimit.
hitLimit.
null disables match count rules.hitLimit - The limit for the number of hits.MatchCountOptions,
setMatchCountOptions(int, boolean, int, boolean),
getMatchCountOptions()public MatchCountOptions getMatchCountOptions()
MatchCountOptions,
setMatchCountOptions(String, int),
setMatchCountOptions(int, boolean, int, boolean)public boolean isOptimizeQueries()
true if the query molecule should be optimizedpublic void setOptimizeQueries(boolean value)
value - true if the query molecule should be optimized.
Default is true.
public void setOption(java.lang.String name,
java.lang.String value)
setOption in class SearchOptionsname - Name (case insensitive) of search option
(e.g. absoluteStereo).value - String form (case insensitive)
of search parameter value (y, T, false...).
Useable search parameters are all the acceptable values of
SearchOptions.setOption(String, String)
plus the following ones:
getOption(String),
SearchOptions.setOption(String, String)public java.lang.String getOption(java.lang.String name)
getOption in class SearchOptionsname - Name (case insensitive) of search option (e.g. stereoSearch).
Useable search parameters are all the acceptable values of
SearchOptions.getOption(String)
plus the following ones:
setOption(String, String),
SearchOptions.getOption(String)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class SearchOptionsjava.lang.CloneNotSupportedExceptionpublic void clonecopy(SearchOptions other)
other.
It copies
other is a JchemSearchOptions object
clonecopy in class SearchOptionspublic java.util.ArrayList toList()
toList in class SearchOptionsSearchOptions.setOptions(String),
SearchOptions.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||