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); }
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); } }