GenotypeLibrary class in Global context

Manages all genotypes in the experiment, organized in one or more groups. Some functions refer to the "selected genotype" i.e. the genotype number "GenotypeLibrary.genotype" in the group number "GenotypeLibrary.group". For example to access the first genoype in the first group you could do:
GenotypeLibrary.group=0; GenotypeLibrary.genotype=0; var name=Genotype.name;
The new preferred way doesn't refer to the static Genotype object:
var name=GenotypeLibrary.getGroup(0).getGenotype(0).name;

26 members:

type and namedescriptioncomments
integer group
integer
selected group  
integer groupcount
integer
Number of groups  
integer genotype
integer
selected genotype  
function newGenotype
function
 make new genotype from the supplied string and select the genotype 
function delGenotype
function
 remove selected genotype 
function del1Genotype
function
 remove 1 genotype 
function copyGenotype
function
 copy selected genotype to another group 
function getFromCreature
function
 copy a genotype from current creature 
function getFromCreatureObject
function
 copy a genotype from creature object passed in argument 
function addPerformanceFromCreature
function
 add performance figures from current creature 
function mutate
function
 mutate selected genotype 
function crossover
function
 crossover selected genotype with other 
function worst
function
 get worst genotype 
function random
function
 get random genotype 
function roulette
function
 get fitness proportional genotype 
function revroulette
function
 get reverse fitness proportional genotype 
function tournament
function
 get tournament winner genotype 
function randomLikeThis
function
 get random genotype similar to current one 
function likeThisRoulette
function
 get random genotype similar to current one, fitness proportional 
function findGenotype
function
 find a genotype 
function findGenotypeForCreature
function
 find a genotype of the current creature 
function addGroup
function
 add genotype group 
function remGroup
function
 remove genotype group 
function clear
function
  
function clearGroup
function
  
function getGroup
function
  

Global context