comp.lang.ada
 help / color / mirror / Atom feed
From: "per" <commander@death-star.com>
Subject: Re: OO problem: Performing actions on messages (very long, sorry)
Date: 11 Jan 2005 01:06:03 -0800
Date: 2005-01-11T01:06:03-08:00	[thread overview]
Message-ID: <1105434363.417863.9470@f14g2000cwb.googlegroups.com> (raw)
In-Reply-To: <134hnvhae7686.1szfdwww8y92r$.dlg@40tude.net>

>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.




  reply	other threads:[~2005-01-11  9:06 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-22 13:49 OO problem: Performing actions on messages (very long, sorry) per
2004-12-22 15:17 ` Dmitry A. Kazakov
2004-12-22 16:28 ` Martin Krischik
2004-12-22 17:42   ` per
2004-12-22 18:16     ` Martin Krischik
2004-12-22 19:54     ` Dmitry A. Kazakov
2005-01-03 12:37       ` per
2005-01-03 14:14         ` Dmitry A. Kazakov
2005-01-04 12:05           ` per
2005-01-04 13:30             ` Dmitry A. Kazakov
2005-01-04 15:21               ` per
2005-01-04 17:47                 ` Dmitry A. Kazakov
2005-01-05 12:01                   ` per
2005-01-05 13:23                     ` Dmitry A. Kazakov
2005-01-05 15:59                       ` per
2005-01-05 20:44                         ` Dmitry A. Kazakov
2005-01-10  8:42                           ` per
2005-01-10 14:22                             ` Dmitry A. Kazakov
2005-01-10 16:24                               ` per
2005-01-10 19:09                                 ` Dmitry A. Kazakov
2005-01-11  9:06                                   ` per [this message]
2004-12-22 17:46   ` per
2004-12-22 18:02     ` Martin Krischik
2005-01-03 10:05       ` per
2004-12-22 18:35     ` u_int32_t
2004-12-22 18:38       ` u_int32_t
2004-12-24 18:52 ` Nick Roberts
2005-01-03 16:59   ` per
2005-01-10 12:10   ` per
2005-01-10 13:49     ` Marius Amado Alves
2005-01-10 21:54 ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox