public Organism(IChromosome cs, float fitness) { GeneticUtil.CHECKNULLARG(cs); this.m_chromosome = cs; this.Fitness = fitness; this.ID = Organism.generator.GetUniqueID(); this.GenerationID = -1; }
public void AddOrganism(Organism p0) { GeneticUtil.CHECKNULLARG(p0); if (this.IsFull) { throw new GeneticError("Cannot add an organism to a full population"); } this.organisms.Add(p0); }