private TopologicalBag<Token,State> shifts = new TopologicalBag<Token,State>();
private boolean accept = false;
- private TopologicalBag<Token,State> oshifts = shifts;
+ private VisitableMap<Token,State> oshifts = shifts;
//private TopologicalBag<Token,Reduction> reductions2 = reductions;
// Interface Methods //////////////////////////////////////////////////////////////////////////////
//
/** a mapping from topologies over <tt>K</tt> to <i>sets of</i> values of type <tt>V</tt> */
-public class TopologicalBag<K,V> implements MapBag<Topology<K>,V> {
+public class TopologicalBag<K,V> implements MapBag<Topology<K>,V>, VisitableMap<K,V> {
// CRUCIAL INVARIANT: keys in this hashmap MUST be disjoint or the universe will implode
private final HashMap<Topology<K>,HashSet<V>> h = new HashMap<Topology<K>,HashSet<V>>();