Table of Contents

Class: DisorderedEntityWrapper Bio/PDB/Entity.py

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.

  1. 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.

Methods   
__getattr__
__init__
__setitem__
destroy
detach_parent
disordered_add
disordered_get
disordered_get_id_list
disordered_get_list
disordered_has_id
disordered_select
get_id
is_disordered
set_parent
  __getattr__ 
__getattr__ ( self,  method )

Forward the method call to the selected child.

  __init__ 
__init__ ( self,  id )

  __setitem__ 
__setitem__ (
        self,
        id,
        child,
        )

Add a child, associated with a certain id.

  destroy 
destroy ( self )

Destroy the object (and its children).

  detach_parent 
detach_parent ( self )

Detach the parent

  disordered_add 
disordered_add ( self,  child )

This is implemented by DisorderedAtom and DisorderedResidue.

Exceptions   
NotImplementedError
  disordered_get 
disordered_get ( self,  id=None )

Get the child object associated with id.

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

  disordered_get_id_list 
disordered_get_id_list ( self )

Return a list of id's.

  disordered_get_list 
disordered_get_list ( self )

Return list of children.

  disordered_has_id 
disordered_has_id ( self,  id )

Return 1 if there is an object present associated with this id.

  disordered_select 
disordered_select ( self,  id )

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

Uncaught method calls are forwarded to the selected child object.

  get_id 
get_id ( self )

Return the id.

  is_disordered 
is_disordered ( self )

Return 2, indicating that this Entity is a collection of Entities.

  set_parent 
set_parent ( self,  parent )

Set the parent for the object and its children.


Table of Contents

This document was automatically generated on Mon Jul 1 12:02:52 2002 by HappyDoc version 2.0.1