The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: Re: Class Inheritance


  • Subject: RE: Re: Class Inheritance
  • From: Kevin Hawkins
  • Date: Tue, 27 May 2003 23:54:00 +0000

Sorry guys,

I have a domestic issue that has cropped up that is taking my time -
back very shortly - keep up the discussions - and please raise any of the
other topics too - hopefully it will be all sorted in a couple of days
time.

K

> -----Original Message-----
> From: Stuart Booth [mailto:<a
href="/group/xAP_developer/post?postID=CyKfO7Eri8Kh8iFBl36LjYLLHE0IxYnPfZiLYbLdP2hOt2cvqZIjxcp5csZ2JgcQzZUrGu_WARGsUZi0fk0oDw">lists@s...</a>]
> Sent: 25 May 2003 11:31
> To: <a
href="/group/xAP_developer/post?postID=8013Ws0uZmosZZV8MMY_ftRfienXVnaQSd7NYhvtBzJJ_xqgECwy-u9GGJv-LvY0AmYbET683w3y7t_aleyJ3lv_kDtNJg">xAP_developer@xxxxxxx</a>
> Subject: Re: [xAP_developer] Re: Class Inheritance
>
> On Sun, 25 May 2003 09:50:58 -0000, "Patrick Lidstone"
> <<a
href="/group/xAP_developer/post?postID=8SKya5TyhowcQoEC0GgoafPIv4rtsidYVZDRrGDIlLWNmtTdsCSp0GvCtjoBp7_glOr6_4k9wGTXoEtahgs">patrick@l...</a>>
wrote:
>
> >> But here I'm thinking that the derived class schema alters
the
> >> formatting/meaning of the value entirely.
> >
> >Not sure I've understood you PoV here.
>
> Ahh, I'm just mentioning the various ways I was interpreting your own
> thoughts. Reinterpreting vs Redefining were the two ways I thought of
> based on what you'd suggested.
>
> > We cannot allow a derived
> >class to redefine a base class element, only to extend the class.
> >Otherwise no device that understands just the base class can make
use
> >of it, because the meaning of a particular value may have changed!
>
> Great! I didn't much like that either.
>
> >There's an argument to be made for calling the block
> >audio.transport.meridian since the base class can be derived
> >implicitly, and this adds a clear indication of the expected block
> >content when it is broken apart from the header.
>
> So here then, a Class of xAP-Audio.Transport.Meridian demands a block
> name of Audio.Transport.Meridian.
>
> But an app listening for xAP-Audio.Transport messages could still pick
> up the xAP-Audio.Transport components and ignore anything it doesn't
> recognise.
>
> It could still read the Audio.Transport.Meridian block, but only deal
> with Audio.Transport items/values, ignoring the rest. This passes:
>
> Audio.Transport.Meridian
> {
> Command=scan
> }
>
> And if the block was named Audio.Transport, anything not part of the
> Audio.Transport block would instead be flagged as invalid. This fails:
>
> Audio.Transport
> {
> Command=scan
> }
>
> Just a thought on message validation.
>
> >I have thought of one problem with the MI arrangement. What
happens
> >if you want to control more than one "thing" in one
message (ie
> >repeat the same class more than once, in a different control
context
> >each time - perhaps to set a lighting scene) - you can't identify
the
> >significance of each block because it doesn't have a name. You
could
> >solve this easily enough by changing the format of the block name
to
> >be say <class>:<label> where :<label> is
optional. It's a big deal to
> >change the naming scheme, but it's also a big deal to limit
messages
> >to only controlling a single thing...
> >
> >Splitting two pieces of control information that belong together
into
> >separate messages is a really bad idea. It means that the receiver
> >has to be stateful (difficult on say a PIC), and it means that you
> >can have all sorts of unintended behaviour if messages arrive out
of
> >order or if message gets lost.
>
> Oh, yes, of course. That makes perfect sense.
>
> S
> --
> Stuart Booth
> xAPFramework.net - a reusable xAP framework for .net
>
> <a href="http://www.xapframework.net/";>http://www.xapframework.net/</a>
<a
href="/group/xAP_developer/post?postID=npAeQEOKBejF1aCBGAvW6_RWyixqWboq4oYyJg-mfTH_eNOZH3EF3hiQc8B7_05cIDyCAfxxp43IM51HWDLEGQ">stuart@x...</a>
>
> ------------------------ Yahoo! Groups Sponsor
---------------------~--
> >
> Get A Free Psychic Reading! Your Online Answer To Life's Important
> Questions.
> <a href="http://us.click.yahoo.com/Lj3uPC/Me7FAA/CNxFAA/dpFolB/TM";>http://us.click.yahoo.com/Lj3uPC/Me7FAA/CNxFAA/dpFolB/TM</a>
>
---------------------------------------------------------------------~-
> >
>
> To unsubscribe from this group, send an email to:
> <a
href="/group/xAP_developer/post?postID=HQhJLdcxjoKvdLjjaHpjWKlJy_asuwKP3R2EIfFnCIL1F8BVJFtIVMhWR9B5NHbyvlWHuQShAYbjcmDWLcAEMNp2z25nXUKK8u5CYwYVzOQ">xAP_developer-unsubscribe@xxxxxxx</a>
>
>
>
> Your use of Yahoo! Groups is subject to
> <a href="http://docs.yahoo.com/info/terms/";>http://docs.yahoo.com/info/terms/</a>







xAP_Development Main Index | xAP_Development Thread Index | xAP_Development Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.