Package Bio :: Package config :: Module DBRegistry :: Class DBGroup
[show private | hide private]
[frames | no frames]

Class DBGroup

RegisterableObject --+    
                     |    
     RegisterableGroup --+
                         |
                        DBGroup


Groups DBObjects that return the same kind of data.
Method Summary
  __init__(self, name, abbrev, doc, behavior, cache)
DBGroup(name[, abbrev][, behavior][, doc])
  __getitem__(self, key)
  get(self, key, default)
  get_as(self, key, to_io, default)
S.get_as(key[, to_io][, default]) -> object
  _run_concurrent(self, key)
  _run_serial(self, key)
    Inherited from RegisterableGroup
  add(self, obj, index)
  add_after(self, obj, after)
  add_before(self, obj, before)

Method Details

__init__(self, name, abbrev=None, doc=None, behavior='serial', cache=None)
(Constructor)

DBGroup(name[, abbrev][, behavior][, doc])

name is the name of the object, and abbrev is an abbreviation for the name.

behavior is either "serial" or "concurrent". "serial" means that I'll run each object until I get one that finishes successfully. "concurrent" means that I'll run each object at the same time and return the one that finishes.
Overrides:
Bio.config.Registry.RegisterableGroup.__init__

get_as(self, key, to_io=None, default=None)

S.get_as(key[, to_io][, default]) -> object

Generated by Epydoc 2.1 on Wed Jan 31 09:58:01 2007 http://epydoc.sf.net