chemaxon.sss.search
Class MatchCountOptions
java.lang.Object
chemaxon.sss.search.MatchCountOptions
- All Implemented Interfaces:
- SearchConstants, java.io.Serializable
public class MatchCountOptions
- extends java.lang.Object
- implements java.io.Serializable, SearchConstants
Class to encapsulate Match count option parameters used by JChemSearch.
- Since:
- JChem 5.0
- Author:
- Edvard Buki
- See Also:
- Serialized Form
| Fields inherited from interface chemaxon.sss.SearchConstants |
ABS_STEREO_ALWAYS_ON, ABS_STEREO_CHIRAL_FLAG, ABS_STEREO_TABLE_OPTION, CHARGE_MATCHING_DEFAULT, CHARGE_MATCHING_EXACT, CHARGE_MATCHING_IGNORE, DEFAULT_DISSIMILARITY_THRESHOLD, DEFAULT_SIMILARITY_THRESHOLD, DISSIMILARITY, EXACT, EXACT_FRAGMENT, EXACT_FRAGMENT_OFF, EXACT_FRAGMENT_ON, HCOUNT_MATCHING_AUTO, HCOUNT_MATCHING_EQUAL, HCOUNT_MATCHING_GREATER_OR_EQUAL, IMPLICIT_H_MATCHING_DEFAULT, IMPLICIT_H_MATCHING_DISABLED, IMPLICIT_H_MATCHING_ENABLED, ISOTOPE_MATCHING_DEFAULT, ISOTOPE_MATCHING_EXACT, ISOTOPE_MATCHING_IGNORE, KEEP_QUERY_ORDER, MARKUSH_AROM_FINAL_CHECK, MARKUSH_AROM_NO_FINAL_CHECK, MARKUSH_AROM_OFF, MARKUSH_DISABLED, MARKUSH_ENABLED, MARKUSH_HIT_ORIGINAL, MARKUSH_HIT_SUPERGRAPH, MATCH_COUNT_BETWEEN, MATCH_COUNT_RELATION, MIX_SGROUP_MATCHING_OFF, MIX_SGROUP_MATCHING_ON, NO_ABAS, NO_SCREEN, OPTION_CHARGE_MATCHING, OPTION_EXACT_FRAGMENT, OPTION_ISOTOPE_MATCHING, OPTION_KEEP_QUERY_ORDER, OPTION_MARKUSH_AROM, OPTION_MARKUSH_ENABLED, OPTION_MARKUSH_HIT, OPTION_MIX_SGROUP_MATCHING, OPTION_RADICAL_MATCHING, OPTION_STEREO_MODEL, OPTION_TAUTOMER_SEARCH, OPTION_VAGUE_BOND, OPTION_VALENCE_MATCHING, PERFECT, R_NODE_PLACEHOLDER, RADICAL_MATCHING_DEFAULT, RADICAL_MATCHING_EXACT, RADICAL_MATCHING_IGNORE, REARRANGE_QUERY, REGULAR_SEARCH, SEARCH_MODE_NAMES, SEARCH_OPTIONS_LENGTH, SIMILARITY, STEREO_DIASTEREOMER, STEREO_EXACT, STEREO_IGNORE, STEREO_MODEL_COMPREHENSIVE, STEREO_MODEL_DEFAULT, STEREO_MODEL_GLOBAL, STEREO_MODEL_LOCAL, STEREO_SPECIFIC, SUBSTRUCTURE, SUPERSTRUCTURE, TAUTOMER_SEARCH_OFF, TAUTOMER_SEARCH_ON, UNDEF_R_MATCHING_ALL, UNDEF_R_MATCHING_UNDEF_R, VAGUE_BOND_DEFAULT, VAGUE_BOND_LEVEL1, VAGUE_BOND_LEVEL2, VAGUE_BOND_LEVEL3, VAGUE_BOND_LEVEL4, VAGUE_BOND_OFF, VALENCE_MATCHING_IGNORE, VALENCE_MATCHING_ON |
|
Constructor Summary |
MatchCountOptions(int hitLimitLow,
boolean isLowerLimitIncluded,
int hitLimitHigh,
boolean isHigherLimitIncluded)
Public constructor for MatchCountOptions in between mode |
MatchCountOptions(java.lang.String relation,
int hitLimit)
Public constructor for MatchCountOptions in relation mode |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MatchCountOptions
public MatchCountOptions(int hitLimitLow,
boolean isLowerLimitIncluded,
int hitLimitHigh,
boolean isHigherLimitIncluded)
- Public constructor for MatchCountOptions in between mode
- Parameters:
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.
If you pass Integer.MAX_VALUE, it will be treated as infinity.
(I.e. only the lower limit is applied.)isHigherLimitIncluded - If true, equality is allowed with hitLimitHigh.- Since:
- JChem 5.0
MatchCountOptions
public MatchCountOptions(java.lang.String relation,
int hitLimit)
- Public constructor for MatchCountOptions in relation mode
- Parameters:
relation - The relational operation of the question. This
operation will be used to compare the number of hits to
hitLimit. Available values:
- "=" - tests equality to
hitLimit.
- "<" - returns true if the number of found hits is
less than
hitLimit.
- "<=" - less than or equality
- ">" - greater than
- ">=" - greater than or equality
Specifying null disables match count rules.hitLimit - The limit for the number of hits.- Since:
- JChem 5.0
getMatchCountHighLimit
public int getMatchCountHighLimit()
- Returns:
- the matchCountHighLimit
- Since:
- JChem 5.0
setMatchCountHighLimit
public void setMatchCountHighLimit(int matchCountHighLimit)
- Parameters:
matchCountHighLimit - the matchCountHighLimit to set- Since:
- JChem 5.0
isMatchCountHighLimitInclusive
public boolean isMatchCountHighLimitInclusive()
- Returns:
- the matchCountHighLimitInclusive
- Since:
- JChem 5.0
setMatchCountHighLimitInclusive
public void setMatchCountHighLimitInclusive(boolean matchCountHighLimitInclusive)
- Parameters:
matchCountHighLimitInclusive - the matchCountHighLimitInclusive to set- Since:
- JChem 5.0
getMatchCounthitLimit
public int getMatchCounthitLimit()
- Returns:
- the matchCounthitLimit
- Since:
- JChem 5.0
setMatchCounthitLimit
public void setMatchCounthitLimit(int matchCounthitLimit)
- Parameters:
matchCounthitLimit - the matchCounthitLimit to set
isMatchCountIncludesZero
public boolean isMatchCountIncludesZero()
- Returns:
- the matchCountIncludesZero
- Since:
- JChem 5.0
setMatchCountIncludesZero
public void setMatchCountIncludesZero(boolean matchCountIncludesZero)
- Parameters:
matchCountIncludesZero - the matchCountIncludesZero to set- Since:
- JChem 5.0
getMatchCountLowLimit
public int getMatchCountLowLimit()
- Returns:
- the matchCountLowLimit
- Since:
- JChem 5.0
setMatchCountLowLimit
public void setMatchCountLowLimit(int matchCountLowLimit)
- Parameters:
matchCountLowLimit - the matchCountLowLimit to set- Since:
- JChem 5.0
isMatchCountLowLimitInclusive
public boolean isMatchCountLowLimitInclusive()
- Returns:
- the matchCountLowLimitInclusive
- Since:
- JChem 5.0
setMatchCountLowLimitInclusive
public void setMatchCountLowLimitInclusive(boolean matchCountLowLimitInclusive)
- Parameters:
matchCountLowLimitInclusive - the matchCountLowLimitInclusive to set- Since:
- JChem 5.0
getMode
public int getMode()
- Returns:
- the mode
- Since:
- JChem 5.0
getMatchCountRelation
public java.lang.String getMatchCountRelation()
- Returns:
- the matchCountRelation
- Since:
- JChem 5.0
setMatchCountRelation
public void setMatchCountRelation(java.lang.String matchCountRelation)
- Parameters:
matchCountRelation - the matchCountRelation to set- Since:
- JChem 5.0
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- Returns:
- There are two possible representations of object:
- "matchCountOptions:[lower limit]_[is lower limit included]_
[higher limit]_[is higher limit included]"
- "matchCountOptions:[relation]_[hit limit]"
Example:
- "matchCountOptions:3_true_7_false"
- "matchCountOptions:>=_9"