Package chemaxon.alignment
Class MinMaxDistance
java.lang.Object
chemaxon.alignment.AlignmentBase
chemaxon.alignment.MinMaxDistance
- All Implemented Interfaces:
Licensable
Calculates the minimum or maximum intermolecular Cartesian distance between
atoms by rotating flexible bonds. Molecule mol =
MolImporter.importMol("CCCCCCCCC"); mol.clean(3,""); MinMaxDistance mm = new
MinMaxDistance() mm.setMolecule(mol); mm.setAtom1(0); mm.setAtom2(5); double
max = mm.calcMaxDist(); double min = mm.calcMinDist();
- Since:
- Marvin 5.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubleCalculates the minimum distance between two atoms in the molecule.voidresetMap()voidsetAtom1(int atom1) voidsetAtom2(int atom2) voidsetMinDistTryCount(int minDistTryCount) voidMethods inherited from class chemaxon.alignment.AlignmentBase
getMaxGradLimit, getMolecules, getNodeColor, getNodeType, getStepLimit, getTimeLimit, isLicensed, setFlexibleRingRotatableBondCount, setFlexibleRingSize, setLicenseEnvironment, setNodeType, setProgressMonitor, setProperty, setProximity, setStepLimit, setTimeLimit
-
Field Details
-
WEIGHT
public static final double WEIGHT- See Also:
-
-
Constructor Details
-
MinMaxDistance
public MinMaxDistance()
-
-
Method Details
-
setMolecule
- Throws:
AlignmentException
-
setAtom1
public void setAtom1(int atom1) -
setAtom2
public void setAtom2(int atom2) -
setMinDistTryCount
public void setMinDistTryCount(int minDistTryCount) - Parameters:
minDistTryCount- number of extra trials. Before every extra trial, the conformation modified using random dihedrals
-
calcMinDist
Calculates the minimum distance between two atoms in the molecule. The molecule is treated flexible, the closest possible distance is the sum of the van der Waals radii of atoms.- Returns:
- the minimum distance in Angstrom
- Throws:
AlignmentException
-
calcMaxDist
- Throws:
AlignmentException
-
resetMap
public void resetMap()
-