From: Ray Blaak <blaak@infomatch.com>
Subject: Re: UML Ada modeling question
Date: 2000/04/11
Date: 2000-04-11T00:00:00+00:00 [thread overview]
Message-ID: <uitxok2zr.fsf@infomatch.com> (raw)
In-Reply-To: u3dotqz95.fsf@infomatch.com
Ray Blaak <blaak@infomatch.com> writes:
> "Bill Watkins" <bill.watkins@noway.boeing.com> 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.
next prev parent reply other threads:[~2000-04-11 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-10 0:00 UML Ada modeling question Bill Watkins
2000-04-10 0:00 ` Ray Blaak
2000-04-11 0:00 ` Ray Blaak [this message]
2000-04-12 0:00 ` David Kristola
2000-04-12 0:00 ` Ray Blaak
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox