Enum Class TemplateHandler3D

java.lang.Object
java.lang.Enum<TemplateHandler3D>
org.openscience.cdk.modeling.builder3d.TemplateHandler3D
All Implemented Interfaces:
Serializable, Comparable<TemplateHandler3D>, Constable

public enum TemplateHandler3D extends Enum<TemplateHandler3D>
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
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static TemplateHandler3D[] 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

      public static TemplateHandler3D valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getInstance

      public static TemplateHandler3D getInstance()
    • getBitSetFromFile

      public static BitSet getBitSetFromFile(StringTokenizer st) throws Exception
      Throws:
      Exception
    • getLargestRingSet

      public IRingSet getLargestRingSet(List<IRingSet> ringSystems)
      Returns the largest (number of atoms) ring set in a molecule.
      Parameters:
      ringSystems - RingSystems of a molecule
      Returns:
      The largestRingSet
    • mapTemplates

    • 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

      public IAtomContainer getTemplateAt(int position)
      Gets the templateAt attribute of the TemplateHandler object.
      Parameters:
      position - Description of the Parameter
      Returns:
      The templateAt value