If you are not going to know the number of pre-defined states at runtime a HashMap may be very useful. You may wish to use a HashSet rather than a Map - because it implements the Set interface (which...