Enum Class TemplateHandler3D
- All Implemented Interfaces:
Serializable, Comparable<TemplateHandler3D>, Constable
Helper class for ModelBuilder3D. Handles templates. This is
our layout solution for 3D ring systems
- Author:
- cho, steinbeck, John Mayfield
- Created on:
- 2004-09-21
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BitSetstatic TemplateHandler3DgetLargestRingSet(List<IRingSet> ringSystems) Returns the largest (number of atoms) ring set in a molecule.getTemplateAt(int position) Gets the templateAt attribute of the TemplateHandler object.intGets the templateCount attribute of the TemplateHandler object.voidmapTemplates(IAtomContainer ringSystems, double numberOfRingAtoms) Deprecated.voidmapTemplates(IAtomContainer mol, int numberOfRingAtoms) Checks if one of the loaded templates is a substructure in the given Molecule.static TemplateHandler3DReturns the enum constant of this class with the specified name.static TemplateHandler3D[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
TEMPLATE_PATH
- See Also:
-
-
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
-
getInstance
-
getBitSetFromFile
- Throws:
Exception
-
getLargestRingSet
-
mapTemplates
@Deprecated public void mapTemplates(IAtomContainer ringSystems, double numberOfRingAtoms) throws CDKException, CloneNotSupportedException Deprecated. -
mapTemplates
public void mapTemplates(IAtomContainer mol, int numberOfRingAtoms) throws CDKException, CloneNotSupportedException Checks if one of the loaded templates is a substructure in the given Molecule. If so, it assigns the coordinates from the template to the respective atoms in the Molecule.- Parameters:
mol- AtomContainer from the ring systems.numberOfRingAtoms- Number of atoms in the specified ring- Throws:
CloneNotSupportedException- The atomcontainer cannot be cloned.CDKException
-
getTemplateCount
public int getTemplateCount()Gets the templateCount attribute of the TemplateHandler object.- Returns:
- The templateCount value
-
getTemplateAt
Gets the templateAt attribute of the TemplateHandler object.- Parameters:
position- Description of the Parameter- Returns:
- The templateAt value
-
mapTemplates(org.openscience.cdk.interfaces.IAtomContainer, int)