<div class="gmail_quote">On Fri, Jul 31, 2009 at 4:20 PM, Laurens Van Houtven <span dir="ltr">&lt;<a href="mailto:lvh@laurensvh.be">lvh@laurensvh.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Also, regarding the message classes at every level: does this include<br>
the top level? I thought the top level (eg most abstracted) would<br>
contain a number of callbacks, such as:<br>
<br>
    positionReceived(self, latitude, longitude)<br>
    positionErrorReceived(self, hdop, vdop, pdop)<br>
    altitudeReceived(self, altitude)<br>
    altitudeErrorReceived(self, ...)<br>
<br>
Et cetera. A sentence at this level seems a bit superfluous, but I can<br>
see it being somewhat useful internally.</blockquote><div><br>I don&#39;t have a strong preference either way.  My point about having a &quot;sentenceReceived&quot; at the lower levels has more to do with the question of where to factor the dispatch: <i>interfaces</i> typically shouldn&#39;t have prefix_Foo methods on them, since you can always have an unexpected prefix_Bar if the dispatch mechanism is expanded.  However, &quot;positionReceived&quot; has nice, well-defined semantics of its own, so the interface you&#39;ve outlined here sounds good to me.<br>
</div></div>