comp.lang.ada
 help / color / mirror / Atom feed
From: "Peter Dencker" <dencker@web.de>
Subject: Re: ada95 and uml
Date: Mon, 7 May 2001 00:03:03 +0200
Date: 2001-05-06T22:03:37+00:00	[thread overview]
Message-ID: <9d4hnp$o9t$1@newsread2.nexgo.de> (raw)
In-Reply-To: x7vsnj0go62.fsf@smaug.pushface.org


"Simon Wright" <simon@pushface.org> schrieb im Newsbeitrag
news:x7vsnj0go62.fsf@smaug.pushface.org...
> Robert Palasek <bobpalasek@home.com> writes:
>
> > "Riehle, Richard" wrote:
> >
> > > From my study of UML and my knowledge of Ada, I have concluded
> > > there is a substantial linguistic discontinuity.  Ada has a rich
> > > model of program development that cannot be > completely represented
> > > with UML.  Translating from UML to Ada or Ada to UML is guaranteed
> > > to lose something in the translation.
> >
> > I know a little about each, but am not an expert yet with either.
> >
> > But I don't understand the idea that you are supposed to be able to
> > generate one from the other.  That seems wrong and misguided to me.

The idea of round-trip is carried forward by folks whose reverse engineering
tool is as good as its forward generating code generator. That must
obviously be an isomorphic mapping. Thus, the picture can't tell you more
than the code and vice versa. If that is all they want, fine.

> >
> >  A model is an abstraction that carries some proper subset of
> > salient points of the thing being modeled.  For it to be useful, the
> > model has to leave other stuff out.  If it doesn't leave anything
> > out, it's just an alternate representation.
>
> True; model + translation rules -> code. This is possible provided
> your model is expressed with the precision required by the translation
> rules[1].
>
> This has been a principle of Shlaer-Mellor Recursive design for a
> while now (unfortunately the book hasn't come out).
>
> You can get a commercial UML->Ada generator now from Aonix that does
> this (for code frameworks only). I'm sure there are others, perhaps
> not for Ada!

Yes, indeed. You get StP/UML + ACD  and it does more than just code
frameworks only, e.g. generates all the automaton code for state transition
diagrams.

To get a first idea read http://www.aonix.com/content/downloads/stp/ACD1.pdf

It also tells you why round-trip does not help much if you see your design
as an abstraction over the final code.

>
> What you can't reasonably expect to do is to take the result of such a
> code-generation, change it, and round-trip back to the model. No great
> loss (IMO).
>
> [1] As a simple example, you might have to specify role names for each
> end of an association.





  parent reply	other threads:[~2001-05-06 22:03 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-19 18:25 ada95 and uml "Riehle, Richard"
2001-04-21  1:58 ` Robert C. Leif, Ph.D.
2001-04-21 11:39   ` Simon Wright
2001-04-23 12:43     ` Marc A. Criley
2001-04-23  3:45 ` Robert Palasek
2001-04-23  5:50   ` Simon Wright
2001-04-24 13:53     ` Robert Palasek
2001-04-25  3:54       ` Ada95 and UML Robert C. Leif, Ph.D.
2001-04-26 19:46         ` Simon Wright
2001-04-25 13:16     ` ada95 and uml Ken Garlington
2001-04-25 13:48       ` Ted Dennison
2001-05-06 22:03     ` Peter Dencker [this message]
2001-04-23 12:03   ` Martin Dowie
2001-04-23 12:36     ` Ken Garlington
2001-04-23 13:34       ` Martin Dowie
2001-05-11 13:10 ` Mark T
  -- strict thread matches above, loose matches on Subject: below --
2001-04-11 14:35 Ada95 and UML Joe Simon
2001-04-11 15:54 ` Ted Dennison
2001-04-11 16:15   ` Marin David Condic
2001-04-11 17:16   ` Pat Rogers
2001-04-11 16:06 ` Pat Rogers
2001-04-12 10:24   ` John Robinson
2001-04-12 17:46     ` Dirk Craeynest
2001-04-12  7:20 ` Martin Dowie
2001-04-12 10:50   ` Peter Amey
2001-04-12 11:22     ` Martin Dowie
2001-04-13  6:49 ` 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