From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a8d137db7a5f6c81 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail From: "per" Newsgroups: comp.lang.ada Subject: Re: OO problem: Performing actions on messages (very long, sorry) Date: 11 Jan 2005 01:06:03 -0800 Organization: http://groups.google.com Message-ID: <1105434363.417863.9470@f14g2000cwb.googlegroups.com> References: <1103723394.299024.314670@c13g2000cwb.googlegroups.com> <13465377.hrn0RlrJV7@linux1.krischik.com> <1103737351.196460.85450@f14g2000cwb.googlegroups.com> <1qdvdjid4u58v.1xz6j5ec6nfcy$.dlg@40tude.net> <1104755823.837077.74630@z14g2000cwz.googlegroups.com> <8oknh024yb43$.71qlyp6g8y2x$.dlg@40tude.net> <1104840326.160879.132400@c13g2000cwb.googlegroups.com> <1ogeykubpns90.2jnblmdu1wg2.dlg@40tude.net> <1104852099.054703.265080@f14g2000cwb.googlegroups.com> <1104926478.797780.7830@c13g2000cwb.googlegroups.com> <1odpvi9429wrb.r854wtzbr1qm$.dlg@40tude.net> <1104940745.420814.235130@f14g2000cwb.googlegroups.com> <1rall0nftkcsj$.1e5jj6uwwwezc.dlg@40tude.net> <1105346564.204857.53640@c13g2000cwb.googlegroups.com> <1gsktm8wimsc$.1o2yngarlww9s$.dlg@40tude.net> <1105374271.190657.191560@f14g2000cwb.googlegroups.com> <134hnvhae7686.1szfdwww8y92r$.dlg@40tude.net> NNTP-Posting-Host: 138.14.239.132 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1105434367 19903 127.0.0.1 (11 Jan 2005 09:06:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 11 Jan 2005 09:06:07 +0000 (UTC) In-Reply-To: <134hnvhae7686.1szfdwww8y92r$.dlg@40tude.net> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=138.14.239.132; posting-account=e84-wQ0AAADeDLnjH5yWqnRMVsJLfQJg Xref: g2news1.google.com comp.lang.ada:7635 Date: 2005-01-11T01:06:03-08:00 List-Id: >But scheduling items are instances not types. Yes. They are called Actions. >Instances are unknown. *Message* instances are unknown when the scheduling takes place. >OK, why that bunch of actions cannot be just a piece of code in a task? The user is not supposed to code, build and load the entire system for every test. He/she shall schedule actions appropriate to the current test and run it the system, reschedule for another test and run it etc. (Scripting in non-realtime is BTW done with Tcl/Tk & Tash.) >Are you writing an interpreter? Well, thinking about it - yes, I suppose. >Shouldn't messages be formed rather in terms of device semantics? And why >should they exist before being sent to the devices? Is it a kind of >premature memory optimization? 1. Device 1 delivers data into the system (which also can be looked upon as a kind of router not caring too much of message contents) 2. The system intercepts the data (a Message) letting the user manipulate, display, record etc the data according to a preprogrammed schedule (created by the user, in form of a list of different Actions, not hardcoded in Ada etc etc). In this sense the system must "know of" the message contents. 3. The system delivers the data (Message) to Device 2. Gentlemen, my problems are solved thanks to a hint in one of Dmitry's earlier examples. I'll now settle with that. I thank you all for your efforts.