From: Gregg L. <gr...@li...> - 2006-10-12 15:21:51
|
Quoting Jason Sharpee (10/12/06 11:06 AM): > On Wed, 11 Oct 2006, Gregg Liming wrote: > >> Quoting Jason Sharpee (10/11/06 9:28 PM): >>> Hi All, >>> >>> Is there anything like a scene object in MH that can add object's >>> too and have their individual state settings applied when the scene like >>> object is activated? >>> >>> Its been a long while since I have had a look at the group object >>> and dont remember if that can do that (ie set each member object to a >>> specified state when turned 'on') >> The new lib/X10_Scene.pm does that and arguably the non-x10-specific >> code should have been abstracted out to some lib/Scene.pm lib. Feel >> free to do so or I'd be happy to help. > > Thats what I was thinking of doing. Right now I have a heterogenous > UPB/X10 network with scenes and wanted to make sure I wasnt replicating > anyone elses work. not mine; I'm all for it > I am wondering though if a Scene object should be derived from a Group > object though. I would lobby against that approach as it has non-light semantics (e.g., used to target collection of PA objects, etc.). OTOH, maybe a group could be passed to a Scene_Item to instantiate a set of objects. So, rather than "inherit from", be "composed by"... > I looked at the Group object code this morning and it > doesnt do a whole lot, It doesn't; but there's plenty of code that enumerates objects in groups. I don't think that we necessarily want that automatically occurring for scene members. > besides deal with optimizing X10 requests. Maybe > this object needs some TLC as well? That may well be. |