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: a07f3367d7,6fd94bffa2adb3e9 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!s28g2000vbp.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: Pseudo code for Ada tasking Date: Thu, 7 May 2009 05:39:59 -0700 (PDT) Organization: http://groups.google.com Message-ID: <28729c0f-3202-47d7-a6a9-6692f8b22404@s28g2000vbp.googlegroups.com> References: <6f56afa9-0b03-4371-b1f0-fda90b77be6f@z23g2000prd.googlegroups.com> <01a80781-90fa-4afb-a911-5994561e6323@l5g2000vbc.googlegroups.com> NNTP-Posting-Host: 20.133.0.8 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1241699999 19074 127.0.0.1 (7 May 2009 12:39:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 7 May 2009 12:39:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s28g2000vbp.googlegroups.com; posting-host=20.133.0.8; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5729 Date: 2009-05-07T05:39:59-07:00 List-Id: On May 6, 9:32=A0pm, sjw wrote: > On May 6, 9:00=A0pm, Martin wrote: > > > On May 6, 4:18=A0am, Adrian Hoe wrote: > > > > Hi, > > > > I am wondering, is there any reference or example about writing pseud= o > > > 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.sou= rceforge.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