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: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Comparison : Ada and UML =?UTF-8?B?KGNvbXBhcmlzb27igKYgaW5kZQ==?= =?UTF-8?B?ZWQp?= Date: Thu, 11 Nov 2010 08:40:03 +0100 Organization: Adalog 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-Date: Thu, 11 Nov 2010 07:40:04 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="z/xN1DBP8RUb+r9ug/i0hg"; logging-data="28864"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198axwH17zsRoxN5pDcR8Gv" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 In-Reply-To: Cancel-Lock: sha1:768S5FGprZMrmV1F3tgWROQ80SU= Xref: g2news1.google.com comp.lang.ada:15429 Date: 2010-11-11T08:40:03+01:00 List-Id: Le 10/11/2010 22:43, Vinzent Hoefler a écrit : > On Wed, 10 Nov 2010 22:31:06 +0100, Simon Wright > wrote: > >> Would a HOOD model of an aircraft with 4 engines have one HOOD object >> for each engine? > > If they are of the same type (which I suppose they would be), they > would become four instantiations of a "Generic_Engine", I'd say. > > So, yes, there will be one HOOD object for each engine. > 1) In HOOD 3.1, yes. There was support for generics and similar objects, unfortunately called "classes". This comes from the fact that HOOD started from an abstract state machines approach. 2) HOOD 4 added support for abstract data types and classes (with inheritance). -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a déménagé / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00