Package mmLib :: Module Structure :: Class Bond
[hide private]
[frames] | no frames]

Class Bond

source code

object --+
         |
        Bond

Indicates two atoms are bonded together.

Instance Methods [hide private]
 
__init__(self, atom1=None, atom2=None, bond_type=None, atom1_symop=None, atom2_symop=None, standard_res_bond=False, **args)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
__deepcopy__(self, memo) source code
 
get_partner(self, atm)
Returns the other atom involved in the bond.
source code
 
get_atom1(self)
Returns atom #1 of the pair of bonded atoms.
source code
 
get_atom2(self)
Returns atom #2 of the pair of bonded atoms.
source code
 
get_fragment1(self)
Returns the Fragment object of atom #1.
source code
 
get_fragment2(self)
Returns the Fragment object of atom #2.
source code
 
get_chain1(self)
Returns the Chain object of atom #1.
source code
 
get_chain2(self)
Returns the Chain object of atom #2.
source code
 
get_model1(self)
Returns the Model object of atom #1.
source code
 
get_model2(self)
Returns the Structure object of atom #2.
source code
 
get_structure1(self)
Returns the Structure object of atom #1.
source code
 
get_structure2(self)
Returns the Structure object of atom #2.
source code
 
calc_length(self)
Returns the length of the bond.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, atom1=None, atom2=None, bond_type=None, atom1_symop=None, atom2_symop=None, standard_res_bond=False, **args)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

get_atom1(self)

source code 

Returns atom #1 of the pair of bonded atoms. This is also accessible by bond.atom1.