示例#1
0
        public void Konvertohappashapi(Gjendje gjendjetautomatit, Alfabet alfabetiautomatit)
        {
            string    eps                = "e";
            Kalimet   kalimetObject      = new Kalimet();
            ArrayList gjendjeepsilon1prv = new ArrayList();
            Gjendje   gjendje;
            int       count           = 0;
            string    gje             = "";
            int       gjendjapozicion = 1;

            foreach (var i in gjendjetautomatit._gjendje)
            {
                count++;
            }

            //for(int i=0;i<count;i++)
            //{
            //    // foreach (gje in gjendjetautomatit.getgjendja(i));
            //    gje = gjendjetautomatit.getgjendja(i);//per cdo gjendje te automatit bejme
            //    {
            //        foreach (var j in Automati)
            //        {
            //            kalimetObject = (Kalimet)j;
            //            kontrollpernjegjendje(gje, eps);


            //        }
            //    }
            //}
            while (gjendjapozicion < count)
            {
                gje = gjendjetautomatit.getgjendja(gjendjapozicion);//per cdo gjendje te automatit bejme
                {
                    kontrollpernjegjendje(gje, eps);
                    gjendjapozicion++;
                }
            }
        }