![]() |
Bond
use Bond;
use Bond qw(:all);
Bond class provides the following methods:
new, Copy, DeleteBond, GetAtoms, GetBondedAtom, GetCommonAtom, GetLargestRing , GetNumOfRings, GetNumOfRingsWithEvenSize, GetNumOfRingsWithOddSize , GetNumOfRingsWithSize, GetNumOfRingsWithSizeGreaterThan , GetNumOfRingsWithSizeLessThan, GetRings, GetRingsWithEvenSize , GetRingsWithOddSize, GetRingsWithSize, GetRingsWithSizeGreaterThan , GetRingsWithSizeLessThan, GetSizeOfLargestRing, GetSizeOfSmallestRing , GetSmallestRing, IsAromatic, IsInRing, IsInRingOfSize, IsNotInRing , IsOnlyInOneRing, SetAtoms, SetBondOrder, SetBondType, SetID, SetStereochemistry , StringifyBond
Bond class is derived from ObjectProperty base class which provides methods not explictly defined in Atom or ObjectProperty class using Perl's AUTOLOD functionality. These methods are generated on-the-fly for a specified object property:
Using specified Bond property names and values hash, new method creates a new object and returns a reference to newly created Bond object. By default, following properties are initialized:
Except for ID property, all other default properties and other additional properties can be set during invocation of this method.
Examples:
Copy Bond and its associated data using Storable::dclone and return a new Bond object
Delete Bond between atoms in from a molecule.
Returns an array containing Atom objects invoved in Bond
Returns BondedAtom object bonded to Atom in Bond
Returns Atom object common to bonds Bond and $OtherBond
Returns an array of ring Atom objects corresponding to the largest ring containing Bond in a molecule
Returns number of rings containing Bond in a molecule
Returns number of rings with even size containing Bond in a molecule
Returns number of rings with odd size containing Bond in a molecule
Returns number of rings with specific RingSize containing Bond in a molecule
Returns number of rings with size greater than specific RingSize containing Bond in a molecule
Returns number of rings with size less than specific RingSize containing Bond in a molecule
Returns an array of references to arrays containing ring atoms corressponding to all rings containing Bond in a molecule
Returns an array of references to arrays containing ring atoms corressponding to all rings with even size containing Bond in a molecule
Returns an array of references to arrays containing ring atoms corressponding to all rings with odd size containing Bond in a molecule.
Returns an array of references to arrays containing ring atoms corressponding to all rings with specific RingSize containing Bond in a molecule
Returns an array of references to arrays containing ring atoms corressponding to all rings with size greater than specific RingSize containing Bond in a molecule
Returns an array of references to arrays containing ring atoms corressponding to all rings with size less than specific RingSize containing Bond in a molecule
Returns size of the largest ring containing Bond in a molecule
Returns size of the smallest ring containing Bond in a molecule
Returns an array of ring Atom objects corresponding to the largest ring containing Bond in a molecule
Returns 1 or 0 based on whether it's an aromatic Bond
Returns 1 or 0 based on whether Bond is present in a ring
Returns 1 or 0 based on whether Bond is present in a ring of specific Size
Returns 1 or 0 based on whether Bond is not present in a ring
Returns 1 or 0 based on whether Bond is only present in one ring
Set atoms of Bond to atoms in Atoms array or in a reference to an array of atoms and return Bond
Sets bond order of Bond to specified BondOrder and returns Bond. Possible bond order values: 1 = Single, 1.5 = Atomatic, 2 = Double, 3 = Triple, 4 = Quadruple.
Notes:
Sets bond type for Bond to specified BondType and returns Bond. Possible bond type values for different bond orders are:
Notes:
Sets bond stereochemistry for Bond to specified Stereochemistry and returns Bond. Possible Stereochemistry values: Z, cis, E, trans
Returns a string containing information about Bond object
Atom.pm, Molecule.pm
Copyright (C) 2004-2008 Manish Sud. All rights reserved.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.