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: 103376,57c80c1c1b1f8820 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Comparison : Ada and UML =?utf-8?Q?=28comparison=E2=80=A6?= indeed) Date: Wed, 10 Nov 2010 21:31:06 +0000 Organization: A noiseless patient Spider Message-ID: References: <88f637f8-e39d-420f-b4d1-63a3588a8fcc@40g2000vbn.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx03.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="23840"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BSBOpOtSnNZxBAUdxGZLOgV+tT72FFgI=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:F8HZufs71o2PMskUTpUkoWyZsjE= sha1:JOW/I/Ld1H9Pd0v9vICJKe+alE8= Xref: g2news2.google.com comp.lang.ada:16397 Date: 2010-11-10T21:31:06+00:00 List-Id: Matteo Bordin writes: > On Nov 9, 9:02 pm, Simon Wright wrote: >> Matteo Bordin writes: >> > a UML class needs to be instantiated to have a run-time executable >> > semantics >> >> I don't understand this? > > What I meant to say is that a UML class is not an instance. This was > related to the discussion about HOOD and the problem of mapping the > notion of HOOD object to a UML element. Mapping it to a class is > controversial because the two elements are really different: a UML > class needs to be instantiated, a HOOD object is already a "runnable" > element. So a UML class is something similar to an Ada type, in that you need to create an object of the type in order for anything to happen. Not sure that 'instantiate' is the right word for this process, maybe it has this specific meaning in the UML world? Would a HOOD model of an aircraft with 4 engines have one HOOD object for each engine? >> There has to be some sort of profile (both in allowable UML constructs >> and what they mean in terms of program execution). "If you model like >> _this_ and generate code using _our generator_, the result will work >> like _that_". > > Sure, but this way you may risk to model your application based on a > precise code generation strategy, possibly loosing portability and > platform-independence of models. Even a PIM has to have pretty precise semantics. I suppose I should have said, "If you model like _this_ and generate code using _our *standard-conformng* generator_, the result will work like _that_". If that's not so, the platform-independence isn't worth much.