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

Class DisorderedEntityWrapper

source code

object --+
         |
        DisorderedEntityWrapper
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)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getattr__(self, method)
Forward the method call to the selected child.
source code
 
__getitem__(self, id)
Return the child with the given id.
source code
 
__setitem__(self, id, child)
Add a child, associated with a certain id.
source code
 
__contains__(self, id)
True if the child has the given id.
source code
 
__iter__(self)
Return the number of children.
source code
 
__len__(self)
Return the number of children.
source code
 
__sub__(self, other)
Subtraction with another object.
source code
 
get_id(self)
Return the id.
source code
 
disordered_has_id(self, id)
True 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

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id)
(Constructor)

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

Overrides: object.__init__
(inherited documentation)

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.