comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: ada95 and uml
Date: 23 Apr 2001 06:50:29 +0100
Date: 2001-04-23T05:50:29+00:00	[thread overview]
Message-ID: <x7vsnj0go62.fsf@smaug.pushface.org> (raw)
In-Reply-To: 3AE3A5BD.C0601A95@home.com

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

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.



  reply	other threads:[~2001-04-23  5:50 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 [this message]
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
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