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.
Methods
|
|
|
|
__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.
|
|
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.
|