/// <summary> Constructs an EnzymeResidueLocator from an existing Atom.
 /// 
 /// </summary>
 /// <param name="atom">Atom that should be converted into a EnzymeResidueLocator.
 /// </param>
 public EnzymeResidueLocator(Atom atom)
     : base(atom)
 {
     if (atom is PseudoAtom)
     {
         this.Label = ((PseudoAtom)atom).Label;
     }
 }
Ejemplo n.º 2
0
 /// <summary> Constructs a ring that will have a certain number of atoms of the given elements.
 /// 
 /// </summary>
 /// <param name="ringSize">  The number of atoms and bonds the ring will have
 /// </param>
 /// <param name="elementSymbol">  The element of the atoms the ring will have
 /// </param>
 public Ring(int ringSize, System.String elementSymbol)
     : this(ringSize)
 {
     base.atomCount = ringSize;
     base.electronContainerCount = ringSize;
     atoms_Renamed_Field[0] = new Atom(elementSymbol);
     for (int i = 1; i < ringSize; i++)
     {
         atoms_Renamed_Field[i] = new Atom(elementSymbol);
         base.electronContainers[i - 1] = new Bond(atoms_Renamed_Field[i - 1], atoms_Renamed_Field[i], 1);
     }
     base.electronContainers[ringSize - 1] = new Bond(atoms_Renamed_Field[ringSize - 1], atoms_Renamed_Field[0], 1);
 }