/** * Looks up transition in transition function. * @return delta(q,c) * @exception IllegalArgumentException if c is not in the alphabet */ public State delta(State q, char c) throws IllegalArgumentException { if (!alphabet.symbols.contains(c)) throw new IllegalArgumentException("symbol '"+c+"' not in alphabet"); return transitions.get(new StateSymbolPair(q, c)); }