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

Type Bond

object --+
         |
        Bond


Indicates two atoms are bonded together.
Method Summary
  __init__(self, atom1, atom2, bond_type, atom1_symop, atom2_symop, standard_res_bond, **args)
  __deepcopy__(self, memo)
  __str__(self)
  calc_length(self)
Returns the length of the bond.
  get_atom1(self)
Returns atom #1 of the pair of bonded atoms.
  get_atom2(self)
Returns atom #2 of the pair of bonded atoms.
  get_chain1(self)
Returns the Chain object of atom #1.
  get_chain2(self)
Returns the Chain object of atom #2.
  get_fragment1(self)
Returns the Fragment object of atom #1.
  get_fragment2(self)
Returns the Fragment object of atom #2.
  get_model1(self)
Returns the Model object of atom #1.
  get_model2(self)
Returns the Structure object of atom #2.
  get_partner(self, atm)
Returns the other atom involved in the bond.
  get_structure1(self)
Returns the Structure object of atom #1.
  get_structure2(self)
Returns the Structure object of atom #2.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Method Details

calc_length(self)

Returns the length of the bond.

get_atom1(self)

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

get_atom2(self)

Returns atom #2 of the pair of bonded atoms.

get_chain1(self)

Returns the Chain object of atom #1.

get_chain2(self)

Returns the Chain object of atom #2.

get_fragment1(self)

Returns the Fragment object of atom #1.

get_fragment2(self)

Returns the Fragment object of atom #2.

get_model1(self)

Returns the Model object of atom #1.

get_model2(self)

Returns the Structure object of atom #2.

get_partner(self, atm)

Returns the other atom involved in the bond.

get_structure1(self)

Returns the Structure object of atom #1.

get_structure2(self)

Returns the Structure object of atom #2.

Generated by Epydoc 2.1 on Sun Apr 23 22:08:39 2006 http://epydoc.sf.net