comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Ada and UML
Date: Thu, 02 Sep 2010 02:43:02 +0200
Date: 2010-09-02T02:43:02+02:00	[thread overview]
Message-ID: <op.vidqx0p4ule2fv@garhos> (raw)
In-Reply-To: dd02ebde-76cf-4d79-8214-5059b121bc82@i31g2000yqm.googlegroups.com

Le Wed, 01 Sep 2010 10:20:30 +0200, Matteo Bordin  
<matteo.bordin@gmail.com> a écrit:
> One of the goals of UML is to permits UML models to be implemented on
> several run-time platforms: for this to be possible, either you create
> a language which is the union of all possible computational models,
Unreachable target

> or you leave semantic variation points to permit model transformation
> (code generators) to inject platform-specific semantics following a
> precise pattern.
Look like the question I asked in a prior post : how is the source  
generator driven ?

> UML chose the second option. The core idea is that,
> by modeling your execution platform, you can "instruct" your code
> generator to generate code with a fully specified semantics for a
> precise target platform starting from an abstract model. This permits
> to re-use the same model for different target platforms by just
> changing code generator and platform model and to perform high-level
> verifications without including "pollution" from the underlying run-
> time.
I have the same view or except in one point : I do expect abstraction, but  
I do not expect automatic generation. Instead of the latter, I expect  
abstract view and outlining, which in turn lead to some other questions to  
solve, different than the one of automatic generation (will not talk about  
it here).

> The problem is that Ada Packages can have non-primitive operations and
> variables, but UML Packages can't.
So indeed, this really to not match Ada package.

As it seems some of my words was not understand (I may indeed be  
ambiguous) : when I say this is not the same as Ada package, I do not say  
I expect UML to be another way to write Ada, ... no, I wanted to  
understand things using concept which are already known.

> In UML a NameSpace is an abstract metaclass (a sort of abstract
> grammar rule), which is extended by concrete metaclasses. BTW, UML
> Class inherits from NameSpace: in UML a Class is a NameSpace.
I am not sure I understand this. Will later look for a way to understand  
it.

> They are part of the UML standard and can be found in true UML
> implementations such as those on the Eclipse platform (http://
> www.eclipse.org/modeling/mdt/?project=uml2tools, topcased.org,
> papyrusuml.org).
I have tried this. The first two did not want to lauch, only Papyrus  
could. I will try with it (I already tried it in the past, but this is  
another story I will not talk about).

>> I was a bit long with this reply, let go for a summary: give UML the
>> semantic of the target language (implies this choice is maid à-priori),
>> use notation restrictions as much as needed (should be documented, which
>> is OK, as UML seems to have provision for so called Preface).
>
> I disagree ;-) This approach means using UML at the same abstraction
> level of a traditioanl programming language.
Right, this have to be more abstract. But some stuff requires an exact  
semantic to be interpreted, and this is kind of concrete thing which you  
will typical find with a concrete language like Ada is.

> A desirable modeling
> approach based on languages of the UML family is to separate what is
> platform-independent from what is platform-specific to permit the re-
> use of platform-independent models. Let's make an example about
> tasking. You can have a platform-independent UML model where you
> identify "unit of concurrency". And another, platform-specific UML
> model where you describe the low-level implementation in terms of
> (Ada, C, ARINC-653, ...) tasks.
And how do you link these various more detailed model to the one which  
seems to be a master abstract model ?

> You may get more information on this approach by reading
> tutorials on MARTE (omgmarte.org).
I had a overiew. It is said to target Real-Time, which is not my direct  
concern, while seems it can be useful for general purpose. Thanks for this  
link.


-- 
“Dual licensing is the Perl's way to disinfect the GNU General Public  
Virus!” (anonymous)



  parent reply	other threads:[~2010-09-02  0:43 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
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) [this message]
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