On 18 Apr 2006, at 10:07, Melchior FRANZ wrote:
I noticed most of the above, and some of that evolution was apparent from the comments, but it's good to see the whole progression in one place!
My 'run-level' idea is almost the same, but rather than a flag, I'd have a /sim/runlevel property, and have the listeners watch for it changing. Eg, have the listener fire when run level was > 4 or 8, and stop when the run-level dropped lower again. Having separate signals for each subsystem seems like overkill, but what I am considering is naming the groups, and then having a /sim/signals/ or /sim/subsystems/ entry for each; of course we would need to introduce finer-grained groups but that's easy enough to do - the code already works with everything in just one flat group! As I say, I'm still trying to decide what approach is cleaner; the run-level concept is just one property, and nicely encapsulates the hierarchy of subsystems (if you're switching to level 8, all lower levels must already be initialized). But having names and separate flags makes the actual dependency clearer: 'this script depends on the aircraft subsystems' or 'this script depends on the environmental subsystems'. I guess it partly depends how complex the dependencies for any given script are in practice - hopefully they're actually quite simple. H&H James |
- [Flightgear-devel] Subsystem run-levels James Turner
- Re: [Flightgear-devel] Subsystem run-levels Erik Hofman
- Re: [Flightgear-devel] Subsystem run-levels James Turner
- [Flightgear-devel] Re: Subsystem run-levels Melchior FRANZ
- Re: [Flightgear-devel] Re: Subsystem run-l... James Turner
- [Flightgear-devel] Re: Subsystem run-level... Melchior FRANZ
- Re: [Flightgear-devel] Re: Subsystem ... James Turner
- [Flightgear-devel] Re: Subsystem ... Melchior FRANZ
- Re: [Flightgear-devel] Re: Su... James Turner
- [Flightgear-devel] Re: Subsys... Melchior FRANZ
- [Flightgear-devel] Re: Subsys... Melchior FRANZ
- [Flightgear-devel] Re: Subsys... Melchior FRANZ
- Re: [Flightgear-devel] Re: Su... James Turner
- Re: [Flightgear-devel] Subsystem run-levels Jim Wilson
- Re: [Flightgear-devel] Subsystem run-levels James Turner