예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="IndexGenome"></param>
        /// <returns></returns>
        public static string GetGenomeProgram(int IndexGenome)
        {
            string str = "";

            //
            IndexGenome = Genomes.GetLastGenocodeIndex();
            //

            foreach (Chromosome Chomo in Genomes.GetGenocode(IndexGenome))
            {
                str += "Chromo:\n";
                foreach (Gene Gen in Chomo)
                {
                    str += (TypeActionsOfPlants)Gen.GetGeneCommand() + "\n";
                }
            }
            return(str);
        }