Home | Trees | Index | Help |
|
---|
Package pygene :: Module gamete :: Class Gamete |
|
object
--+ |PGXmlMixin
--+ | Gamete
Contains a set of genes.
Two gametes can be added together to form a new organismMethod Summary | |
---|---|
Creates a new gamete from a set of genes | |
Combines this gamete with another gamete to form an organism | |
Fetch a single gene by name | |
Returns a whole new Organism class from the combination of this gamete with another | |
Inherited from PGXmlMixin | |
Dumps out the population to an open file in XML format. | |
| |
dumps out class information | |
dumps out to xml, returning a string of the raw generated xml | |
Writes out the contents of this population into the xml tree | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(self,
orgclass,
**genes)
Creates a new gamete from a set of genes
|
__add__(self,
other)
Combines this gamete with another gamete to form an organism
|
__getitem__(self,
name)
Fetch a single gene by name
|
conceive(self, other)Returns a whole new Organism class from the combination of this gamete with another |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Dec 12 14:37:12 2005 | http://epydoc.sf.net |