Package Bio :: Package PDB :: Module Entity :: Class DisorderedEntityWrapper
[hide private]
[frames] | no frames]

Class DisorderedEntityWrapper

source code

Known Subclasses:

This class is a simple wrapper class that groups a number of equivalent Entities and forwards all method calls to one of them (the currently selected object). DisorderedResidue and DisorderedAtom are subclasses of this class.

E.g.: A DisorderedAtom object contains a number of Atom objects, where each Atom object represents a specific position of a disordered atom in the structure.

Instance Methods [hide private]
 
__init__(self, id) source code
 
__getattr__(self, method)
Forward the method call to the selected child.
source code
 
__setitem__(self, id, child)
Add a child, associated with a certain id.
source code
 
get_id(self)
Return the id.
source code
 
disordered_has_id(self, id)
Return 1 if there is an object present associated with this id.
source code
 
detach_parent(self)
Detach the parent
source code
 
get_parent(self)
Return parent.
source code
 
set_parent(self, parent)
Set the parent for the object and its children.
source code
 
disordered_select(self, id)
Select the object with given id as the currently active object.
source code
 
disordered_add(self, child)
This is implemented by DisorderedAtom and DisorderedResidue.
source code
 
is_disordered(self)
Return 2, indicating that this Entity is a collection of Entities.
source code
 
disordered_get_id_list(self)
Return a list of id's.
source code
 
disordered_get(self, id=None)
Get the child object associated with id.
source code
 
disordered_get_list(self)
Return list of children.
source code
Method Details [hide private]

disordered_select(self, id)

source code 

Select the object with given id as the currently active object.

Uncaught method calls are forwarded to the selected child object.

disordered_get(self, id=None)

source code 

Get the child object associated with id.

If id is None, the currently selected child is returned.