Package com.chemaxon.search.mcs
Enum Class RingHandlingMode
- All Implemented Interfaces:
Serializable
,Comparable<RingHandlingMode>
,java.lang.constant.Constable
Enum type for the ring handling modes of
MaxCommonSubstructure
(MCS) algorithms. It controls whether ring
bonds can match ring bonds only, or whether rings can be broken.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis option ignores the ring/chain topology of bonds, which is the default behavior.This option specifies that rings should not be broken.This option allows the algorithm to match a query and a target bond only if both are in rings or both are in chains. -
Method Summary
Modifier and TypeMethodDescriptionstatic RingHandlingMode
Returns the enum constant of this class with the specified name.static RingHandlingMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE
This option ignores the ring/chain topology of bonds, which is the default behavior. -
MATCH_RING_BONDS
This option allows the algorithm to match a query and a target bond only if both are in rings or both are in chains.Note that only rings smaller than a specified size limit are considered for this purpose. Bonds which are only part of rings larger than this limit will be handled as chain bonds. See
McsSearchOptions.Builder.maxConsideredRingSize(int)
. -
KEEP_RINGS
This option specifies that rings should not be broken. If a bond in the query or the target is part of a ring, it should be part of a ring in the found common substructure too.Note that only rings smaller than a specified size limit are considered for this purpose. Bonds which are only part of rings larger than this limit will be handled as chain bonds. See
McsSearchOptions.Builder.maxConsideredRingSize(int)
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-