Exemple #1
0
        public NDFA <T> Reverse()
        {
            NDFA <T> reversed = new NDFA <T>();

            reversed.invoerSymbolen = invoerSymbolen;//hetzelfde
            reversed.startSymbolen  = eindToestanden;
            reversed.eindToestanden = startSymbolen;
            reversed.toestanden     = toestanden;
            foreach (Toestand <T> t in reversed.toestanden)
            {
                t.Reverse();
            }
            return(reversed);
        }
Exemple #2
0
 public bool Equals(NDFA <T> other)
 {
     if (other == null)
     {
         return(false);
     }
     else if (this.invoerSymbolen == other.invoerSymbolen && this.toestanden == other.toestanden && this.startSymbolen == other.startSymbolen && this.eindToestanden == other.eindToestanden)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }