Table of Contents

Class: _ChromosomeComponent Bio/Graphics/BasicChromosome.py

Base class specifying the interface for a component of the system.

This class should not be instantiated directly, but should be used from derived classes.

Base Classes   
Widget
Methods   
__init__
add
draw
remove
  __init__ 
__init__ ( self )

Initialize a chromosome component.

Attributes:

  • _sub_components -- Any components which are contained under this parent component. This attribute should be accessed through the add() and remove() functions.

  add 
add ( self,  component )

Add a sub_component to the list of components under this item.

  draw 
draw ( self )

Draw the specified component.

Exceptions   
AssertionError( "Subclasses must implement." )
  remove 
remove ( self,  component )

Remove the specified component from the subcomponents.

Raises a ValueError if the component is not registered as a sub_component.

Exceptions   
ValueError( "Component %s not found in sub_components." % component )

Table of Contents

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