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

Class Site

source code

object --+
         |
        Site

List of Fragments within a structure involved in a SITE description.

Instance Methods [hide private]
 
__init__(self, site_id='', fragment_list=[], **args)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
add_fragment(self, fragment_dict, fragment)
Adds a Fragment object to the fragment_dict and updates the values in fragment_dict to reflect the new Fragment object.
source code
 
construct_fragments(self)
Using the site fragment descriptions, finds the Fragment objects in the parent Model.
source code
 
get_model(self)
Returns the parent Model object.
source code
 
get_structure(self)
Returns the parent Structure object.
source code
 
iter_fragments(self)
Iterates child Fragment objects.
source code
 
iter_atoms(self)
Iterates all Atom objects.
source code
 
iter_all_atoms(self)
Iterates all Atom objects plus any in non-default alt_loc conformations.
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, site_id='', fragment_list=[], **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)

add_fragment(self, fragment_dict, fragment)

source code 

Adds a Fragment object to the fragment_dict and updates the values in fragment_dict to reflect the new Fragment object. The fragment_dict is added to the Site if it is not already in it.