(no subject)
Mar. 1st, 2005 05:16 pmThe weekend was long and emotional. 45 hours of Engaged Encounter make for a very tired Kevin. As
morganlf has mentioned, it was quite long, quite tiring, and often quite silly. The Irish priest was the best part though, especially when he started in on the mother-in-law jokes. :)
Today has been mostly uneventful--coding and working on my qual presentation. Anyone know anything about extensible event dispatch in Java? I need a good data structure to represent arbitary EventReceivers (objects implementing an EventReceiver interface) who are interested in different types of events (all subclassing a common Event class). In the past I've created a Vector per event type to represent all interested EventReceivers and then notified all the Vector elements when an incoming event matches. This isn't very extensible though, since as I add new event types to the system I have to create more recipient vectors, etc. I'd also like to be able to match on internal event structure, although I'm worried about associated overhead....
Anyone done anything like this? Read papers on a similar topic? Point me at them! :)
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-userinfo.gif)
Today has been mostly uneventful--coding and working on my qual presentation. Anyone know anything about extensible event dispatch in Java? I need a good data structure to represent arbitary EventReceivers (objects implementing an EventReceiver interface) who are interested in different types of events (all subclassing a common Event class). In the past I've created a Vector per event type to represent all interested EventReceivers and then notified all the Vector elements when an incoming event matches. This isn't very extensible though, since as I add new event types to the system I have to create more recipient vectors, etc. I'd also like to be able to match on internal event structure, although I'm worried about associated overhead....
Anyone done anything like this? Read papers on a similar topic? Point me at them! :)