comp.lang.ada
 help / color / mirror / Atom feed
From: Martin <martin.dowie@btopenworld.com>
Subject: Re: Pseudo code for Ada tasking
Date: Thu, 7 May 2009 05:39:59 -0700 (PDT)
Date: 2009-05-07T05:39:59-07:00	[thread overview]
Message-ID: <28729c0f-3202-47d7-a6a9-6692f8b22404@s28g2000vbp.googlegroups.com> (raw)
In-Reply-To: df1d07e9-b89d-402b-82fa-224b872dad0a@r13g2000vbr.googlegroups.com

On May 6, 9:32 pm, sjw <simon.j.wri...@mac.com> wrote:
> On May 6, 9:00 pm, Martin <martin.do...@btopenworld.com> wrote:
>
> > On May 6, 4:18 am, Adrian Hoe <aby...@gmail.com> wrote:
>
> > > Hi,
>
> > > I am wondering, is there any reference or example about writing pseudo
> > > code for Ada tasking?
>
> > > Also, how can I model Ada tasking with a diagram?
>
> > > Thanks.
> > > --
> > > Adrian Hoe
>
> Raymond Buhr wrote a (very expensive!) book 'System Design with
> Ada' (Prentice Hall 1984) notable for a complete diagrammatic
> representation of Ada (83, of course) tasking which to my mind was
> more complicated than the Ada language.
>
> > ASGs (Ada Structure Graphs) were the natural diagram for this but I
> > don't know of a tool that supports then apart from Teamwork which has
> > long gone.
>
> > In UML, a statechart comes close. There are professional tools that
> > can produce Ada code from this (for instance, Rhapsody in Ada (from
> > iLogix, then Telelogic, now IBM-Rational).
>
> 'professional'?
>
> There are commercial tools as above, and there are open-source tools
> (not sure whether Umbrello can do this, but ColdFramehttp://coldframe.sourceforge.net/coldframe/certainly can).

I haven't used/tried either of these for ages, so apologies for
missing them out. Pragsoft's UMLStudio is another example with a UML-
>Ada95 generator in it. Doesn't seem to have been updated recently and
I'm not sure it can do a statechart->task implementation or not.


> In any case, tasking and state machines don't necessarily go and-in-
> hand.
>
> --S

Your right, you do have to stereotype the class containing the
statechart as either 'task' (active) or 'non-task' (passive) and you
have to have a uml->code engine that can understand this.

Cheers
-- Martin



      parent reply	other threads:[~2009-05-07 12:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-06  4:18 Pseudo code for Ada tasking Adrian Hoe
2009-05-06 19:03 ` Nicholas Paul Collin Gloucester
2009-05-06 20:00 ` Martin
2009-05-06 20:32   ` sjw
2009-05-06 21:52     ` Georg Bauhaus
2009-05-07 12:39     ` Martin [this message]
replies disabled

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