comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Ada and UML
Date: Thu, 02 Sep 2010 07:14:42 +0100
Date: 2010-09-02T07:14:42+01:00	[thread overview]
Message-ID: <m239tsoenh.fsf@pushface.org> (raw)
In-Reply-To: op.vidpuceaule2fv@garhos

"Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr> writes:

> Le Tue, 31 Aug 2010 23:20:41 +0200, nobody <nobody@nowhere.com> a écrit:
>> Then the translation into code is just something mechanical.
>
> I do not really believe in automatic source generation from UML, as
> there may be multiple possibilities. Or else, may be these systems use
> something  to tell “for This, use That”. Just think that in Ada, you
> may have for  example at least, where polymorphism is required, two
> ways to do (when  feasible, sometime only one will applies) : static
> (via generics) and  dynamic (via tagged or interface)
> polymorphism. How can a system know it  should use this or that ? This
> requires a human analysis, to say “well,  this can be statically
> known, so let's use static polymorphism” or else  the opposite (just
> an example).

I am (was!) reasonably familiar with the ideas behind one approach to
this, the one originating with Shlaer-Mellor OOA.

You develop a model of your problem. This model is is precise enough
that it can be translated, given a set of rules, into executable code,
but it contains nothing about any specific platform (Ada, C, Java, ... /
embedded, distributed, ...). Note, for UML specifically, this means you
need precise semantics at the model level for this to be possible.

You develop (or buy, or re-use) a translation engine which translates
from that model to the platform you're using today.

> Your point makes me think about the so called “Executable
> UML”. Unfortunately, I do not know anything about it. I am just pretty
> sure this  cannot be automated.

Bridgepoint presently from Mentor Graphics,
http://www.mentor.com/products/sm/model_development/

iUML from Kennedy-Carter, http://www.kc.com/ (see 'Products')

In both cases the actions (the part that does things) are written in a
tool-specific programming language, and one of the jobs of the
translation engine is to turn this into compilable code.

Of particular interest to you, maybe, see
http://www.kc.com/PRODUCTS/iccg/adacode.php where you are offered two
Ada code generators, one for Ada 83 and one for SPARK (I don't know how
the SPARK generator gets 'interesting' pre/post/invariant conditions in
there; obviously the analyst is going to have to provide them).



  reply	other threads:[~2010-09-02  6:14 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-31 10:12 Ada and UML Yannick Duchêne (Hibou57)
2010-08-31 11:05 ` Yannick Duchêne (Hibou57)
2010-08-31 11:54   ` Yannick Duchêne (Hibou57)
2010-08-31 16:34     ` Matteo Bordin
2010-08-31 21:20       ` nobody
2010-09-02  0:19         ` Yannick Duchêne (Hibou57)
2010-09-02  6:14           ` Simon Wright [this message]
2010-09-02 20:33           ` nobody
2010-08-31 23:14       ` Yannick Duchêne (Hibou57)
2010-08-31 23:31         ` Yannick Duchêne (Hibou57)
2010-09-01  8:20         ` Matteo Bordin
2010-09-01 18:44           ` Simon Wright
2010-09-01 21:56             ` Simon Wright
2010-09-02  1:18             ` Yannick Duchêne (Hibou57)
2010-09-02 10:25               ` Brian Drummond
2010-09-02  0:43           ` Yannick Duchêne (Hibou57)
2010-09-02  7:50             ` Georg Bauhaus
2010-09-02 23:05               ` Yannick Duchêne (Hibou57)
2010-09-03  4:19                 ` Yannick Duchêne (Hibou57)
2010-09-03  6:54                   ` Matteo Bordin
2010-09-03 10:20                     ` Yannick Duchêne (Hibou57)
2010-09-03 11:33                       ` sjw
2010-09-03 13:18                   ` Hibou57 (Yannick Duchêne)
2010-09-03 16:14                     ` Matteo Bordin
2010-09-04 14:51                       ` Yannick Duchêne (Hibou57)
2010-09-06  9:21                         ` Matteo Bordin
2010-09-07 18:25                         ` Yannick Duchêne (Hibou57)
2010-09-03 16:16                     ` Matteo Bordin
2010-09-03 19:39                       ` Simon Wright
2010-08-31 18:25 ` Martin Krischik
2010-09-01  8:40   ` sjw
2010-09-02  0:22   ` Yannick Duchêne (Hibou57)
2010-09-02  4:48     ` J-P. Rosen
2010-09-02 10:34       ` Brian Drummond
2010-09-02 13:00         ` Robert A Duff
2010-09-02 13:24           ` Yannick Duchêne (Hibou57)
2010-09-10 20:13 ` Yannick Duchêne (Hibou57)
  -- strict thread matches above, loose matches on Subject: below --
2001-08-04  9:55 Paul Foster
2001-07-10 10:54 Death by analogy Part 2 (was Re: is ada dead?) Robert C. Leif, Ph.D.
2001-07-10 16:58 ` Al Christians
2001-07-10 18:39   ` Michael P. Card
2001-07-10 20:39     ` Al Christians
2001-07-10 21:11       ` Michael P. Card
2001-07-11  5:25         ` Ada and UML raj
2001-07-11  9:40           ` David C. Hoos, Sr.
2001-07-13 19:00           ` Nick Williams
2001-07-13 19:46             ` Ted Dennison
2001-07-17  8:25               ` David Humphris
2001-07-16  0:56             ` Ken Garlington
2001-07-17 18:59               ` Simon Wright
2001-07-23 14:38                 ` John Kern
2001-08-04  6:29                   ` 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