Package chemaxon.sss.search
Class MatchCountOptions
java.lang.Object
chemaxon.sss.search.MatchCountOptions
- All Implemented Interfaces:
SearchConstants
,Serializable
Class to encapsulate Match count option parameters used by
JChemSearch
.- Since:
- JChem 5.0
- See Also:
-
Field Summary
Fields inherited from interface chemaxon.sss.SearchConstants
ABS_STEREO_ALWAYS_ON, ABS_STEREO_CHIRAL_FLAG, ABS_STEREO_TABLE_OPTION, ATTACHED_DATA_MATCH_EXACT, ATTACHED_DATA_MATCH_GENERAL, ATTACHED_DATA_MATCH_IGNORE, ATTACHMENT_ATOM, ATTACHMENT_LABEL, ATTACHMENT_MAP, ATTACHMENT_NONE, ATTACHMENT_POINT, ATTACHMENT_RLABEL, CHARGE_MATCHING_DEFAULT, CHARGE_MATCHING_EXACT, CHARGE_MATCHING_IGNORE, DEFAULT_DISSIMILARITY_THRESHOLD, DEFAULT_SEARCHTYPE, DISSIMILARITY_PROPERTY_NAME, DUPLICATE, FULL, FULL_FRAGMENT, HCOUNT_MATCHING_AUTO, HCOUNT_MATCHING_EQUAL, HCOUNT_MATCHING_GREATER_OR_EQUAL, HIT_EXCLUDEDQ, HIT_LP, HIT_MULTICENTER, HIT_NON_R, HIT_ORDERING_NONE, HIT_ORDERING_UNDEF_R_MATCHING_GROUP_FIRST, HIT_R, HIT_R_EMPTY_MATCH, HIT_UNMAPABLE, IMPLICIT_H_MATCHING_DEFAULT, IMPLICIT_H_MATCHING_DISABLED, IMPLICIT_H_MATCHING_ENABLED, IMPLICIT_H_MATCHING_IGNORE, ISOTOPE_MATCHING_DEFAULT, ISOTOPE_MATCHING_EXACT, ISOTOPE_MATCHING_IGNORE, MARKUSH_HIT_INNER, MARKUSH_HIT_ORIGINAL, MATCH_COUNT_BETWEEN, MATCH_COUNT_RELATION, NO_ABAS, NO_SCREEN, POSITION_ON_0TH_HEAVY_ATOM, RADICAL_MATCHING_DEFAULT, RADICAL_MATCHING_EXACT, RADICAL_MATCHING_IGNORE, SEARCH_MODE_NAMES, SEARCH_TYPE_NAMES, SIMILARITY, STEREO_DIASTEREOMER, STEREO_ENANTIOMER, STEREO_EXACT, STEREO_IGNORE, STEREO_MODEL_COMPREHENSIVE, STEREO_MODEL_DEFAULT, STEREO_MODEL_GLOBAL, STEREO_MODEL_LOCAL, STEREO_SPECIFIC, SUBSTRUCTURE, SUPERSTRUCTURE, TAUTOMER_SEARCH_DEFAULT, TAUTOMER_SEARCH_OFF, TAUTOMER_SEARCH_ON, TAUTOMER_SEARCH_ON_IGNORE_TAUTOMERSTEREO, UNDEF_R_MATCHING_ALL, UNDEF_R_MATCHING_GROUP, UNDEF_R_MATCHING_GROUP_H, UNDEF_R_MATCHING_GROUP_H_EMPTY, UNDEF_R_MATCHING_UNDEF_R, VAGUE_BOND_DEFAULT, VAGUE_BOND_LEVEL_HALF, VAGUE_BOND_LEVEL1, VAGUE_BOND_LEVEL2, VAGUE_BOND_LEVEL3, VAGUE_BOND_LEVEL4, VAGUE_BOND_OFF
-
Constructor Summary
ConstructorDescriptionMatchCountOptions
(int hitLimitLow, boolean isLowerLimitIncluded, int hitLimitHigh, boolean isHigherLimitIncluded) Public constructor for MatchCountOptions in between modeMatchCountOptions
(String relation, int hitLimit) Public constructor for MatchCountOptions in relation mode -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
getMode()
boolean
boolean
boolean
void
setMatchCountHighLimit
(int matchCountHighLimit) void
setMatchCountHighLimitInclusive
(boolean matchCountHighLimitInclusive) void
setMatchCounthitLimit
(int matchCounthitLimit) void
setMatchCountIncludesZero
(boolean matchCountIncludesZero) void
setMatchCountLowLimit
(int matchCountLowLimit) void
setMatchCountLowLimitInclusive
(boolean matchCountLowLimitInclusive) void
setMatchCountRelation
(String matchCountRelation) toString()
-
Constructor Details
-
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 passInteger.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 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 tohitLimit
. 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
- "<" - returns true if the number of found hits is less than
null
disables match count rules.- "=" - tests equality to
hitLimit
- The limit for the number of hits.- Since:
- JChem 5.0
-
-
Method Details
-
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
- Returns:
- the matchCountRelation
- Since:
- JChem 5.0
-
setMatchCountRelation
- Parameters:
matchCountRelation
- the matchCountRelation to set- Since:
- JChem 5.0
-
toString
- Overrides:
toString
in classObject
- 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]"
- "matchCountOptions:3_true_7_false"
- "matchCountOptions:>=_9"
-