> I have not yet been able to get my mind around the concept of a 100%
> publish/subscribe system. For example, lets say that one has a toggle
switch
> hooked up to a JAPL input bit and then there is an Embedlet which holds a
> reference to this JAPL peripheral and it polls it once per second.
>
> If the Embedlet produces SwitchEvents, does this mean that every other
Embedlet
> in the application that consumes SwitchEvents will be forced to subscribe
to
> this event source?
Whether I agree with you or not, the way you handle that is by allowing the
subscribers to define which events they should get, be they from a
particular switch, or a particular event type (pressed, released). etc...
- Brill
|