public class StructureCheckerHelper extends Object
StructureChecker
instances providing constants and utility functions.Modifier and Type | Field and Description |
---|---|
static double |
MAXIMAL_DISTANCE_LIMIT
This constant represents the the upper bound of bond length for ChemAxon
built-in StructureChecker implementations
|
static double |
MINIMAL_ATOM_DISTANCE_LIMIT
This constant represents the minimal allowed atom distance (distance here
means euclidean distance) between two atoms for ChemAxon built-in
StructureChecker implementations
|
static double |
MINIMAL_DISTANCE_LIMIT
This constant represents the minimal allowed bond distance (distance here
means euclidean distance) between two bonds and the lower bound of bond
length for ChemAxon built-in StructureChecker implementations
|
Constructor and Description |
---|
StructureCheckerHelper() |
Modifier and Type | Method and Description |
---|---|
static double |
calculateCosAFromScalarMul(MolBond bond1,
MolBond bond2)
Calculate the cosines value of the angle between the bonds from the
scalar multiplication of the bonds.
|
static List<MolBond> |
createNeighbourBonds(Molecule molecule,
MolBond bond,
boolean ignoreRingBonds)
|
static double |
distance(MolAtom atom1,
MolAtom atom2)
Calculates the distance of two atoms.
|
static chemaxon.util.abbrevgroup.AbbrevGroupStorage |
getDefaultAbbrevgroups()
Imports default and user abbreviations and returns them in a
AbbrevGroupStorage . |
static boolean |
isAbsoluteStereoRelevant(Molecule mol)
Determines if molecule contains a stereo center with no enhanced stereo
property.
|
static boolean |
isAromatic(int[] is,
Molecule mol)
Determines if a ring in the molecule is aromatic or not
|
static boolean |
isChiral(Molecule mol)
Determines if the molecule contains an atom with R or S stereo
configuration.
|
static boolean |
isDaylightFormatWithoutOptions(String format)
Returns true if daylight format with options supported, false otherwise
|
static boolean |
isTerminal(MolBond molBond)
|
static boolean |
ringHasOnlyOneNeighbour(int[] is,
Molecule mol,
MolAtom atom)
This function determines if the ring (indexed with idx parameter) has
only one neighbour (and this neighbour is the the atom parameter) or not.
|
public static final double MINIMAL_ATOM_DISTANCE_LIMIT
public static final double MINIMAL_DISTANCE_LIMIT
public static final double MAXIMAL_DISTANCE_LIMIT
public static double distance(MolAtom atom1, MolAtom atom2)
public static List<MolBond> createNeighbourBonds(Molecule molecule, MolBond bond, boolean ignoreRingBonds)
List
of MolBond
which contains all
bonds which are in isNeighbour relation with the MolBond
instance
represented by parameter bondmolecule
- is a Molecule
instance which contains the bondsbond
- is a MolBond
instance. The method will return the
neighbors of this bond.ignoreRingBonds
- is a boolean parameter. If this parameter is true no ring
bonds will treated as neighborList
of MolBond
which contains all bonds which
are in isNeighbour relation with the MolBond
instance
represented by parameter bondpublic static chemaxon.util.abbrevgroup.AbbrevGroupStorage getDefaultAbbrevgroups()
AbbrevGroupStorage
.AbbrevGroupStorage
public static boolean isTerminal(MolBond molBond)
public static boolean isAbsoluteStereoRelevant(Molecule mol)
true
.mol
- is the moleculetrue
if molecule contains a stereo center with no
enhanced stereo propertypublic static boolean isChiral(Molecule mol)
mol
- is the Molecule
instancepublic static boolean isAromatic(int[] is, Molecule mol)
is
- an index array containing the indices of the ring in the
moleculemol
- a Molecule
instance which contains the ringpublic static boolean ringHasOnlyOneNeighbour(int[] is, Molecule mol, MolAtom atom)
public static double calculateCosAFromScalarMul(MolBond bond1, MolBond bond2)
bond1
- the first bondbond2
- the second bondpublic static boolean isDaylightFormatWithoutOptions(String format)
format
- the molecule format represented as a String object