
package forager.events;

import galileo.event.EventMap;

public class ForagerEventMap extends EventMap {

    public ForagerEventMap() {
        addMapping(JoinEvent.class);
        addMapping(TaskRequest.class);
        addMapping(TaskSpec.class);
    }
}


package forager.events;

import galileo.event.EventMap;

public class ForagerEventMap extends EventMap {

    public ForagerEventMap() {
        addMapping(1, JoinEvent.class);
        addMapping(2, TaskSpec.class);
    }
}

--- 
+++ 
@@ -6,7 +6,8 @@
 public class ForagerEventMap extends EventMap {
 
     public ForagerEventMap() {
-        addMapping(1, JoinEvent.class);
-        addMapping(2, TaskSpec.class);
+        addMapping(JoinEvent.class);
+        addMapping(TaskRequest.class);
+        addMapping(TaskSpec.class);
     }
 }
Update for new ID-less addMapping()
