Package org.openscience.cdk.hash
Enum Class BasicAtomEncoder
- All Implemented Interfaces:
Serializable
,Comparable<BasicAtomEncoder>
,java.lang.constant.Constable
,AtomEncoder
Enumeration of atom encoders for seeding atomic hash codes. Generally these
encoders return the direct value or a prime number if that value is null.
These encoders are considered basic as the values generated are all in
the same range. Better encoding can be achieved by assigning discrete values
a section of the prime number table. However, In practice using a
pseudorandom number generator to distribute the encoded values provides a
good distribution.
- Author:
- John May
- See Also:
-
ConjugatedAtomEncoder
- Prime numbers archive
- Source code:
- main
- Belongs to CDK module:
- hash
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEncode the atomic number of an atom.Encode the explicit bond order sum of an atom.Encode the formal charge of an atom, allowing distinction of different protonation states.Encode the orbital hybridization of an atom.Encode the mass number of an atom, allowing distinction of isotopes.Encode the number of explicitly connected atoms (degree).Encode the orbital hybridization of an atom. -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicAtomEncoder
Returns the enum constant of this class with the specified name.static BasicAtomEncoder[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.openscience.cdk.hash.AtomEncoder
encode
-
Enum Constant Details
-
ATOMIC_NUMBER
Encode the atomic number of an atom.- See Also:
-
MASS_NUMBER
Encode the mass number of an atom, allowing distinction of isotopes.- See Also:
-
FORMAL_CHARGE
Encode the formal charge of an atom, allowing distinction of different protonation states.- See Also:
-
N_CONNECTED_ATOMS
Encode the number of explicitly connected atoms (degree). -
BOND_ORDER_SUM
Encode the explicit bond order sum of an atom.- See Also:
-
ORBITAL_HYBRIDIZATION
Encode the orbital hybridization of an atom.- See Also:
-
FREE_RADICALS
Encode the orbital hybridization of an atom.
-
-
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
-