Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
test_GAQueens.QueensAlphabet Class Reference

List of all members.

Public Member Functions

def __init__

Public Attributes

 letters

Detailed Description

Definition at line 148 of file test_GAQueens.py.


Constructor & Destructor Documentation

def test_GAQueens.QueensAlphabet.__init__ (   self,
  num_queens 
)
Initialize with the number of queens we are calculating for.

Definition at line 149 of file test_GAQueens.py.

00149 
00150     def __init__(self, num_queens):
00151         """Initialize with the number of queens we are calculating for.
00152         """
00153         # set up the letters for the alphabet
00154         assert 0 <= num_queens <= 9
00155         self.letters = "".join(str(i) for i in range(num_queens))
00156 
# --- Problem specific crossover, mutation and repair operations

Member Data Documentation

Definition at line 154 of file test_GAQueens.py.


The documentation for this class was generated from the following file: