(self, length=10)
The initializator of G1DList representation
The initializator of G1DList representation
The initializator of G1DList representation
def __init__(self, length=10):
      """ The initializator of G1DList representation """
      super(G1DBinaryString, self).__init__(length)
      self.genomeList = []
      self.stringLength = length
      self.initializator.set(Consts.CDefG1DBinaryStringInit)
      self.mutator.set(Consts.CDefG1DBinaryStringMutator)
      self.crossover.set(Consts.CDefG1DBinaryStringCrossover)
def __init__ ( self , length = 10 ) : super ( G1DBinaryString , self ) . __init__ ( length ) self . genomeList = [ ] self . stringLength = length self . initializator . set ( Consts . CDefG1DBinaryStringInit ) self . mutator . set ( Consts . CDefG1DBinaryStringMutator ) self . crossover . set ( Consts . CDefG1DBinaryStringCrossover )