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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,96ba962787c3bfce X-Google-Attributes: gid103376,public From: Ray Blaak Subject: Re: UML Ada modeling question Date: 2000/04/11 Message-ID: #1/1 X-Deja-AN: 609709020 Sender: blaak@LANGLEY References: X-Complaints-To: news@bctel.net X-Trace: news.bc.tac.net 955470986 209.53.149.65 (Tue, 11 Apr 2000 09:36:26 PDT) Organization: The Transcend NNTP-Posting-Date: Tue, 11 Apr 2000 09:36:26 PDT Newsgroups: comp.lang.ada Date: 2000-04-11T00:00:00+00:00 List-Id: Ray Blaak writes: > "Bill Watkins" writes: > > > Can anyone suggest a form for modeling nested Ada packages in a UML > > component diagram? > > An Ada package would correspond to a package that contains classes > (i.e. types). Classes can be assigned to components. > > If you are using Rose, create a category (package that contains classes) that > corresponds to the Ada package, and put the package's types as classes within > it. Then assign those classes to a component in your component view. Whoops, forgot about the nesting. Nested packages can be modelled directly by nesting the categories. Again, the classes can be assigned directly to the component. The component usually corresponds to the source file with the implementation, and does not indicate the nesting directly. Rather, the nesting is indicated in the class diagrams. If you really want to show the nesting in component diagram (especially for child packages where they are in different files), create a subsystem for each package, nested accordingly. Also create a corresponding component to describe what types (i.e. classes) are in each package. E.g for these packages: package Root is type Root_Class is ... end Root; package Root.Child is type Child_Class is ... end Root.Child; Create these components and subsystems: Root\ Root.ada <-- Root_Class is assigned to this component Child\ Root_Child.ada <-- Child_Class is assigned to this component The logical view would have these categories and classes: Root\ Root_Class Child\ Child_Class -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, blaak@infomatch.com The Rhythm has my soul.