FiniteAutomaton should be immutable. Users should have no reason to alter
its structure after it has been constructed. So methods like
addTransition() should be hidden from normal users. Only FiniteAutomaton's
creators or builders should be able to add transitions to it.
Check out the design patterns to find out some suitable patterns to cover
this issue.
Original issue reported on code.google.com by lemontree.cool on 24 Aug 2008 at 2:26
Original issue reported on code.google.com by
lemontree.cool
on 24 Aug 2008 at 2:26