Commits

Giovanni Marco Dall'Olio committed 16531e4

ADD: added getSize and minor fixes

Comments (0)

Files changed (1)

src/GoogleQueryGenome.py

 #
        if not cloning:
            self.initializator.set(googleQueryInitializer)
-           self.mutator.set(Consts.CDefG2DListMutator)
-           self.crossover.set(Consts.CDefG2DListCrossover)
+#           self.mutator.set(Consts.CDefG2DListMutator)
+#           self.crossover.set(Consts.CDefG2DListCrossover)
 
     def clearList(self):
        self.genomeList = [GoogleQueryChromosome([None])*self.seqlength, GoogleQueryChromosome([None])*self.seqlength]
         return 2
 
     def getWidth(self):
-        return self.seqlength
+        return self.getParam("seqlength")
+
+    def getSize(self):
+        return self.getParam("seqlength")
 
     def setItem(self, x, y, value):
         self.genomeList[x][y] = value
 
 
 
-
 def test():
     pass