(self, height, width, cloning=False)
The initializator of G2DList representation,
        height and width must be specified
The initializator of G2DList representation,
        height and width must be specified
The initializator of G2DList representation height and width must be specified
def __init__(self, height, width, cloning=False):
        """ The initializator of G2DList representation,
        height and width must be specified """
        super(G2DList, self).__init__()
        self.height = height
        self.width = width

        self.genomeList = [None] * height
        for i in xrange(height):
            self.genomeList[i] = [None] * width

        if not cloning:
            self.initializator.set(Consts.CDefG2DListInit)
            self.mutator.set(Consts.CDefG2DListMutator)
            self.crossover.set(Consts.CDefG2DListCrossover)
def __init__ ( self , height , width , cloning = False ) : super ( G2DList , self ) . __init__ ( ) self . height = height self . width = width self . genomeList = [ None ] * height for i in xrange ( height ) : self . genomeList [ i ] = [ None ] * width if not cloning : self . initializator . set ( Consts . CDefG2DListInit ) self . mutator . set ( Consts . CDefG2DListMutator ) self . crossover . set ( Consts . CDefG2DListCrossover )