|
|||||||||
| 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
public class 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()
Deprecated. As of release 5.5, replaced by JChemSearchOptions(int) |
|
JChemSearchOptions(int searchType)
Creates a JChemSearchOptions 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 |
getAbsoluteStereo()
Get the absolute stereo matching mode. |
java.lang.String |
getDescriptorConfig()
Get the screening configuration string used for descriptor dissimilarity search |
java.lang.String |
getDescriptorName()
Get the name of descriptor used for descriptor similarity search |
java.lang.String |
getDissimilarityMetric()
Get the property dissimilarity metric property. |
java.lang.String |
getDissimilarityMetricParameters()
Get the parameters of the dissimilarity metric. |
float |
getDissimilarityThreshold()
Get the dissimilarity threshold. |
java.lang.String |
getFilterQuery()
Get the filter query property. |
java.lang.String |
getFormulaSearchQuery()
Get the query set for formula search. |
int |
getFormulaSearchType()
Gets the type set for formula search. |
chemaxon.sss.search.options.HaltOnErrorOption |
getHaltOnError()
Get the current error handling behaviour option. |
boolean |
getMarkushScreeningType(chemaxon.sss.search.options.MarkushScreeningType type)
Internal use only! |
MatchCountOptions |
getMatchCountOptions()
Get the match count options. |
int |
getMaxResultCount()
Get the maximum result count. |
long |
getMaxTime()
Get the maximum time option. |
java.lang.String |
getOption(java.lang.String name)
Returns search option value in string format. |
protected java.lang.String[] |
getOptionNames()
|
boolean |
isCacheRegistrationNeeded()
Only for internal use! |
boolean |
isDissimilarityThresholdExcluded()
Get the dissimilarity threshold exclusion option. |
boolean |
isMarkushScreeningEnabled()
Gets whether screening methods are used for Markush search before ABAS step. |
boolean |
isOptimizeQueries()
Get 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 |
setCacheRegistrationNeeded(boolean value)
Only for internal use! |
void |
setDescriptorConfig(java.lang.String descriptorConfig)
Sets the screening configuration string 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 |
setDissimilarityMetricParameters(java.lang.String dissimilarityMetricParam)
Sets the parameters of dissimilarity metric to be used during similarity search. |
void |
setDissimilarityThreshold(float dissimilarityThreshold)
Setter for property dissimilarityThreshold. |
void |
setDissimilarityThresholdExcluded(boolean thresholdExcluded)
Setter for property dissimilarityThresholdExcluded. |
void |
setFilterQuery(java.lang.String filterQuery)
Setter for property filterQuery. |
void |
setFormulaSearchQuery(java.lang.String formulaSearchQuery)
Sets the query for the formula search. |
void |
setFormulaSearchType(int formulaSearchType)
Sets the type for the formula search. |
void |
setHaltOnError(chemaxon.sss.search.options.HaltOnErrorOption value)
Set whether search should stop at first error or log the error and continue search if possible. |
void |
setMarkushScreeningEnabled(boolean value)
Set whether to use screening for Markush search before ABAS step. |
void |
setMarkushScreeningType(chemaxon.sss.search.options.MarkushScreeningType type,
boolean enabled)
Internal use only! |
void |
setMarkushScreeningTypes(java.lang.String types)
Internal use only! |
void |
setMatchCountOptions(MatchCountOptions matchCountOptions)
Setter for MatchCountOptions |
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<java.lang.String> |
toList()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated public JChemSearchOptions()
JChemSearchOptions(int)
SearchConstants.DEFAULT_SEARCHTYPE
JChemSearchOptions(int)public JChemSearchOptions(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 void setAbsoluteStereo(int absoluteStereo)
absoluteStereo - absolute stereo matching mode
SearchConstants.ABS_STEREO_TABLE_OPTION.SearchConstants.ABS_STEREO_TABLE_OPTION,
SearchConstants.ABS_STEREO_CHIRAL_FLAG,
SearchConstants.ABS_STEREO_ALWAYS_ONpublic int getAbsoluteStereo()
SearchConstants.ABS_STEREO_TABLE_OPTION.SearchConstants.ABS_STEREO_TABLE_OPTION,
SearchConstants.ABS_STEREO_CHIRAL_FLAG,
SearchConstants.ABS_STEREO_ALWAYS_ON,
setAbsoluteStereo(int)public void setFormulaSearchType(int formulaSearchType)
formulaSearchType - Formula search type.
FormulaSearch.NONE.getFormulaSearchType(),
FormulaSearch.NONE,
FormulaSearch.EXACT,
FormulaSearch.EXACT_SUBFORMULA,
FormulaSearch.SUBFORMULApublic int getFormulaSearchType()
FormulaSearch.NONE.setFormulaSearchType(int),
FormulaSearch.NONE,
FormulaSearch.EXACT,
FormulaSearch.EXACT_SUBFORMULA,
FormulaSearch.SUBFORMULApublic void setFormulaSearchQuery(java.lang.String formulaSearchQuery)
formulaSearchQuery - Formula search query. E.g. "C6-8 H-20 N1"
null.getFormulaSearchQuery(),
setFormulaSearchType(int),
FormulaSearchpublic java.lang.String getFormulaSearchQuery()
null.setFormulaSearchQuery(String),
setFormulaSearchType(int),
FormulaSearchpublic java.lang.String getFilterQuery()
null.setFilterQuery(String)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.
null.getFilterQuery()public void setDissimilarityThreshold(float dissimilarityThreshold)
dissimilarityThreshold - value of the dissimilarity threshold.
0.3.getDissimilarityThreshold()public float getDissimilarityThreshold()
0.3.setDissimilarityThreshold(float)public void setDissimilarityThresholdExcluded(boolean thresholdExcluded)
thresholdExcluded - If true, only dissimilarity values less than the
threshold value are considered hits. If false,
dissimilarity values equaling the threshold value are also
considered hits. (Defaults to false.)
false.isDissimilarityThresholdExcluded()public boolean isDissimilarityThresholdExcluded()
false.setDissimilarityThresholdExcluded(boolean)public long getMaxTime()
0.setMaxTime(long)public void setMaxTime(long maxTime)
maxTime is 0, then there is no limit.
maxTime - New value of property maxTime.
0.getMaxTime()public int getMaxResultCount()
0.setMaxResultCount(int)
public void setMaxResultCount(int maxResultCount)
throws java.lang.IllegalArgumentException
maxResultCount".
If maxResultCount is 0, then there is no limit.
NOTE:
n most similar results. In this case this option does not mean speedup.
The setMaxTime option is recommended instead
of maxResultCount, if the goal is saving search time.
maxResultCount - New value of property maxResultCount.
0.
java.lang.IllegalArgumentExceptiongetMaxResultCount()public void setReturnsNonHits(boolean returnsNonHits)
returnsNonHits - set to true to get non-hit structures. Default
is false.
false.isReturnsNonHits()public boolean isReturnsNonHits()
true if inverse hit list it to be returned.
false.setReturnsNonHits(boolean)public void setDissimilarityMetric(java.lang.String dissimilarityMetric)
dissimilarityMetric - the name of the metric to be used.
Specify null for the default metric.
For reaction tables see @link ReactionFingerprint.
For molecule and any tables the default metrics
can be replaced by the metrics described in
SimilarityCalculatorFactory.create(String).
null.JChemSearch.getDissimilarityMetrics(chemaxon.util.ConnectionHandler, String),
getDissimilarityMetric(),
setDissimilarityThreshold(float),
getDissimilarityThreshold(),
SimilarityCalculatorFactory.create(String),
ReactionFingerprintpublic java.lang.String getDissimilarityMetric()
null.setDissimilarityMetric(String),
setDissimilarityThreshold(float),
getDissimilarityThreshold()public void setDissimilarityMetricParameters(java.lang.String dissimilarityMetricParam)
dissimilarityMetricParam - parameters of the dissimilarity metric
e.g. for Tversky: "0.3,0.7" or equivalenly: "queryWeight=0.3,targetWeight=0.7"
Specify empty string for no parameters or default parameter.
For molecule and any tables the available metrics are the ones
described in SimilarityCalculatorFactory.create(String).
null.getDissimilarityMetricParameters(),
JChemSearch.getDissimilarityMetrics(chemaxon.util.ConnectionHandler, String),
getDissimilarityMetric(),
setDissimilarityThreshold(float),
getDissimilarityThreshold(),
SimilarityCalculatorFactory.create(String),
ReactionFingerprintpublic java.lang.String getDissimilarityMetricParameters()
null.setDissimilarityMetricParameters(String),
setDissimilarityMetric(String),
setDissimilarityThreshold(float),
getDissimilarityThreshold()public void setDescriptorConfig(java.lang.String descriptorConfig)
descriptorConfig - the configuration string used for dissimilarity search
calculation. Default value: null (means default configuration)
null.getDescriptorConfig(),
MDTableHandler.getMDConfig(String, String),
setDescriptorName(String),
getDescriptorName()public java.lang.String getDescriptorConfig()
null.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.
null.getDescriptorName(),
setDescriptorConfig(String),
getDescriptorConfig()public java.lang.String getDescriptorName()
null.setDescriptorName(String),
setDescriptorConfig(String),
getDescriptorConfig()public void setMatchCountOptions(MatchCountOptions matchCountOptions)
matchCountOptions - a predefined MatchCountOptions objectgetMatchCountOptions()public MatchCountOptions getMatchCountOptions()
MatchCountOptions,
setMatchCountOptions(MatchCountOptions)public boolean isOptimizeQueries()
true if the query molecule should be optimized
true.setOptimizeQueries(boolean)public void setOptimizeQueries(boolean value)
value - true if the query molecule should be optimized.
true.isOptimizeQueries()public void setCacheRegistrationNeeded(boolean value)
public boolean isCacheRegistrationNeeded()
public void setMarkushScreeningEnabled(boolean value)
true all known screening methods are enabled,
if set to false all known screening methods are disabled.
value - markush screening should be used or not.
true.isMarkushScreeningEnabled(),
setMarkushScreeningType(MarkushScreeningType, boolean),
MarkushScreeningTypepublic boolean isMarkushScreeningEnabled()
true if screening is used, false otherwise.setMarkushScreeningEnabled(boolean),
setMarkushScreeningType(MarkushScreeningType, boolean),
getMarkushScreeningType(MarkushScreeningType)
public void setMarkushScreeningType(chemaxon.sss.search.options.MarkushScreeningType type,
boolean enabled)
type - Markush screening option enabled or disabledenabled - true to enable screening option, false
to disable screening optionsetMarkushScreeningEnabled(boolean),
getMarkushScreeningType(MarkushScreeningType),
MarkushScreeningTypepublic void setMarkushScreeningTypes(java.lang.String types)
types - Markush screening options to enable separated by a comma.
If null (default), all screening options are enabled. If empty string, no methods
are enabled.public boolean getMarkushScreeningType(chemaxon.sss.search.options.MarkushScreeningType type)
type - Markush screening option to check
true if screening is enabled, false
if screening method is disabledgetMarkushScreeningType(MarkushScreeningType),
MarkushScreeningTypepublic void setHaltOnError(chemaxon.sss.search.options.HaltOnErrorOption value)
value - stop at first error or not.
HaltOnErrorOption.DEFAULTHaltOnErrorOption,
getHaltOnError()public chemaxon.sss.search.options.HaltOnErrorOption getHaltOnError()
HaltOnErrorOption,
setHaltOnError(HaltOnErrorOption)
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 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 | ||||||||